Home
last modified time | relevance | path

Searched refs:excepts (Results 1 – 4 of 4) sorted by relevance

/bionic/libm/riscv64/
Dfenv.c48 int feclearexcept(int excepts) { in feclearexcept() argument
49 __asm__ __volatile__("csrc fflags, %0" : : "r"(excepts & FE_ALL_EXCEPT)); in feclearexcept()
53 int fegetexceptflag(fexcept_t* flagp, int excepts) { in fegetexceptflag() argument
54 *flagp = fetestexcept(excepts & FE_ALL_EXCEPT); in fegetexceptflag()
58 int fesetexceptflag(const fexcept_t* flagp, int excepts) { in fesetexceptflag() argument
59 feclearexcept((~*flagp) & excepts); in fesetexceptflag()
60 feraiseexcept(*flagp & excepts); in fesetexceptflag()
64 int feraiseexcept(int excepts) { in feraiseexcept() argument
65 __asm__ __volatile__("csrs fflags, %0" : : "r"(excepts)); in feraiseexcept()
69 int fetestexcept(int excepts) { in fetestexcept() argument
[all …]
/bionic/libm/arm64/
Dfenv.c70 int feclearexcept(int excepts) { in feclearexcept() argument
73 fpsr &= ~(excepts & FE_ALL_EXCEPT); in feclearexcept()
78 int fegetexceptflag(fexcept_t* flagp, int excepts) { in fegetexceptflag() argument
81 *flagp = fpsr & (excepts & FE_ALL_EXCEPT); in fegetexceptflag()
85 int fesetexceptflag(const fexcept_t* flagp, int excepts) { in fesetexceptflag() argument
86 excepts &= FE_ALL_EXCEPT; in fesetexceptflag()
89 fpsr &= ~excepts; in fesetexceptflag()
90 fpsr |= *flagp & excepts; in fesetexceptflag()
95 int feraiseexcept(int excepts) { in feraiseexcept() argument
96 fexcept_t ex = excepts; in feraiseexcept()
[all …]
/bionic/libm/amd64/
Dfenv.c82 feclearexcept(int excepts) in feclearexcept() argument
87 excepts &= FE_ALL_EXCEPT; in feclearexcept()
93 fenv.__x87.__status &= ~excepts; in feclearexcept()
100 mxcsr &= ~excepts; in feclearexcept()
112 fegetexceptflag(fexcept_t *flagp, int excepts) in fegetexceptflag() argument
117 excepts &= FE_ALL_EXCEPT; in fegetexceptflag()
126 *flagp = (status | mxcsr) & excepts; in fegetexceptflag()
142 feraiseexcept(int excepts) in feraiseexcept() argument
144 excepts &= FE_ALL_EXCEPT; in feraiseexcept()
146 fesetexceptflag((fexcept_t *)&excepts, excepts); in feraiseexcept()
[all …]
/bionic/libm/i387/
Dfenv.c140 fesetexceptflag(const fexcept_t *flagp, int excepts) in fesetexceptflag() argument
145 excepts &= FE_ALL_EXCEPT; in fesetexceptflag()
146 if (excepts) { /* Do nothing if excepts is 0 */ in fesetexceptflag()
148 env.__status &= ~excepts; in fesetexceptflag()
149 env.__status |= *flagp & excepts; in fesetexceptflag()
154 mxcsr &= ~excepts; in fesetexceptflag()
155 mxcsr |= *flagp & excepts; in fesetexceptflag()
164 feraiseexcept(int excepts) in feraiseexcept() argument
166 fexcept_t ex = excepts; in feraiseexcept()
168 fesetexceptflag(&ex, excepts); in feraiseexcept()
[all …]