NetBSD/lib/libc/arch/m68k/gen/fpsetmask.S

22 lines
287 B
ArmAsm
Raw Normal View History

/*
* Written by Charles M. Hannum, Apr 9, 1995
* Public Domain.
*/
#include <machine/asm.h>
ENTRY(fpsetmask)
movel d2,sp@-
fmovel fpcr,d0
rorl #6,d0
movel d0,d1
andl #248,d0
subl d0,d1
movel sp@(8),d2
andl #248,d2
addl d2,d1
roll #6,d1
fmovel d1,fpcr
movel sp@+,d2
rts