27 lines
332 B
ArmAsm
27 lines
332 B
ArmAsm
/*
|
|
* Written by Charles M. Hannum, Apr 9, 1995
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(fpsetsticky)
|
|
subl $28,%esp
|
|
|
|
fnstenv (%esp)
|
|
movl 4(%esp),%eax
|
|
movl %eax,%edx
|
|
|
|
notl %eax
|
|
andl $63,%eax
|
|
|
|
orl %eax,%edx
|
|
movl 32(%esp),%ecx
|
|
andl $63,%ecx
|
|
subl %ecx,%edx
|
|
movl %edx,4(%esp)
|
|
fldenv (%esp)
|
|
|
|
addl $28,%esp
|
|
ret
|