Home
last modified time | relevance | path

Searched refs:eflag (Results 1 – 3 of 3) sorted by relevance

/arch/sparc/math-emu/
Dmath_32.c217 static inline int record_exception(unsigned long *pfsr, int eflag) in record_exception() argument
223 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
227 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
228 if ((eflag & (eflag - 1)) != 0) { in record_exception()
229 if (eflag & FP_EX_INVALID) in record_exception()
230 eflag = FP_EX_INVALID; in record_exception()
231 else if (eflag & FP_EX_OVERFLOW) in record_exception()
232 eflag = FP_EX_OVERFLOW; in record_exception()
233 else if (eflag & FP_EX_UNDERFLOW) in record_exception()
234 eflag = FP_EX_UNDERFLOW; in record_exception()
[all …]
Dmath_64.c101 static inline int record_exception(struct pt_regs *regs, int eflag) in record_exception() argument
107 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
111 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
112 if((eflag & (eflag - 1)) != 0) { in record_exception()
113 if(eflag & FP_EX_INVALID) in record_exception()
114 eflag = FP_EX_INVALID; in record_exception()
115 else if(eflag & FP_EX_OVERFLOW) in record_exception()
116 eflag = FP_EX_OVERFLOW; in record_exception()
117 else if(eflag & FP_EX_UNDERFLOW) in record_exception()
118 eflag = FP_EX_UNDERFLOW; in record_exception()
[all …]
/arch/powerpc/math-emu/
Dmath.c168 record_exception(struct pt_regs *regs, int eflag) in record_exception() argument
174 if (eflag) { in record_exception()
176 if (eflag & EFLAG_OVERFLOW) in record_exception()
178 if (eflag & EFLAG_UNDERFLOW) in record_exception()
180 if (eflag & EFLAG_DIVZERO) in record_exception()
182 if (eflag & EFLAG_INEXACT) in record_exception()
184 if (eflag & EFLAG_INVALID) in record_exception()
186 if (eflag & EFLAG_VXSNAN) in record_exception()
188 if (eflag & EFLAG_VXISI) in record_exception()
190 if (eflag & EFLAG_VXIDI) in record_exception()
[all …]