| /freebsd/lib/msun/tests/ |
| H A D | ctrig_test.c | 151 atf_tc_set_md_var(tc, "descr", "test NaN inputs"); in ATF_TC_HEAD() 155 long double complex nan_nan = CMPLXL(NAN, NAN); in ATF_TC_BODY() 160 * NaN,NaN NaN,NaN NaN,NaN NaN,NaN in ATF_TC_BODY() 161 * finite,NaN NaN,NaN [inval] NaN,NaN [inval] NaN,NaN [inval] in ATF_TC_BODY() 162 * NaN,finite NaN,NaN [inval] NaN,NaN [inval] NaN,NaN [inval] in ATF_TC_BODY() 163 * NaN,Inf NaN,NaN [inval] NaN,NaN [inval] NaN,NaN [inval] in ATF_TC_BODY() 164 * Inf,NaN +-Inf,NaN Inf,NaN 1,+-0 in ATF_TC_BODY() 165 * 0,NaN +-0,NaN NaN,+-0 +-0,NaN in ATF_TC_BODY() 166 * NaN,0 NaN,0 NaN,+-0 NaN,+-0 in ATF_TC_BODY() 176 z = CMPLXL(42, NAN); in ATF_TC_BODY() [all …]
|
| H A D | invctrig_test.c | 141 * Tests for NaN inputs. 143 ATF_TC_WITHOUT_HEAD(nan); 144 ATF_TC_BODY(nan, tc) in ATF_TC_BODY() argument 146 long double complex nan_nan = CMPLXL(NAN, NAN); in ATF_TC_BODY() 151 * NaN,NaN NaN,NaN NaN,NaN NaN,NaN NaN,NaN in ATF_TC_BODY() 152 * finite,NaN NaN,NaN* NaN,NaN* NaN,NaN* NaN,NaN* in ATF_TC_BODY() 153 * NaN,finite NaN,NaN* NaN,NaN* NaN,NaN* NaN,NaN* in ATF_TC_BODY() 154 * NaN,Inf Inf,NaN NaN,-Inf ?Inf,NaN ?0,pi/2 in ATF_TC_BODY() 155 * +-Inf,NaN Inf,NaN NaN,?Inf +-Inf,NaN +-0,NaN in ATF_TC_BODY() 156 * +-0,NaN NaN,NaN* pi/2,NaN NaN,NaN* +-0,NaN in ATF_TC_BODY() [all …]
|
| H A D | csqrt_test.c | 64 * Compare d1 and d2 using special rules: NaN == NaN and +0 != -0. 147 * Test the handling of infinities when the other argument is not NaN. 184 ATF_CHECK(creall(t_csqrt(CMPLXL(INFINITY, NAN))) == INFINITY); in test_nans() 185 ATF_CHECK(isnan(cimagl(t_csqrt(CMPLXL(INFINITY, NAN))))); in test_nans() 187 ATF_CHECK(isnan(creall(t_csqrt(CMPLXL(-INFINITY, NAN))))); in test_nans() 188 ATF_CHECK(isinf(cimagl(t_csqrt(CMPLXL(-INFINITY, NAN))))); in test_nans() 190 assert_equal(t_csqrt(CMPLXL(NAN, INFINITY)), in test_nans() 192 assert_equal(t_csqrt(CMPLXL(NAN, -INFINITY)), in test_nans() 195 assert_equal(t_csqrt(CMPLXL(0.0, NAN)), CMPLXL(NAN, NAN)); in test_nans() 196 assert_equal(t_csqrt(CMPLXL(-0.0, NAN)), CMPLXL(NAN, NAN)); in test_nans() [all …]
|
| H A D | cexp_test.c | 113 * Tests for NaN. The signs of the results are indeterminate unless the 116 ATF_TC_WITHOUT_HEAD(nan); 117 ATF_TC_BODY(nan, tc) in ATF_TC_BODY() argument 121 /* cexp(x + NaNi) = NaN + NaNi and optionally raises invalid */ in ATF_TC_BODY() 122 /* cexp(NaN + yi) = NaN + NaNi and optionally raises invalid (|y|>0) */ in ATF_TC_BODY() 124 testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN), in ATF_TC_BODY() 129 testall(CMPLXL(NAN, finites[i]), CMPLXL(NAN, NAN), in ATF_TC_BODY() 133 /* cexp(NaN +- 0i) = NaN +- 0i */ in ATF_TC_BODY() 134 testall(CMPLXL(NAN, 0.0), CMPLXL(NAN, 0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY() 135 testall(CMPLXL(NAN, -0.0), CMPLXL(NAN, -0.0), ALL_STD_EXCEPT, 0, 1); in ATF_TC_BODY() [all …]
|
| H A D | nan_test.c | 28 * Test for nan(), nanf(), and nanl(). We also test that strtod("nan(...)") 29 * and sscanf("nan(...)", ...) work identically. 53 snprintf(nan_str, sizeof(nan_str), "nan(%s)", nan_format); in testnan() 73 /* nanf("") == strtof("nan") */ in testnan() 74 af[3] = strtof("nan", NULL); in testnan() 78 ad[0] = nan(nan_format); in testnan() 86 /* nan("") == strtod("nan") */ in testnan() 87 ad[3] = strtod("nan", NULL); in testnan() 99 /* nanl("") == strtold("nan") */ in testnan() 100 ald[3] = strtold("nan", NULL); in testnan() [all …]
|
| H A D | fma_test.c | 134 testall(0.0, INFINITY, 1.0, NAN, ALL_STD_EXCEPT, FE_INVALID); in test_infinities() 135 testall(INFINITY, 0.0, -0.0, NAN, ALL_STD_EXCEPT, FE_INVALID); in test_infinities() 138 testall(INFINITY, 0.0, NAN, NAN, ALL_STD_EXCEPT & ~FE_INVALID, 0); in test_infinities() 140 testall(INFINITY, INFINITY, -INFINITY, NAN, in test_infinities() 142 testall(-INFINITY, INFINITY, INFINITY, NAN, in test_infinities() 144 testall(INFINITY, -1.0, INFINITY, NAN, in test_infinities() 160 testall(NAN, 0.0, 0.0, NAN, ALL_STD_EXCEPT, 0); in test_nans() 161 testall(1.0, NAN, 1.0, NAN, ALL_STD_EXCEPT, 0); in test_nans() 162 testall(1.0, -1.0, NAN, NAN, ALL_STD_EXCEPT, 0); in test_nans() 163 testall(0.0, 0.0, NAN, NAN, ALL_STD_EXCEPT, 0); in test_nans() [all …]
|
| H A D | trig_test.c | 97 /* func(+-Inf) == NaN */ in ATF_TC_BODY() 98 testall(tan, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 99 testall(sin, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 100 testall(cos, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 101 testall(tan, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 102 testall(sin, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 103 testall(cos, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); in ATF_TC_BODY() 105 /* func(NaN) == NaN */ in ATF_TC_BODY() 106 testall(tan, NAN, NAN, ALL_STD_EXCEPT, 0); in ATF_TC_BODY() 107 testall(sin, NAN, NAN, ALL_STD_EXCEPT, 0); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/netbsd-tests/lib/libm/ |
| H A D | t_casinh.c | 29 { +INFINITY, +NAN, +INFINITY, +NAN}, 30 { +5.032E3, +NAN, +NAN, +NAN}, /* + FE_INVALID optionally raised */ 31 { +NAN, +0, +NAN, +0}, 32 { +NAN, -5.023E3, +NAN, +NAN}, /* + FE_INVALID optionally raised */ 33 { +NAN, +INFINITY, +INFINITY, +NAN}, /* sign of real part of result unspecified */ 34 { +NAN, +NAN, +NAN, +NAN},
|
| H A D | t_asin.c | 56 atf_tc_set_md_var(tc, "descr", "Test asin(NaN) == NaN"); in ATF_TC_HEAD() 64 atf_tc_fail_nonfatal("asin(NaN) != NaN"); in ATF_TC_BODY() 70 atf_tc_set_md_var(tc, "descr", "Test asin(-Inf) == NaN"); in ATF_TC_HEAD() 78 atf_tc_fail_nonfatal("asin(-Inf) != NaN"); in ATF_TC_BODY() 84 atf_tc_set_md_var(tc, "descr", "Test asin(+Inf) == NaN"); in ATF_TC_HEAD() 92 atf_tc_fail_nonfatal("asin(+Inf) != NaN"); in ATF_TC_BODY() 98 atf_tc_set_md_var(tc, "descr", "Test asin(x) == NaN, x < -1, x > 1"); in ATF_TC_HEAD() 109 atf_tc_fail_nonfatal("asin(%f) != NaN", x[i]); in ATF_TC_BODY() 170 atf_tc_set_md_var(tc, "descr", "Test asinf(NaN) == NaN"); in ATF_TC_HEAD() 178 atf_tc_fail_nonfatal("asinf(NaN) != NaN"); in ATF_TC_BODY() [all …]
|
| H A D | t_log.c | 58 atf_tc_set_md_var(tc, "descr", "Test log10(NaN) == NaN"); in ATF_TC_HEAD() 72 atf_tc_set_md_var(tc, "descr", "Test log10(-Inf) == NaN"); in ATF_TC_HEAD() 155 atf_tc_set_md_var(tc, "descr", "Test log10f(NaN) == NaN"); in ATF_TC_HEAD() 169 atf_tc_set_md_var(tc, "descr", "Test log10f(-Inf) == NaN"); in ATF_TC_HEAD() 241 atf_tc_set_md_var(tc, "descr", "Test log1p(NaN) == NaN"); in ATF_TC_HEAD() 255 atf_tc_set_md_var(tc, "descr", "Test log1p(-Inf) == NaN"); in ATF_TC_HEAD() 265 atf_tc_fail("log1p(-Inf) != NaN"); in ATF_TC_BODY() 330 atf_tc_set_md_var(tc, "descr", "Test log1pf(NaN) == NaN"); in ATF_TC_HEAD() 344 atf_tc_set_md_var(tc, "descr", "Test log1pf(-Inf) == NaN"); in ATF_TC_HEAD() 354 atf_tc_fail("log1pf(-Inf) != NaN"); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | README-NAN-USD | 1 Wi-Fi Aware unsynchronized service discovery (NAN USD) 20 Enable NAN USD in wpa_supplicant build config file 47 This command maps to the Publish() method in the NAN Discovery Engine. 51 This command maps to the CancelPublish() method in the NAN Discovery 56 This command maps to the UpdatePublish() method in the NAN Discovery 72 This command maps to the Subscribe() method in the NAN Discovery Engine. 76 This command maps to the CancelSubscribe() method in the NAN Discovery Engine. 80 This command maps to the Transmit() method in the NAN Discovery Engine. 84 NAN-DISCOVERY-RESULT subscribe_id=<own id> publish_id=<peer's id> address=<peer MAC address> fsd=<0… 86 This event maps to the DiscoveryResult() event in the NAN Discovery [all …]
|
| /freebsd/lib/msun/src/ |
| H A D | s_ccosh.c | 94 * cosh(+-0 +- I NaN) = d(NaN) + I (+-)(+-)0. in ccosh() 104 * cosh(NaN +- I 0) = d(NaN) + I (+-)(+-)0. in ccosh() 115 * cosh(x + I NaN) = d(NaN) + I d(NaN). in ccosh() 123 * cosh(+-Inf + I NaN) = +Inf + I d(NaN). in ccosh() 140 * cosh(NaN + I NaN) = d(NaN) + I d(NaN). in ccosh() 142 * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). in ccosh() 146 * cosh(NaN + I y) = d(NaN) + I d(NaN). in ccosh()
|
| H A D | s_csinh.c | 93 * sinh(+-0 +- I NaN) = +-0 + I d(NaN). in csinh() 103 * sinh(NaN +- I 0) = d(NaN) + I +-0. in csinh() 112 * sinh(x + I NaN) = d(NaN) + I d(NaN). in csinh() 120 * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). in csinh() 141 * sinh(NaN +- I Inf) = d(NaN, dNaN) + I d(NaN, dNaN). in csinh() 145 * sinh(NaN + I y) = d(NaN) + I d(NaN). in csinh()
|
| H A D | catrig.c | 286 /* casinh(+-Inf + I*NaN) = +-Inf + I*NaN */ in casinh() 289 /* casinh(NaN + I*+-Inf) = opt(+-)Inf + I*NaN */ in casinh() 292 /* casinh(NaN + I*0) = NaN + I*0 */ in casinh() 296 * All other cases involving NaN return NaN + I*NaN. in casinh() 298 * the arguments is not NaN, so we opt not to raise it. in casinh() 370 /* cacos(+-Inf + I*NaN) = NaN + I*opt(-)Inf */ in cacos() 373 /* cacos(NaN + I*+-Inf) = NaN + I*-+Inf */ in cacos() 376 /* cacos(0 + I*NaN) = PI/2 + I*NaN with inexact */ in cacos() 380 * All other cases involving NaN return NaN + I*NaN. in cacos() 382 * the arguments is not NaN, so we opt not to raise it. in cacos() [all …]
|
| H A D | s_ctanh.c | 87 * ctanh(NaN +- I 0) = d(NaN) +- I 0 in ctanh() 89 * ctanh(NaN + I y) = d(NaN,y) + I d(NaN,y) for y != 0 in ctanh() 103 if ((ix & 0xfffff) | lx) /* x is NaN */ in ctanh() 111 * ctanh(+-0 + i NAN) = +-0 + i NaN in ctanh() 112 * ctanh(+-0 +- i Inf) = +-0 + i NaN in ctanh() 113 * ctanh(x + i NAN) = NaN + i NaN in ctanh() 114 * ctanh(x +- i Inf) = NaN + i NaN in ctanh()
|
| H A D | s_csqrtf.c | 49 t = (b - b) / (b - b); /* raise invalid if b is not a NaN */ in csqrtf() 50 return (CMPLXF(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrtf() 54 * csqrtf(inf + NaN i) = inf + NaN i in csqrtf() 56 * csqrtf(-inf + NaN i) = NaN +- inf i in csqrtf() 66 return (CMPLXF(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrtf()
|
| H A D | e_atan2.c | 23 * ATAN2((anything), NaN ) is NaN; 24 * ATAN2(NAN , (anything) ) is NaN; 25 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 26 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 27 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 28 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 29 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 32 * ATAN2(+-INF, (anything but,0,NaN, and INF)) is +-pi/2; 68 ((iy|((ly|-ly)>>31))>0x7ff00000)) /* x or y is NaN */ in atan2()
|
| H A D | s_csqrt.c | 53 t = (b - b) / (b - b); /* raise invalid if b is not a NaN */ in csqrt() 54 return (CMPLX(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrt() 58 * csqrt(inf + NaN i) = inf + NaN i in csqrt() 60 * csqrt(-inf + NaN i) = NaN +- inf i in csqrt() 70 return (CMPLX(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrt()
|
| H A D | s_cexpf.c | 62 /* cexp(finite|NaN +- I Inf|NaN) = NaN + I NaN */ in cexpf() 65 /* cexp(-Inf +- I Inf|NaN) = 0 + I 0 */ in cexpf() 68 /* cexp(+Inf +- I Inf|NaN) = Inf + I NaN */ in cexpf() 85 * - x = NaN (spurious inexact exception from y) in cexpf()
|
| /freebsd/lib/libc/softfloat/ |
| H A D | softfloat-specialize | 98 Internal canonical NaN format. 108 The pattern for a default generated single-precision NaN. 115 Returns 1 if the single-precision floating-point value `a' is a NaN; 132 NaN; otherwise returns 0. 148 Returns the result of converting the single-precision floating-point NaN 149 `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid 167 Returns the result of converting the canonical NaN `a' to the single- 181 is a NaN, and returns the appropriate NaN result. If either `a' or `b' is a 182 signaling NaN, the invalid exception is raised. 207 The pattern for a default generated double-precision NaN. [all …]
|
| /freebsd/lib/libc/softfloat/templates/ |
| H A D | softfloat-specialize | 57 Internal canonical NaN format. 67 The pattern for a default generated single-precision NaN. 74 Returns 1 if the single-precision floating-point value `a' is a NaN; 88 NaN; otherwise returns 0. 100 Returns the result of converting the single-precision floating-point NaN 101 `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid 119 Returns the result of converting the canonical NaN `a' to the single- 133 is a NaN, and returns the appropriate NaN result. If either `a' or `b' is a 134 signaling NaN, the invalid exception is raised. 159 The pattern for a default generated double-precision NaN. [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURegBankCombiner.cpp | 219 // fmed3(NaN, K0, K1) = min(min(NaN, K0), K1) 221 // ieee = false : min/max(NaN, K) = K 222 // clamp(NaN) = dx10_clamp ? 0.0 : NaN 233 // Val = NaN,ieee = false or Val = QNaN,ieee = true 234 // fmed3(NaN, K0, K1) = min(min(NaN, K0), K1) = min(K0, K1) = K0 235 // min(max(NaN, K0), K1) = min(K0, K1) = K0 (can clamp when dx10_clamp = true) 236 // max(min(NaN, K1), K0) = max(K1, K0) = K1 != K0 258 // no NaN inputs. Most often MI is marked with nnan fast math flag. in matchFPMinMaxToMed3() 259 // For IEEE=true consider NaN inputs. fmed3(NaN, K0, K1) is equivalent to in matchFPMinMaxToMed3() 260 // min(min(NaN, K0), K1). Safe to fold for min(max(Val, K0), K1) since inner in matchFPMinMaxToMed3() [all …]
|
| /freebsd/contrib/bmake/unit-tests/ |
| H A D | cond-cmp-numeric.mk | 19 # Neither is NaN a number; see TryParseNumber. 20 # expect+1: Comparison with ">" requires both operands "NaN" and "NaN" to be numeric 21 .if ${:UNaN} > NaN 25 # Since NaN is not parsed as a number, both operands are interpreted 27 # they would compare unequal, since NaN is unequal to any and everything, 29 .if !(${:UNaN} == NaN)
|
| H A D | cond-cmp-numeric.exp | 3 CondParser_Eval: ${:UNaN} > NaN 4 make: cond-cmp-numeric.mk:21: Comparison with ">" requires both operands "NaN" and "NaN" to be nume… 5 CondParser_Eval: !(${:UNaN} == NaN) 6 Comparing "NaN" == "NaN"
|
| /freebsd/lib/msun/man/ |
| H A D | nan.3 | 29 .Nm nan , 38 .Fn nan "const char *s" 45 .Dv NAN 48 .Fn nan , 80 .Dv NAN 90 .Fn nan , 95 .Dv NAN
|