1995-04-07 04:41:43 +04:00
|
|
|
/*
|
1995-04-10 02:49:26 +04:00
|
|
|
* Written by Charles M. Hannum, Apr 9, 1995
|
1995-04-07 04:41:43 +04:00
|
|
|
* Public Domain.
|
|
|
|
*/
|
|
|
|
|
1995-04-09 23:13:26 +04:00
|
|
|
#include <machine/asm.h>
|
1995-04-07 04:41:43 +04:00
|
|
|
|
|
|
|
ENTRY(fpsetmask)
|
1995-04-10 02:49:26 +04:00
|
|
|
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
|
1995-04-07 04:41:43 +04:00
|
|
|
rts
|