1995-04-10 00:33:13 +04:00
|
|
|
/*
|
|
|
|
* Written by Charles M. Hannum, Apr 9, 1995
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <machine/asm.h>
|
|
|
|
|
|
|
|
ENTRY(fpsetmask)
|
|
|
|
subl $4,%esp
|
|
|
|
|
|
|
|
fnstcw (%esp)
|
|
|
|
movl (%esp),%eax
|
|
|
|
movl %eax,%edx
|
|
|
|
|
|
|
|
notl %eax
|
|
|
|
andl $63,%eax
|
|
|
|
|
1995-04-10 01:55:50 +04:00
|
|
|
addl %eax,%edx
|
1995-04-10 00:33:13 +04:00
|
|
|
movl 8(%esp),%ecx
|
|
|
|
andl $63,%ecx
|
|
|
|
subl %ecx,%edx
|
|
|
|
movl %edx,(%esp)
|
|
|
|
fldcw (%esp)
|
|
|
|
|
|
|
|
addl $4,%esp
|
|
|
|
ret
|