Home
last modified time | relevance | path

Searched full:inf (Results 1 – 25 of 646) sorted by relevance

12345678910>>...26

/freebsd/contrib/netbsd-tests/lib/libm/
H A Dt_pow.c69 atf_tc_set_md_var(tc, "descr", "Test pow(-Inf, y) == +-Inf || +-0.0"); in ATF_TC_HEAD()
78 * If y is odd, y > 0, and x is -Inf, -Inf is returned. in ATF_TC_BODY()
79 * If y is even, y > 0, and x is -Inf, +Inf is returned. in ATF_TC_BODY()
84 atf_tc_fail_nonfatal("pow(-Inf, 3.0) != -Inf"); in ATF_TC_BODY()
89 atf_tc_fail_nonfatal("pow(-Inf, 4.0) != +Inf"); in ATF_TC_BODY()
92 * If y is odd, y < 0, and x is -Inf, -0.0 is returned. in ATF_TC_BODY()
93 * If y is even, y < 0, and x is -Inf, +0.0 is returned. in ATF_TC_BODY()
98 atf_tc_fail_nonfatal("pow(-Inf, -3.0) != -0.0"); in ATF_TC_BODY()
103 atf_tc_fail_nonfatal("pow(-Inf -4.0) != +0.0"); in ATF_TC_BODY()
109 atf_tc_set_md_var(tc, "descr", "Test pow(x, -Inf) == +Inf || +0.0"); in ATF_TC_HEAD()
[all …]
H A Dt_ceil.c79 atf_tc_set_md_var(tc, "descr", "Test ceil(-Inf) == -Inf"); in ATF_TC_HEAD()
88 atf_tc_fail_nonfatal("ceil(-Inf) != -Inf"); in ATF_TC_BODY()
94 atf_tc_set_md_var(tc, "descr", "Test ceil(+Inf) == +Inf"); in ATF_TC_HEAD()
103 atf_tc_fail_nonfatal("ceil(+Inf) != +Inf"); in ATF_TC_BODY()
170 atf_tc_set_md_var(tc, "descr", "Test ceilf(-Inf) == -Inf"); in ATF_TC_HEAD()
179 atf_tc_fail_nonfatal("ceilf(-Inf) != -Inf"); in ATF_TC_BODY()
185 atf_tc_set_md_var(tc, "descr", "Test ceilf(+Inf) == +Inf"); in ATF_TC_HEAD()
194 atf_tc_fail_nonfatal("ceilf(+Inf) != +Inf"); in ATF_TC_BODY()
261 atf_tc_set_md_var(tc, "descr", "Test ceill(-Inf) == -Inf"); in ATF_TC_HEAD()
270 atf_tc_fail_nonfatal("ceill(-Inf) != -Inf"); in ATF_TC_BODY()
[all …]
H A Dt_erf.c56 atf_tc_set_md_var(tc, "descr", "Test erf(-Inf) == -1.0"); in ATF_TC_HEAD()
64 atf_tc_fail_nonfatal("erf(-Inf) != -1.0"); in ATF_TC_BODY()
70 atf_tc_set_md_var(tc, "descr", "Test erf(+Inf) == 1.0"); in ATF_TC_HEAD()
78 atf_tc_fail_nonfatal("erf(+Inf) != 1.0"); in ATF_TC_BODY()
130 atf_tc_set_md_var(tc, "descr", "Test erff(-Inf) == -1.0"); in ATF_TC_HEAD()
138 atf_tc_fail_nonfatal("erff(-Inf) != -1.0"); in ATF_TC_BODY()
144 atf_tc_set_md_var(tc, "descr", "Test erff(+Inf) == 1.0"); in ATF_TC_HEAD()
152 atf_tc_fail_nonfatal("erff(+Inf) != 1.0"); in ATF_TC_BODY()
204 atf_tc_set_md_var(tc, "descr", "Test erfc(-Inf) == 2.0"); in ATF_TC_HEAD()
212 atf_tc_fail_nonfatal("erfc(-Inf) != 2.0"); in ATF_TC_BODY()
[all …]
H A Dt_ldexp.c86 { 1.0, 1024, -1, " inf" },
87 { 1.0, 1024, 0, " inf" },
88 { 1.0, 1024, 1, " inf" },
89 { -1.0, 1024, -1, " -inf" },
90 { -1.0, 1024, 0, " -inf" },
91 { -1.0, 1024, 1, " -inf" },
96 { 1.0, 1024, SKIP, " inf" },
97 { 1.0, 1023, 1, " inf" },
98 { 1.0, -1022, 2046, " inf" },
99 { 1.0, 1025, SKIP, " inf" },
[all …]
H A Dt_exp.c72 atf_tc_skip("no +/-Inf on this machine");
206 atf_tc_set_md_var(tc, "descr", "Test exp(-Inf) == +0.0"); in ATF_TC_HEAD()
215 atf_tc_fail_nonfatal("exp(-Inf) != +0.0"); in ATF_TC_BODY()
221 atf_tc_set_md_var(tc, "descr", "Test exp(+Inf) == +Inf"); in ATF_TC_HEAD()
230 atf_tc_fail_nonfatal("exp(+Inf) != +Inf"); in ATF_TC_BODY()
303 atf_tc_set_md_var(tc, "descr", "Test expf(-Inf) == +0.0"); in ATF_TC_HEAD()
312 atf_tc_fail_nonfatal("expf(-Inf) != +0.0"); in ATF_TC_BODY()
318 atf_tc_set_md_var(tc, "descr", "Test expf(+Inf) == +Inf"); in ATF_TC_HEAD()
327 atf_tc_fail_nonfatal("expf(+Inf) != +Inf"); in ATF_TC_BODY()
400 atf_tc_set_md_var(tc, "descr", "Test expm1(-Inf) == -1"); in ATF_TC_HEAD()
[all …]
H A Dt_log.c72 atf_tc_set_md_var(tc, "descr", "Test log10(-Inf) == NaN"); in ATF_TC_HEAD()
86 atf_tc_set_md_var(tc, "descr", "Test log10(+Inf) == +Inf"); in ATF_TC_HEAD()
169 atf_tc_set_md_var(tc, "descr", "Test log10f(-Inf) == NaN"); in ATF_TC_HEAD()
183 atf_tc_set_md_var(tc, "descr", "Test log10f(+Inf) == +Inf"); 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()
272 atf_tc_set_md_var(tc, "descr", "Test log1p(+Inf) == +Inf"); 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()
361 atf_tc_set_md_var(tc, "descr", "Test log1pf(+Inf) == +Inf"); in ATF_TC_HEAD()
[all …]
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dfitblk.c99 /* recompress from inf's input to def's output; the input for inf and
103 local int recompress(z_streamp inf, z_streamp def) in recompress() argument
112 inf->avail_out = RAWLEN; in recompress()
113 inf->next_out = raw; in recompress()
114 …al_in=%d avail_out=%d total_out=%d\n", (int)inf->avail_in, (int)inf->total_in, (int)inf->avail_out… in recompress()
115 ret = inflate(inf, Z_NO_FLUSH); in recompress()
116 …al_in=%d avail_out=%d total_out=%d\n", (int)inf->avail_in, (int)inf->total_in, (int)inf->avail_out… in recompress()
123 def->avail_in = RAWLEN - inf->avail_out; in recompress()
125 if (inf->avail_out != 0) in recompress()
146 z_stream def, inf; /* zlib deflate and inflate states */ in main() local
[all …]
H A Dfitblk_original.c92 /* recompress from inf's input to def's output; the input for inf and
96 local int recompress(z_streamp inf, z_streamp def) in recompress() argument
104 inf->avail_out = RAWLEN; in recompress()
105 inf->next_out = raw; in recompress()
106 ret = inflate(inf, Z_NO_FLUSH); in recompress()
113 def->avail_in = RAWLEN - inf->avail_out; in recompress()
115 if (inf->avail_out != 0) in recompress()
134 z_stream def, inf; /* zlib deflate and inflate states */ in main() local
180 inf.zalloc = Z_NULL; in main()
181 inf.zfree = Z_NULL; in main()
[all …]
/freebsd/lib/msun/src/
H A De_atan2.c28 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ;
29 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi;
30 * ATAN2(+-INF,+INF ) is +-pi/4 ;
31 * ATAN2(+-INF,-INF ) is +-3pi/4;
32 * ATAN2(+-INF, (anything but,0,NaN, and INF)) is +-pi/2;
85 /* when x is INF */ in atan2()
89 case 0: return pi_o_4+tiny;/* atan(+INF,+INF) */ in atan2()
90 case 1: return -pi_o_4-tiny;/* atan(-INF,+INF) */ in atan2()
91 case 2: return 3.0*pi_o_4+tiny;/*atan(+INF,-INF)*/ in atan2()
92 case 3: return -3.0*pi_o_4-tiny;/*atan(-INF,-INF)*/ in atan2()
[all …]
H A De_atan2f.c57 /* when x is INF */ in atan2f()
61 case 0: return pi_o_4+tiny;/* atan(+INF,+INF) */ in atan2f()
62 case 1: return -pi_o_4-tiny;/* atan(-INF,+INF) */ in atan2f()
63 case 2: return (float)3.0*pi_o_4+tiny;/*atan(+INF,-INF)*/ in atan2f()
64 case 3: return (float)-3.0*pi_o_4-tiny;/*atan(-INF,-INF)*/ in atan2f()
68 case 0: return zero ; /* atan(+...,+INF) */ in atan2f()
69 case 1: return -zero ; /* atan(-...,+INF) */ in atan2f()
70 case 2: return pi+tiny ; /* atan(+...,-INF) */ in atan2f()
71 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in atan2f()
75 /* when y is INF */ in atan2f()
H A De_atan2l.c79 /* when x is INF */ in atan2l()
83 case 0: return pio2_hi*0.5+tiny;/* atan(+INF,+INF) */ in atan2l()
84 case 1: return -pio2_hi*0.5-tiny;/* atan(-INF,+INF) */ in atan2l()
85 case 2: return 1.5*pio2_hi+tiny;/*atan(+INF,-INF)*/ in atan2l()
86 case 3: return -1.5*pio2_hi-tiny;/*atan(-INF,-INF)*/ in atan2l()
90 case 0: return zero ; /* atan(+...,+INF) */ in atan2l()
91 case 1: return -zero ; /* atan(-...,+INF) */ in atan2l()
92 case 2: return pi+tiny ; /* atan(+...,-INF) */ in atan2l()
93 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in atan2l()
97 /* when y is INF */ in atan2l()
H A Ds_csinh.c89 * sinh(+-0 +- I Inf) = +-0 + I dNaN. in csinh()
101 * sinh(+-Inf +- I 0) = +-Inf + I +-0. in csinh()
109 * sinh(x +- I Inf) = dNaN + I dNaN. in csinh()
120 * sinh(+-Inf + I NaN) = +-Inf + I d(NaN). in csinh()
121 * The sign of Inf in the result is unspecified. Choice = same sign in csinh()
124 * sinh(+-Inf +- I Inf) = +-Inf + I dNaN. in csinh()
125 * The sign of Inf in the result is unspecified. Choice = same sign in csinh()
128 * sinh(+-Inf + I y) = +-Inf cos(y) + I Inf sin(y) in csinh()
141 * sinh(NaN +- I Inf) = d(NaN, dNaN) + I d(NaN, dNaN). in csinh()
H A Ds_ccosh.c89 * cosh(+-0 +- I Inf) = dNaN + I (+-)(+-)0. in ccosh()
102 * cosh(+-Inf +- I 0) = +Inf + I (+-)(+-)0. in ccosh()
112 * cosh(x +- I Inf) = dNaN + I dNaN. in ccosh()
123 * cosh(+-Inf + I NaN) = +Inf + I d(NaN). in ccosh()
125 * cosh(+-Inf +- I Inf) = +Inf + I dNaN. in ccosh()
126 * The sign of Inf in the result is unspecified. Choice = always +. in ccosh()
129 * cosh(+-Inf + I y) = +Inf cos(y) +- I Inf sin(y) in ccosh()
142 * cosh(NaN +- I Inf) = d(NaN) + I d(NaN). in ccosh()
/freebsd/lib/msun/tests/
H A Dinvctrig_test.c154 * 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()
222 ATF_TC_WITHOUT_HEAD(inf);
223 ATF_TC_BODY(inf, tc) in ATF_TC_BODY() argument
229 * Inf,Inf Inf,pi/4 pi/4,-Inf Inf,pi/4 0,pi/2 in ATF_TC_BODY()
230 * -Inf,Inf Inf,3pi/4 3pi/4,-Inf --- --- in ATF_TC_BODY()
231 * Inf,finite Inf,0 0,-Inf Inf,0 0,pi/2 in ATF_TC_BODY()
232 * -Inf,finite Inf,pi pi,-Inf --- --- in ATF_TC_BODY()
233 * finite,Inf Inf,pi/2 pi/2,-Inf Inf,pi/2 0,pi/2 in ATF_TC_BODY()
342 ATF_TP_ADD_TC(tp, inf); in ATF_TP_ADD_TCS()
/freebsd/contrib/tcsh/
H A Dsh.init.c40 #define INF INT_MAX macro
43 { ":", dozip, 0, INF },
44 { "@", dolet, 0, INF },
45 { "alias", doalias, 0, INF },
48 { "att", doatt, 0, INF },
50 { "bg", dobg, 0, INF },
55 { "bs2cmd", dobs2cmd, 1, INF },
62 { "cd", dochngd, 0, INF },
63 { "chdir", dochngd, 0, INF },
64 { "complete", docomplete, 0, INF },
[all …]
/freebsd/bin/ps/
H A Dps.c812 addelem_gid(struct listinfo *inf, const char *elem) in addelem_gid() argument
821 xo_warnx("Invalid (zero-length) %s name", inf->lname); in addelem_gid()
823 xo_warnx("%s name too long: %s", inf->lname, elem); in addelem_gid()
848 xo_warnx("No %s %s '%s'", inf->lname, nameorID, elem); in addelem_gid()
852 if (inf->count >= inf->maxcount) in addelem_gid()
853 expand_list(inf); in addelem_gid()
854 inf->l.gids[(inf->count)++] = grp->gr_gid; in addelem_gid()
859 addelem_jid(struct listinfo *inf, const char *elem) in addelem_jid() argument
871 xo_warnx("Invalid %s: %s", inf->lname, elem); in addelem_jid()
876 if (inf->count >= inf->maxcount) in addelem_jid()
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/experimental/
H A Datan2_2u5.c82 /* Special case for either x is INF or (x, y) is very close to x axis and x in atan2()
92 return PiOver4; /* atan(+INF,+INF). */ in atan2()
94 return -PiOver4; /* atan(-INF,+INF). */ in atan2()
96 return 3.0 * PiOver4; /* atan(+INF,-INF). */ in atan2()
98 return -3.0 * PiOver4; /* atan(-INF,-INF). */ in atan2()
106 return 0.0; /* atan(+...,+INF). */ in atan2()
108 return -0.0; /* atan(-...,+INF). */ in atan2()
110 return Pi; /* atan(+...,-INF). */ in atan2()
112 return -Pi; /* atan(-...,-INF). */ in atan2()
116 /* y is INF. */ in atan2()
H A Datan2f_3u.c91 /* x is INF. */ in atan2f()
99 return PiOver4; /* atan(+INF,+INF). */ in atan2f()
101 return -PiOver4; /* atan(-INF,+INF). */ in atan2f()
103 return 3.0f * PiOver4; /* atan(+INF,-INF). */ in atan2f()
105 return -3.0f * PiOver4; /* atan(-INF,-INF). */ in atan2f()
113 return 0.0f; /* atan(+...,+INF). */ in atan2f()
115 return -0.0f; /* atan(-...,+INF). */ in atan2f()
117 return Pi; /* atan(+...,-INF). */ in atan2f()
119 return -Pi; /* atan(-...,-INF). */ in atan2f()
123 /* y is INF. */ in atan2f()
/freebsd/contrib/arm-optimized-routines/math/aarch64/sve/
H A Dhypot.c17 .thres = 0x7300000000000000, /* asuint (inf) - tiny_bound. */
49 TEST_INTERVAL2 (SV_NAME_D2 (hypot), 0, inf, 0, inf, 10000)
50 TEST_INTERVAL2 (SV_NAME_D2 (hypot), 0, inf, -0, -inf, 10000)
51 TEST_INTERVAL2 (SV_NAME_D2 (hypot), -0, -inf, 0, inf, 10000)
52 TEST_INTERVAL2 (SV_NAME_D2 (hypot), -0, -inf, -0, -inf, 10000)
H A Dhypotf.c43 TEST_INTERVAL2 (SV_NAME_F2 (hypot), 0, inf, 0, inf, 10000)
44 TEST_INTERVAL2 (SV_NAME_F2 (hypot), 0, inf, -0, -inf, 10000)
45 TEST_INTERVAL2 (SV_NAME_F2 (hypot), -0, -inf, 0, inf, 10000)
46 TEST_INTERVAL2 (SV_NAME_F2 (hypot), -0, -inf, -0, -inf, 10000)
H A Dpowf.c72 /* Check if zero, inf or nan. */
97 /* Check if zero, inf or nan. */
112 /* Either (x < 0x1p-126 or inf or nan) or (y is 0 or inf or nan). */ in powf_specialcase()
124 return 0.0f; /* |x|<1 && y==inf or |x|>1 && y==-inf. */ in powf_specialcase()
143 /* Special cases of x or y: zero, inf and nan. */ in sv_call_powf_sc()
278 /* Special cases of x or y: zero, inf and nan. */ in SV_NAME_F2()
336 SV_POWF_INTERVAL2 (0, 0x1p-126, 0, inf, 40000)
337 SV_POWF_INTERVAL2 (0x1p-126, 1, 0, inf, 50000)
338 SV_POWF_INTERVAL2 (1, inf, 0, inf, 50000)
351 /* |x| is inf, y is odd or even integer, or y is real not integer. */
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/advsimd/
H A Dhypot.c27 .thres = V4 (0x7c900000), /* asuint (inf) - tiny_bound. */
92 TEST_INTERVAL2 (V_NAME_D2 (hypot), 0, inf, 0, inf, 10000)
93 TEST_INTERVAL2 (V_NAME_D2 (hypot), 0, inf, -0, -inf, 10000)
94 TEST_INTERVAL2 (V_NAME_D2 (hypot), -0, -inf, 0, inf, 10000)
95 TEST_INTERVAL2 (V_NAME_D2 (hypot), -0, -inf, -0, -inf, 10000)
H A Dhypotf.c27 .thres = V8 (0x7300), /* asuint (inf) - tiny_bound. */
93 TEST_INTERVAL2 (V_NAME_F2 (hypot), 0, inf, 0, inf, 10000)
94 TEST_INTERVAL2 (V_NAME_F2 (hypot), 0, inf, -0, -inf, 10000)
95 TEST_INTERVAL2 (V_NAME_F2 (hypot), -0, -inf, 0, inf, 10000)
96 TEST_INTERVAL2 (V_NAME_F2 (hypot), -0, -inf, -0, -inf, 10000)
/freebsd/usr.sbin/rpcbind/
H A Drpcb_stat.c54 static rpcb_stat_byvers inf; variable
82 inf[rtype].info[proc]++; in rpcbs_procinfo()
90 inf[rtype].setinfo++; in rpcbs_set()
98 inf[rtype].unsetinfo++; in rpcbs_unset()
110 for (al = inf[rtype].addrinfo; al; al = al->next) { in rpcbs_getaddr()
141 al->next = inf[rtype].addrinfo; in rpcbs_getaddr()
142 inf[rtype].addrinfo = al; in rpcbs_getaddr()
154 for (rl = inf[rtype].rmtinfo; rl; rl = rl->next) { in rpcbs_rmtcall()
193 rl->next = inf[rtype].rmtinfo; in rpcbs_rmtcall()
194 inf[rtype].rmtinfo = rl; in rpcbs_rmtcall()
[all …]
/freebsd/sys/dev/aac/
H A Daac_cam.c71 struct aac_sim *inf; member
119 if (camsc == NULL || camsc->inf == NULL || in aac_cam_rescan()
120 camsc->inf->BusNumber != channel) in aac_cam_rescan()
181 sc = camsc->inf->aac_sc; in aac_cam_detach()
182 camsc->inf->aac_cam = NULL; in aac_cam_detach()
208 struct aac_sim *inf; in aac_cam_attach() local
213 inf = (struct aac_sim *)device_get_ivars(dev); in aac_cam_attach()
214 camsc->inf = inf; in aac_cam_attach()
215 camsc->inf->aac_cam = camsc; in aac_cam_attach()
217 devq = cam_simq_alloc(inf->TargetsPerBus); in aac_cam_attach()
[all …]

12345678910>>...26