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