Home
last modified time | relevance | path

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

12

/freebsd/lib/msun/tests/
H A Dfenv_test.c86 raiseexcept(int excepts) in raiseexcept() argument
97 if (excepts & FE_INVALID) { in raiseexcept()
101 if (excepts & FE_DIVBYZERO) { in raiseexcept()
105 if (excepts & FE_OVERFLOW) { in raiseexcept()
109 if (excepts & FE_UNDERFLOW) { in raiseexcept()
113 if (excepts & FE_INEXACT) { in raiseexcept()
215 int excepts, i; in ATF_TC_BODY() local
220 excepts = std_except_sets[i]; in ATF_TC_BODY()
223 raiseexcept(excepts); in ATF_TC_BODY()
224 ATF_CHECK_EQ(excepts, fetestexcept(excepts)); in ATF_TC_BODY()
[all …]
H A Dexponential_test.c58 #define test(func, x, result, exceptmask, excepts) do { \ argument
62 CHECK_FP_EXCEPTIONS_MSG(excepts, exceptmask, "for %s(%s)", \
67 #define _testall0(x, result, exceptmask, excepts) do { \ argument
68 test(exp, x, result, exceptmask, excepts); \
69 test(expf, x, result, exceptmask, excepts); \
70 test(exp2, x, result, exceptmask, excepts); \
71 test(exp2f, x, result, exceptmask, excepts); \
78 #define testall0(x, result, exceptmask, excepts) do { \ argument
79 _testall0(x, result, exceptmask, excepts); \
80 test(exp2l, x, result, exceptmask, excepts); \
[all …]
H A Dlogarithm_test.c58 #define test(func, x, result, exceptmask, excepts) do { \ argument
62 CHECK_FP_EXCEPTIONS_MSG(excepts, exceptmask, "for %s(%s)", \
73 #define testall0(x, result, exceptmask, excepts) do { \ argument
74 test(log, x, result, exceptmask, excepts); \
75 test(logf, x, result, exceptmask, excepts); \
76 test(logl, x, result, exceptmask, excepts); \
77 test(log2, x, result, exceptmask, excepts); \
78 test(log2f, x, result, exceptmask, excepts); \
79 test(log2l, x, result, exceptmask, excepts); \
80 test(log10, x, result, exceptmask, excepts); \
[all …]
H A Dtest-utils.h193 #define _fp_exceptions(atf_variant, excepts, exceptmask) \ argument
194 ATF_##atf_variant##_EQ_MSG((excepts), fetestexcept(exceptmask), \
196 fetestexcept(exceptmask), (excepts))
197 #define _fp_exceptions_msg(atf_variant, excepts, exceptmask, fmt, ...) \ argument
198 ATF_##atf_variant##_EQ_MSG((excepts), fetestexcept(exceptmask), \
200 fetestexcept(exceptmask), (excepts), __VA_ARGS__)
202 #define CHECK_FP_EXCEPTIONS(excepts, exceptmask) _fp_exceptions(CHECK, excepts, exceptmask) argument
203 #define CHECK_FP_EXCEPTIONS_MSG(excepts, exceptmask, fmt, ...) _fp_exceptions_msg(CHECK, excepts, e… argument
209 #define REQUIRE_FP_EXCEPTIONS(excepts, exceptmask) _fp_exceptions(REQUIRE, excepts, exceptmask) argument
210 #define REQUIRE_FP_EXCEPTIONS_MSG(excepts, exceptmask, fmt, ...) _fp_exceptions_msg(REQUIRE, except… argument
H A Dlrint_test.c43 #define test(func, x, result, excepts) do { \ argument
49 CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT & ALL_STD_EXCEPT, \
53 #define testall(x, result, excepts) do { \ argument
54 test(lrint, x, result, excepts); \
55 test(lrintf, x, result, excepts); \
56 test(lrintl, x, result, excepts); \
57 test(llrint, x, result, excepts); \
58 test(llrintf, x, result, excepts); \
59 test(llrintl, x, result, excepts); \
H A Dlround_test.c41 #define test(func, x, result, excepts) do { \ argument
44 CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT, "for %s(%s)", \
46 if ((excepts & FE_INVALID) != 0) { \
56 #define testall(x, result, excepts) do { \ argument
57 test(lround, x, result, excepts); \
58 test(lroundf, x, result, excepts); \
59 test(llround, x, result, excepts); \
60 test(llroundf, x, result, excepts); \
H A Dinvtrig_test.c52 #define test_tol(func, x, result, tol, excepts) do { \ argument
56 REQUIRE_FP_EXCEPTIONS_MSG(excepts, ALL_STD_EXCEPT, "for %s(%s)", \
59 #define test(func, x, result, excepts) \ argument
60 test_tol(func, (x), (result), 0, (excepts))
62 #define _testall_tol(prefix, x, result, tol, excepts) do { \ argument
64 (tol) * ldexp(1.0, 1 - DBL_MANT_DIG), (excepts)); \
66 (tol) * ldexpf(1.0, 1 - FLT_MANT_DIG), (excepts)); \
72 #define testall_tol(prefix, x, result, tol, excepts) do { \ argument
73 _testall_tol(prefix, x, result, tol, excepts); \
75 (tol) * ldexpl(1.0, 1 - LDBL_MANT_DIG), (excepts)); \
[all …]
H A Dtrig_test.c60 #define test(func, x, result, exceptmask, excepts) do { \ argument
64 CHECK_FP_EXCEPTIONS_MSG(excepts, exceptmask, "for %s(%s)", \
68 #define testall(prefix, x, result, exceptmask, excepts) do { \ argument
69 test(prefix, x, (double)result, exceptmask, excepts); \
70 test(prefix##f, x, (float)result, exceptmask, excepts); \
71 test(prefix##l, x, result, exceptmask, excepts); \
74 #define testdf(prefix, x, result, exceptmask, excepts) do { \ argument
75 test(prefix, x, (double)result, exceptmask, excepts); \
76 test(prefix##f, x, (float)result, exceptmask, excepts); \
H A Dinvctrig_test.c56 #define test_p(func, z, result, exceptmask, excepts, checksign) do { \ argument
62 CHECK_FP_EXCEPTIONS_MSG(excepts, exceptmask, "for %s(%s)", \
77 #define test(func, z, result, exceptmask, excepts, checksign) do { \ argument
78 test_p(func, z, result, exceptmask, excepts, checksign); \
79 test_p(func, conjl(z), conjl(result), exceptmask, excepts, checksign); \
87 #define testall(func, x, result, exceptmask, excepts, checksign) do { \ argument
88 test(func, x, result, exceptmask, excepts, checksign); \
89 test(func##f, x, result, exceptmask, excepts, checksign); \
91 #define testall_odd(func, x, result, exceptmask, excepts, checksign) do { \ argument
92 testall(func, x, result, exceptmask, excepts, checksign); \
[all …]
H A Dcexp_test.c58 #define test_t(type, func, z, result, exceptmask, excepts, checksign) \ argument
64 CHECK_FP_EXCEPTIONS_MSG(excepts, exceptmask, "for %s(%s)", \
68 #define test(func, z, result, exceptmask, excepts, checksign) \ argument
69 test_t(double, func, z, result, exceptmask, excepts, checksign)
71 #define test_f(func, z, result, exceptmask, excepts, checksign) \ argument
72 test_t(float, func, z, result, exceptmask, excepts, checksign)
81 #define testall(x, result, exceptmask, excepts, checksign) do { \ argument
82 test(cexp, x, result, exceptmask, excepts, checksign); \
83 test_f(cexpf, x, result, exceptmask, excepts, checksign); \
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/aarch64/
H A Dfenv_darwin_impl.h84 LIBC_INLINE static uint32_t exception_value_to_status(uint32_t excepts) { in exception_value_to_status()
85 return ((excepts & EX_INVALID) ? FE_INVALID : 0) | in exception_value_to_status()
86 ((excepts & EX_DIVBYZERO) ? FE_DIVBYZERO : 0) | in exception_value_to_status()
87 ((excepts & EX_OVERFLOW) ? FE_OVERFLOW : 0) | in exception_value_to_status()
88 ((excepts & EX_UNDERFLOW) ? FE_UNDERFLOW : 0) | in exception_value_to_status()
89 ((excepts & EX_INEXACT) ? FE_INEXACT : 0) | in exception_value_to_status()
90 ((excepts & EX_FLUSHTOZERO) ? FE_FLUSHTOZERO : 0); in exception_value_to_status()
93 LIBC_INLINE static uint32_t exception_value_to_control(uint32_t excepts) { in exception_value_to_control()
94 return ((excepts & EX_INVALID) ? __fpcr_trap_invalid : 0) | in exception_value_to_control()
95 ((excepts & EX_DIVBYZERO) ? __fpcr_trap_divbyzero : 0) | in exception_value_to_control()
[all …]
H A DFEnvImpl.h55 LIBC_INLINE static uint32_t getStatusValueForExcept(int excepts) { in getStatusValueForExcept()
56 return ((excepts & FE_INVALID) ? INVALID_F : 0) | in getStatusValueForExcept()
57 ((excepts & FE_DIVBYZERO) ? DIVBYZERO_F : 0) | in getStatusValueForExcept()
58 ((excepts & FE_OVERFLOW) ? OVERFLOW_F : 0) | in getStatusValueForExcept()
59 ((excepts & FE_UNDERFLOW) ? UNDERFLOW_F : 0) | in getStatusValueForExcept()
60 ((excepts & FE_INEXACT) ? INEXACT_F : 0); in getStatusValueForExcept()
106 LIBC_INLINE int enable_except(int excepts) { in enable_except() argument
107 uint32_t newExcepts = FEnv::getStatusValueForExcept(excepts); in enable_except()
116 LIBC_INLINE int disable_except(int excepts) { in disable_except() argument
117 uint32_t disabledExcepts = FEnv::getStatusValueForExcept(excepts); in disable_except()
[all …]
/freebsd/lib/msun/amd64/
H A Dfenv.c45 (feclearexcept)(int excepts)
47 return (__feclearexcept_int(excepts));
51 (fegetexceptflag)(fexcept_t *flagp, int excepts)
53 return (__fegetexceptflag_int(flagp, excepts));
57 fesetexceptflag(const fexcept_t *flagp, int excepts) in fesetexceptflag() argument
62 env.__x87.__status &= ~excepts; in fesetexceptflag()
63 env.__x87.__status |= *flagp & excepts; in fesetexceptflag()
67 env.__mxcsr &= ~excepts; in fesetexceptflag()
68 env.__mxcsr |= *flagp & excepts; in fesetexceptflag()
75 feraiseexcept(int excepts) in feraiseexcept() argument
[all …]
/freebsd/lib/msun/riscv/
H A Dfenv.c36 (feclearexcept)(int excepts)
38 return (__feclearexcept_int(excepts));
42 (fegetexceptflag)(fexcept_t *flagp, int excepts)
44 return (__fegetexceptflag_int(flagp, excepts));
48 (fesetexceptflag)(const fexcept_t *flagp, int excepts)
50 return (__fesetexceptflag_int(flagp, excepts));
54 (feraiseexcept)(int excepts)
56 return (__feraiseexcept_int(excepts));
60 (fetestexcept)(int excepts)
62 return (__fetestexcept_int(excepts));
/freebsd/lib/msun/powerpc/
H A Dfenv.c34 (feclearexcept)(int excepts)
36 return (__feclearexcept_int(excepts));
40 (fegetexceptflag)(fexcept_t *flagp, int excepts)
42 return (__fegetexceptflag_int(flagp, excepts));
46 (fesetexceptflag)(const fexcept_t *flagp, int excepts)
48 return (__fesetexceptflag_int(flagp, excepts));
52 (feraiseexcept)(int excepts)
54 return (__feraiseexcept_int(excepts));
58 (fetestexcept)(int excepts)
60 return (__fetestexcept_int(excepts));
/freebsd/lib/msun/aarch64/
H A Dfenv.c37 (feclearexcept)(int excepts)
39 return (__feclearexcept_int(excepts));
43 (fegetexceptflag)(fexcept_t *flagp, int excepts)
45 return (__fegetexceptflag_int(flagp, excepts));
49 (fesetexceptflag)(const fexcept_t *flagp, int excepts)
51 return (__fesetexceptflag_int(flagp, excepts));
55 (feraiseexcept)(int excepts)
57 return (__feraiseexcept_int(excepts));
61 (fetestexcept)(int excepts)
63 return (__fetestexcept_int(excepts));
/freebsd/lib/msun/i387/
H A Dfenv.c87 (feclearexcept)(int excepts)
89 return (__feclearexcept_int(excepts));
93 (fegetexceptflag)(fexcept_t *flagp, int excepts)
95 return (__fegetexceptflag_int(flagp, excepts));
99 fesetexceptflag(const fexcept_t *flagp, int excepts) in fesetexceptflag() argument
105 env.__status &= ~excepts; in fesetexceptflag()
106 env.__status |= *flagp & excepts; in fesetexceptflag()
111 mxcsr &= ~excepts; in fesetexceptflag()
112 mxcsr |= *flagp & excepts; in fesetexceptflag()
120 feraiseexcept(int excepts) in feraiseexcept() argument
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A DFEnvImpl.h75 LIBC_INLINE static int clear_except_if_required([[maybe_unused]] int excepts) { in clear_except_if_required() argument
78 return clear_except(excepts); in clear_except_if_required()
83 LIBC_INLINE static int set_except_if_required([[maybe_unused]] int excepts) { in set_except_if_required() argument
86 return set_except(excepts); in set_except_if_required()
91 LIBC_INLINE static int raise_except_if_required([[maybe_unused]] int excepts) { in raise_except_if_required() argument
95 return raise_except</*SKIP_X87_FPU*/ true>(excepts); in raise_except_if_required()
97 return raise_except(excepts); in raise_except_if_required()
/freebsd/lib/msun/arm/
H A Dfenv.c69 (feclearexcept)(int excepts)
71 return (__feclearexcept_int(excepts));
75 (fegetexceptflag)(fexcept_t *flagp, int excepts)
77 return (__fegetexceptflag_int(flagp, excepts));
81 (fesetexceptflag)(const fexcept_t *flagp, int excepts)
83 return (__fesetexceptflag_int(flagp, excepts));
87 (feraiseexcept)(int excepts)
89 return (__feraiseexcept_int(excepts));
93 (fetestexcept)(int excepts)
95 return (__fetestexcept_int(excepts));
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/arm/
H A DFEnvImpl.h87 LIBC_INLINE int enable_except(int excepts) { in enable_except() argument
88 uint32_t new_excepts = FEnv::exception_macro_to_enable_bits(excepts); in enable_except()
97 LIBC_INLINE int disable_except(int excepts) { in disable_except() argument
98 uint32_t disable_bits = FEnv::exception_macro_to_enable_bits(excepts); in disable_except()
114 LIBC_INLINE int clear_except(int excepts) { in clear_except() argument
116 uint32_t to_clear = FEnv::exception_macro_to_status_bits(excepts); in clear_except()
123 LIBC_INLINE int test_except(int excepts) { in test_except() argument
124 uint32_t to_test = FEnv::exception_macro_to_status_bits(excepts); in test_except()
130 LIBC_INLINE int set_except(int excepts) { in set_except() argument
132 FEnv::set_fpscr(fpscr | FEnv::exception_macro_to_status_bits(excepts)); in set_except()
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/x86_64/
H A DFEnvImpl.h73 LIBC_INLINE uint16_t get_status_value_for_except(int excepts) { in get_status_value_for_except() argument
76 return ((excepts & FE_INVALID) ? ExceptionFlags::INVALID_F : 0) | in get_status_value_for_except()
78 ((excepts & __FE_DENORM) ? ExceptionFlags::DENORMAL_F : 0) | in get_status_value_for_except()
80 ((excepts & FE_DIVBYZERO) ? ExceptionFlags::DIV_BY_ZERO_F : 0) | in get_status_value_for_except()
81 ((excepts & FE_OVERFLOW) ? ExceptionFlags::OVERFLOW_F : 0) | in get_status_value_for_except()
82 ((excepts & FE_UNDERFLOW) ? ExceptionFlags::UNDERFLOW_F : 0) | in get_status_value_for_except()
83 ((excepts & FE_INEXACT) ? ExceptionFlags::INEXACT_F : 0); in get_status_value_for_except()
152 LIBC_INLINE int enable_except(int excepts) { in enable_except() argument
158 uint16_t bit_mask = internal::get_status_value_for_except(excepts); in enable_except()
179 LIBC_INLINE int disable_except(int excepts) { in disable_except() argument
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/riscv/
H A DFEnvImpl.h94 LIBC_INLINE int clear_except(int excepts) { in clear_except() argument
96 uint32_t to_clear = FEnv::exception_macro_to_bits(excepts); in clear_except()
102 LIBC_INLINE int test_except(int excepts) { in test_except() argument
103 uint32_t to_test = FEnv::exception_macro_to_bits(excepts); in test_except()
108 LIBC_INLINE int set_except(int excepts) { in set_except() argument
110 FEnv::set_fflags(flags | FEnv::exception_macro_to_bits(excepts)); in set_except()
114 LIBC_INLINE int raise_except(int excepts) { in raise_except() argument
117 FEnv::set_fflags(flags | FEnv::exception_macro_to_bits(excepts)); in raise_except()
/freebsd/contrib/telnet/telnet/
H A Dnetwork.c81 fd_set excepts; in stilloob() local
85 FD_ZERO(&excepts); in stilloob()
86 FD_SET(net, &excepts); in stilloob()
87 value = select(net+1, (fd_set *)0, (fd_set *)0, &excepts, &timeout); in stilloob()
95 if (FD_ISSET(net, &excepts)) { in stilloob()
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dnetwork.c75 fd_set excepts; in stilloob() local
79 FD_ZERO(&excepts); in stilloob()
82 FD_SET(net, &excepts); in stilloob()
83 value = select(net+1, 0, 0, &excepts, &timeout); in stilloob()
91 if (FD_ISSET(net, &excepts)) { in stilloob()
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dcfenv40 int feclearexcept(int excepts);
41 int fegetexceptflag(fexcept_t* flagp, int excepts);
42 int feraiseexcept(int excepts);
43 int fesetexceptflag(const fexcept_t* flagp, int excepts);
44 int fetestexcept(int excepts);

12