2 #include <machine/registers.h>
5 fp_except
_DEFUN(fpsetmask
,(newmask
),
13 oldmask
= tkcw
.fp_trap
;
14 tkcw
.fp_trap
= newmask
;
20 fp_except
_DEFUN_VOID(fpgetmask
)
28 fp_rnd
_DEFUN_VOID(fpgetround
)
32 return tkcw
.fp_rounding
;
35 fp_rnd
_DEFUN(fpsetround
,(rnd
),
42 oldrnd
= tkcw
.fp_rounding
;
43 tkcw
.fp_rounding
= rnd
;
52 fp_rdi
_DEFUN_VOID(fpgetroundtoi
)
56 return tkcw
.integer_rounding
;
59 fp_rdi
_DEFUN(fpsetroundtoi
,(rnd
),
66 oldrnd
= tkcw
.integer_rounding
;
67 tkcw
.integer_rounding
= rnd
;