1 /* $NetBSD: fpsetmask.S,v 1.5 2012/01/19 16:37:18 drochner 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.
18 WEAK_ALIAS(fpsetmask, _fpsetmask)
29 andl $0xffffffc0, %edx
36 andl $0xffffe07f, %edx
43 andl $0x0000003f, %eax