NetBSD/lib/libc/arch/i386/gen/fpsetsticky.S

26 lines
322 B
ArmAsm
Raw Normal View History

1995-04-10 00:33:13 +04:00
/*
* Written by Charles M. Hannum, Apr 9, 1995
* Public domain.
*/
#include <machine/asm.h>
ENTRY(fpsetsticky)
subl $28,%esp
1995-04-10 00:33:13 +04:00
fnstenv (%esp)
movl 4(%esp),%eax
1995-04-10 00:33:13 +04:00
movl %eax,%edx
andl $63,%eax
1995-04-10 01:55:20 +04:00
subl %eax,%edx
movl 32(%esp),%ecx
1995-04-10 00:33:13 +04:00
andl $63,%ecx
1995-04-10 01:55:20 +04:00
addl %ecx,%edx
movl %edx,4(%esp)
fldenv (%esp)
1995-04-10 00:33:13 +04:00
addl $28,%esp
1995-04-10 00:33:13 +04:00
ret