1 /* $NetBSD: fpsetround.S,v 1.5 2014/05/22 15:01:56 uebayasi Exp $ */
4 * Written by Frank van der Linden at Wasabi Systems for NetBSD.
8 #include <machine/asm.h>
11 * XXX set both the x87 control word and the SSE mxcsr register.
12 * Applications should only set exception and round flags
13 * via the fp*() interface, otherwise the status words
14 * will get our of sync.
19 WEAK_ALIAS(fpsetround, _fpsetround)
28 andl $0x00000c00, %eax
29 andl $0xfffff3ff, %edx
36 andl $0xffff9fff, %edx