version 1.3, 2002/06/12 19:17:22 |
version 1.4, 2011/09/30 17:42:34 |
|
|
#include <machine/asm.h> |
#include <machine/asm.h> |
|
|
/* |
/* |
* XXX store only x87 state. If an application only uses the fp* |
* XXX load only x87 state. If an application only uses the fp* |
* interface, this should be in sync with the SSE mxcsr register. |
* interface, this should be in sync with the SSE mxcsr register. |
*/ |
*/ |
|
|
Line 19 ENTRY(_fpgetround) |
|
Line 19 ENTRY(_fpgetround) |
|
ENTRY(fpgetround) |
ENTRY(fpgetround) |
#endif |
#endif |
fnstcw -4(%rsp) |
fnstcw -4(%rsp) |
movl -4(%rsp),%eax |
movl -4(%rsp), %eax |
rorl $10,%eax |
andl $0x00000c00, %eax |
andl $3,%eax |
|
ret |
ret |