Home
last modified time | relevance | path

Searched refs:fsr (Results 1 – 25 of 79) sorted by relevance

1234

/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dfeexcept.c52 unsigned long fsr; in feclearexcept() local
54 __fenv_getfsr(&fsr); in feclearexcept()
55 __fenv_set_ex(fsr, __fenv_get_ex(fsr) & ~e); in feclearexcept()
56 __fenv_setfsr(&fsr); in feclearexcept()
68 unsigned long fsr; in feraiseexcept() local
82 __fenv_set_ex(fsr, __fenv_get_ex(fsr) | FE_OVERFLOW); in feraiseexcept()
94 __fenv_set_ex(fsr, __fenv_get_ex(fsr) | FE_UNDERFLOW); in feraiseexcept()
111 unsigned long fsr; in fetestexcept() local
119 unsigned long fsr; in fegetexceptflag() local
128 unsigned long fsr; in fesetexceptflag() local
[all …]
H A Dferound.c47 unsigned long fsr; in fegetround() local
49 __fenv_getfsr(&fsr); in fegetround()
50 return (int)__fenv_get_rd(fsr); in fegetround()
55 unsigned long fsr; in fesetround() local
59 __fenv_getfsr(&fsr); in fesetround()
60 __fenv_set_rd(fsr, r); in fesetround()
61 __fenv_setfsr(&fsr); in fesetround()
70 unsigned long fsr; in fesetround96() local
74 __fenv_getfsr(&fsr); in fesetround96()
75 __fenv_set_rd(fsr, r); in fesetround96()
[all …]
H A Dfeprec.c40 unsigned long fsr; in fegetprec() local
42 __fenv_getfsr(&fsr); in fegetprec()
43 return __fenv_get_rp(fsr); in fegetprec()
48 unsigned long fsr; in fesetprec() local
52 __fenv_getfsr(&fsr); in fesetprec()
53 __fenv_set_rp(fsr, r); in fesetprec()
54 __fenv_setfsr(&fsr); in fesetprec()
H A Dfenv.c85 unsigned long fsr; in feupdateenv() local
87 __fenv_getfsr(&fsr); in feupdateenv()
89 (void) feraiseexcept((int)__fenv_get_ex(fsr)); in feupdateenv()
109 unsigned long fsr; in fex_merge_flags() local
111 __fenv_getfsr(&fsr); in fex_merge_flags()
112 __fenv_set_ex(fsr, __fenv_get_ex(fsr) | __fenv_get_ex(p->__fsr)); in fex_merge_flags()
113 __fenv_setfsr(&fsr); in fex_merge_flags()
H A D__fex_hdlr.c194 unsigned long fsr; in __fex_sync_with_threads() local
195 __fenv_getfsr(&fsr); in __fex_sync_with_threads()
197 __fenv_setfsr(&fsr); in __fex_sync_with_threads()
284 __fenv_getfsr(&fsr); in __fex_hdlr()
302 tmpfsr = fsr; in __fex_hdlr()
303 fsr = (fsr & ~0xc0400000ul) | ((gsr & 3) << 30); in __fex_hdlr()
305 __fenv_setfsr(&fsr); in __fex_hdlr()
336 __fenv_setfsr(&fsr); in __fex_hdlr()
753 unsigned long fsr; in __fex_get_thr_handlers() local
807 unsigned long fsr; in __fex_update_te() local
[all …]
H A Dfma.c109 __fenv_getfsr32(&fsr); in __fma()
300 rm = fsr >> 30; in __fma()
301 fsr &= ~FSR_CEXC; in __fma()
326 fsr |= FSR_NXC; in __fma()
363 fsr |= FSR_UFC; in __fma()
368 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in __fma()
369 __fenv_setfsr32(&fsr); in __fma()
370 if (fsr & FSR_OFC) { in __fma()
375 if (fsr & FSR_NXC) in __fma()
384 fsr |= (fsr & 0x1f) << 5; in __fma()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_Q_fcc.c48 unsigned int fsr; in _Q_feq() local
59 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_feq()
90 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_fne()
118 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_flt()
159 fsr = (fsr >> 10) & 3; in _Q_fle()
160 return (fsr == fcc_less || fsr == fcc_equal); in _Q_fle()
162 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_fle()
205 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_fgt()
246 fsr = (fsr >> 10) & 3; in _Q_fge()
247 return (fsr == fcc_greater || fsr == fcc_equal); in _Q_fge()
[all …]
H A D_Q_qtos.c53 rm = fsr >> 30; in _Q_qtos()
71 fsr = (fsr & ~FSR_CEXC) | in _Q_qtos()
91 fsr = (fsr & ~FSR_CEXC) | FSR_OFA | FSR_OFC | in _Q_qtos()
111 fsr = (fsr & ~FSR_CEXC) | FSR_UFA | FSR_UFC | in _Q_qtos()
134 fsr &= ~FSR_CEXC; in _Q_qtos()
136 fsr |= FSR_NXC; in _Q_qtos()
138 fsr |= FSR_UFC; in _Q_qtos()
145 fsr |= FSR_OFC; in _Q_qtos()
152 fsr |= FSR_UFC; in _Q_qtos()
156 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Q_qtos()
[all …]
H A D_Q_qtoi.c41 unsigned int xm, fsr; in _Q_qtoi() local
46 __quad_getfsrp(&fsr); in _Q_qtoi()
55 if (fsr & FSR_NXM) { in _Q_qtoi()
58 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | in _Q_qtoi()
66 if (fsr & FSR_NVM) { in _Q_qtoi()
69 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_qtoi()
70 __quad_setfsrp(&fsr); in _Q_qtoi()
78 if (fsr & FSR_NXM) { in _Q_qtoi()
81 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | FSR_NXC; in _Q_qtoi()
96 if (fsr & FSR_NXM) { in _Q_qtoi()
[all …]
H A D_Q_qtod.c49 __quad_getfsrp(&fsr); in _Q_qtod()
50 rm = fsr >> 30; in _Q_qtod()
70 fsr = (fsr & ~FSR_CEXC) | in _Q_qtod()
94 fsr = (fsr & ~FSR_CEXC) | FSR_OFA | FSR_OFC | in _Q_qtod()
115 fsr = (fsr & ~FSR_CEXC) | FSR_UFA | FSR_UFC | in _Q_qtod()
151 fsr &= ~FSR_CEXC; in _Q_qtod()
153 fsr |= FSR_NXC; in _Q_qtod()
155 fsr |= FSR_UFC; in _Q_qtod()
170 fsr |= FSR_UFC; in _Q_qtod()
174 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Q_qtod()
[all …]
H A D_Q_add.c72 __quad_getfsrp(&fsr); in _Qp_add()
85 if (fsr & FSR_NVM) { in _Qp_add()
90 fsr = (fsr & ~FSR_CEXC) | in _Qp_add()
111 fsr = (fsr & ~FSR_CEXC) | in _Qp_add()
126 if (fsr & FSR_NVM) { in _Qp_add()
131 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_add()
146 fsr &= ~FSR_CEXC; in _Qp_add()
152 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Qp_add()
153 __quad_setfsrp(&fsr); in _Qp_add()
157 fsr |= (fsr & 0x1f) << 5; in _Qp_add()
[all …]
H A D_Q_sub.c75 __quad_getfsrp(&fsr); in _Qp_sub()
88 if (fsr & FSR_NVM) { in _Qp_sub()
93 fsr = (fsr & ~FSR_CEXC) | in _Qp_sub()
114 fsr = (fsr & ~FSR_CEXC) | in _Qp_sub()
130 if (fsr & FSR_NVM) { in _Qp_sub()
135 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_sub()
151 fsr &= ~FSR_CEXC; in _Qp_sub()
157 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Qp_sub()
158 __quad_setfsrp(&fsr); in _Qp_sub()
162 fsr |= (fsr & 0x1f) << 5; in _Qp_sub()
[all …]
H A D_Q_qtou.c42 unsigned int xm, fsr; in _Q_qtou() local
47 __quad_getfsrp(&fsr); in _Q_qtou()
56 if (fsr & FSR_NXM) { in _Q_qtou()
95 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | in _Q_qtou()
110 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | in _Q_qtou()
118 if (fsr & FSR_NVM) { in _Q_qtou()
121 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_qtou()
130 if (fsr & FSR_NXM) { in _Q_qtou()
133 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | FSR_NXC; in _Q_qtou()
149 if (fsr & FSR_NXM) { in _Q_qtou()
[all …]
H A D_Q_mul.c111 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_mul()
123 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_mul()
140 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_mul()
159 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_mul()
178 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Qp_mul()
404 rm = fsr >> 30; in _Qp_mul()
409 fsr &= ~FSR_CEXC; in _Qp_mul()
411 fsr |= FSR_NXC; in _Qp_mul()
449 fsr |= FSR_UFC; in _Qp_mul()
453 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Qp_mul()
[all …]
H A D_Q_div.c129 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_div()
141 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_div()
158 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_div()
177 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_div()
205 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_div()
223 fsr = (fsr & ~FSR_CEXC) | FSR_DZA | FSR_DZC; in _Qp_div()
490 rm = fsr >> 30; in _Qp_div()
495 fsr &= ~FSR_CEXC; in _Qp_div()
497 fsr |= FSR_NXC; in _Qp_div()
540 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Qp_div()
[all …]
H A D_Q_sqrt.c110 __quad_getfsrp(&fsr); in _Qp_sqrt()
123 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | in _Qp_sqrt()
134 if (fsr & FSR_NVM) { in _Qp_sqrt()
139 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Qp_sqrt()
151 if (fsr & FSR_NVM) { in _Qp_sqrt()
156 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Qp_sqrt()
329 rm = fsr >> 30; in _Qp_sqrt()
332 fsr &= ~FSR_CEXC; in _Qp_sqrt()
334 fsr |= FSR_NXC; in _Qp_sqrt()
356 if ((fsr & FSR_CEXC) & (fsr >> 23)) { in _Qp_sqrt()
[all …]
H A D_Q_cmpe.c42 unsigned int xm, ym, fsr; in _Q_cmpe() local
46 __quad_getfsrp(&fsr); in _Q_cmpe()
47 if (fsr & FSR_NVM) { in _Q_cmpe()
48 __quad_fcmpeq(x, y, &fsr); in _Q_cmpe()
49 return ((fsr >> 10) & 3); in _Q_cmpe()
51 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_cmpe()
52 __quad_setfsrp(&fsr); in _Q_cmpe()
H A D_Q_cmp.c42 unsigned int xm, ym, fsr; in _Q_cmp() local
48 __quad_getfsrp(&fsr); in _Q_cmp()
49 if (fsr & FSR_NVM) { in _Q_cmp()
50 __quad_fcmpq(x, y, &fsr); in _Q_cmp()
51 return ((fsr >> 10) & 3); in _Q_cmp()
53 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Q_cmp()
54 __quad_setfsrp(&fsr); in _Q_cmp()
H A Dfpsetmask.s49 st %fsr, [%sp+ARGPUSH] ! get fsr value
51 and %o1, %o4, %o1 ! generate new fsr value
54 st %o1, [%sp+ARGPUSH] ! move new fsr value to memory
55 ld [%sp+ARGPUSH], %fsr ! load fsr with new value
56 and %o0, %o4, %o0 ! mask off bits of interest in old fsr
H A Dfpsetsticky.s40 st %fsr, [%sp+ARGPUSH] ! get fsr value
42 and %o1, %o4, %o1 ! generate new fsr value
45 st %o1, [%sp+ARGPUSH] ! move new fsr value to memory
46 ld [%sp+ARGPUSH], %fsr ! load fsr with new value
47 and %o0, %o4, %o0 ! mask off bits of interest in old fsr
H A D_Q_stoq.c57 unsigned int m, f, fsr; in _Qp_stoq() local
81 __quad_getfsrp(&fsr); in _Qp_stoq()
82 if (fsr & FSR_NVM) { in _Qp_stoq()
86 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Qp_stoq()
87 __quad_setfsrp(&fsr); in _Qp_stoq()
/illumos-gate/usr/src/lib/libc/sparcv9/fp/
H A D_Qp_qtox.c38 unsigned int xm, fsr; in _Qp_qtox() local
42 __quad_getfsrp(&fsr); in _Qp_qtox()
52 if (fsr & FSR_NXM) { in _Qp_qtox()
55 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | in _Qp_qtox()
64 if (fsr & FSR_NVM) { in _Qp_qtox()
67 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Qp_qtox()
68 __quad_setfsrp(&fsr); in _Qp_qtox()
76 if (fsr & FSR_NXM) { in _Qp_qtox()
79 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | FSR_NXC; in _Qp_qtox()
95 if (fsr & FSR_NXM) { in _Qp_qtox()
[all …]
H A D_Qp_qtoux.c39 unsigned int xm, fsr; in _Qp_qtoux() local
43 __quad_getfsrp(&fsr); in _Qp_qtoux()
53 if (fsr & FSR_NXM) { in _Qp_qtoux()
92 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | in _Qp_qtoux()
108 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | in _Qp_qtoux()
116 if (fsr & FSR_NVM) { in _Qp_qtoux()
119 fsr = (fsr & ~FSR_CEXC) | FSR_NVA | FSR_NVC; in _Qp_qtoux()
128 if (fsr & FSR_NXM) { in _Qp_qtoux()
131 fsr = (fsr & ~FSR_CEXC) | FSR_NXA | FSR_NXC; in _Qp_qtoux()
147 if (fsr & FSR_NXM) { in _Qp_qtoux()
[all …]
H A Dfpsetmask.s49 st %fsr, [%sp+STACK_BIAS+ARGPUSH] ! get fsr value
51 and %o1, %o4, %o1 ! generate new fsr value
54 st %o1, [%sp+STACK_BIAS+ARGPUSH] ! move new fsr value to memory
55 ld [%sp+STACK_BIAS+ARGPUSH], %fsr ! load fsr with new value
56 and %o0, %o4, %o0 ! mask off bits of interest in old fsr
H A Dfpsetsticky.s40 st %fsr, [%sp+STACK_BIAS+ARGPUSH] ! get fsr value
42 and %o1, %o4, %o1 ! generate new fsr value
45 st %o1, [%sp+STACK_BIAS+ARGPUSH] ! move new fsr value to memory
46 ld [%sp+STACK_BIAS+ARGPUSH], %fsr ! load fsr with new value
47 and %o0, %o4, %o0 ! mask off bits of interest in old fsr

1234