NetBSD/lib/libc/arch/m68k/gen/fpsetmask.S
mycroft ac11de32c1 Actually, bitfields are faster on the '040; optimize for it, but adjust the
fields so that the mask and sticky bits are the same.
1995-04-09 23:28:38 +00:00

17 lines
241 B
ArmAsm

/*
* Written by Charles M. Hannum, Apr 9, 1995
* Public Domain.
*/
#include <machine/asm.h>
ENTRY(fpsetmask)
movel d2,sp@-
fmovel fpcr,d1
movel sp@(8),d2
bfextu d1{#18:#5},d0
bfins d2,d1{#18:#5}
movel sp@+,d2
fmovel d1,fpcr
rts