diff options
Diffstat (limited to 'lib/libc/arch/i386/gen/fpgetmask.S')
-rw-r--r-- | lib/libc/arch/i386/gen/fpgetmask.S | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libc/arch/i386/gen/fpgetmask.S b/lib/libc/arch/i386/gen/fpgetmask.S new file mode 100644 index 00000000000..430c26f5304 --- /dev/null +++ b/lib/libc/arch/i386/gen/fpgetmask.S @@ -0,0 +1,15 @@ +/* + * Written by J.T. Conklin, Apr 4, 1995 + * Public domain. + */ + +#include <machine/asm.h> + +ENTRY(fpgetmask) + subl $4,%esp + fnstcw (%esp) + movl (%esp),%eax + notl %eax + andl $63,%eax + addl $4,%esp + ret |