2 #include <machine/registers.h>
5 fp_except
fpsetmask (fp_except newmask
)
12 oldmask
= tkcw
.fp_trap
;
13 tkcw
.fp_trap
= newmask
;
19 fp_except
fpgetmask (void)
27 fp_rnd
fpgetround (void)
31 return tkcw
.fp_rounding
;
34 fp_rnd
fpsetround (fp_rnd rnd
)
40 oldrnd
= tkcw
.fp_rounding
;
41 tkcw
.fp_rounding
= rnd
;
50 fp_rdi
fpgetroundtoi (void)
54 return tkcw
.integer_rounding
;
57 fp_rdi
fpsetroundtoi (fp_rdi rnd
)
63 oldrnd
= tkcw
.integer_rounding
;
64 tkcw
.integer_rounding
= rnd
;