diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 08:53:40 +0000 |
commit | d6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch) | |
tree | ece253b876159b39c620e62b6c9b1174642e070e /lib/libc/arch/i386/gen/fpgetmask.S |
initial import of NetBSD tree
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 |