1995-04-07 04:41:43 +04:00
|
|
|
/*
|
|
|
|
* Written by J.T. Conklin, Apr 5, 1995
|
|
|
|
* Public Domain.
|
|
|
|
*/
|
|
|
|
|
1995-04-09 23:13:26 +04:00
|
|
|
#include <machine/asm.h>
|
1995-04-07 04:41:43 +04:00
|
|
|
|
|
|
|
ENTRY(fpsetround)
|
|
|
|
movel d2,sp@-
|
|
|
|
movel sp@(8),d2
|
|
|
|
fmovel fpcr,d1
|
|
|
|
bfextu d1{#26:#2},d0
|
|
|
|
bfins d2,d1{#26:#2}
|
|
|
|
fmovel d1,fpcr
|
|
|
|
movel sp@+,d2
|
|
|
|
rts
|