/freebsd/crypto/openssh/regress/unittests/utf8/ |
H A D | tests.c | 36 one(int utf8, const char *name, const char *mbs, int width, in one() function 67 one(1, "empty", "", 2, 0, 0, ""); in tests() 68 one(1, "ascii", "x", -2, -2, -2, "x"); in tests() 69 one(1, "newline", "a\nb", -2, -2, -2, "a\nb"); in tests() 70 one(1, "cr", "a\rb", -2, -2, -2, "a\rb"); in tests() 71 one(1, "tab", "a\tb", -2, -2, -2, "a\tb"); in tests() 72 one(1, "esc", "\033x", -2, -2, -2, "\\033x"); in tests() 73 one(1, "inv_badbyte", "\377x", -2, -2, -2, "\\377x"); in tests() 74 one(1, "inv_nocont", "\341x", -2, -2, -2, "\\341x"); in tests() 75 one(1, "inv_nolead", "a\200b", -2, -2, -2, "a\\200b"); in tests() [all …]
|
/freebsd/lib/msun/src/ |
H A D | s_erff.c | 24 one = 1, variable 86 return (float)(1-i)+one/x; /* erff(+-inf)=+-1 */ in erff() 97 s = one+z*(qq1+z*(qq2+z*qq3)); in erff() 102 s = fabsf(x)-one; in erff() 104 Q = one+s*(qa1+s*(qa2+s*qa3)); in erff() 108 if(hx>=0) return one-tiny; else return tiny-one; in erff() 111 s = one/(x*x); in erff() 114 S=one+s*(sa1+s*(sa2+s*sa3)); in erff() 117 S=one+s*(sb1+s*(sb2+s*sb3)); in erff() 121 if(hx>=0) return one-r/x; else return r/x-one; in erff() [all …]
|
H A D | s_erf.c | 115 one = 1, variable 201 return (double)(1-i)+one/x; /* erf(+-inf)=+-1 */ in erf() 212 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*qq5)))); in erf() 217 s = fabs(x)-one; in erf() 219 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*qa6))))); in erf() 223 if(hx>=0) return one-tiny; else return tiny-one; in erf() 226 s = one/(x*x); in erf() 229 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+ in erf() 233 S=one+s*(sb1+s*(sb2+s*(sb3+s*(sb4+s*(sb5+s*(sb6+s*sb7)))))); in erf() 238 if(hx>=0) return one-r/x; else return r/x-one; in erf() [all …]
|
H A D | s_tanhf.c | 20 static const float one=1.0, two=2.0, huge = 1.0e30; variable 33 if (jx>=0) return one/x+one; /* tanh(+-inf)=+-1 */ in tanhf() 34 else return one/x-one; /* tanh(NaN) = NaN */ in tanhf() 40 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */ in tanhf() 44 z = one - two/(t+two); in tanhf() 51 z = one - tiny; /* raise inexact flag */ in tanhf()
|
H A D | s_tanh.c | 42 static const double one = 1.0, two = 2.0, huge = 1.0e300; variable 55 if (jx>=0) return one/x+one; /* tanh(+-inf)=+-1 */ in tanh() 56 else return one/x-one; /* tanh(NaN) = NaN */ in tanh() 62 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */ in tanh() 66 z = one - two/(t+two); in tanh() 73 z = one - tiny; /* raise inexact flag */ in tanh()
|
H A D | e_lgammaf_r.c | 25 one = 1, variable 110 case 4: y = __kernel_sindf(pi*(one-y)); break; in sin_pif() 137 return one/vzero; in lgammaf_r() 145 return one/vzero; in lgammaf_r() 147 if(t==zero) return one/vzero; /* -integer */ in lgammaf_r() 159 if(ix>=0x3f3b4a20) {y = one-x; i= 0;} in lgammaf_r() 160 else if(ix>=0x3e6d3308) {y= x-(tc-one); i=1;} in lgammaf_r() 166 else {y=x-one;i=2;} in lgammaf_r() 180 p2 = one+y*(v1+y*(v2+y*v3)); in lgammaf_r() 189 q = one+y*(r1+y*(r2+y*r3)); in lgammaf_r() [all …]
|
H A D | e_j0.c | 66 one = 1.0, variable 89 if(ix>=0x7ff00000) return one/(x*x); in j0() 112 if(huge+x>one) { /* raise inexact if x != 0 */ in j0() 113 if(ix<0x3e400000) return one; /* |x|<2**-27 */ in j0() 114 else return one - x*x/4; in j0() 119 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in j0() 121 return one + z*((r/s)-qrtr); in j0() 124 return((one+u)*(one-u)+z*(r/s)); in j0() 156 if((ix|lx)==0) return -one/vzero; in y0() 195 v = one+z*(v01+z*(v02+z*(v03+z*v04))); in y0() [all …]
|
H A D | e_j0f.c | 29 one = 1.0, variable 52 if(ix>=0x7f800000) return one/(x*x); in j0f() 75 if(huge+x>one) { /* raise inexact if x != 0 */ in j0f() 76 if(ix<0x39800000) return one; /* |x|<2**-12 */ in j0f() 77 else return one - x*x/4; in j0f() 82 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in j0f() 84 return one + z*((r/s)-qrtr); in j0f() 87 return((one+u)*(one-u)+z*(r/s)); in j0f() 113 if(ix==0) return -one/vzero; in y0f() 151 v = one+z*(v01+z*(v02+z*(v03+z*v04))); in y0f() [all …]
|
H A D | e_lgamma_r.c | 89 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable 188 case 4: y = __kernel_sin(pi*(one-y),zero,0); break; in sin_pi() 215 return one/vzero; in lgamma_r() 223 return one/vzero; in lgamma_r() 225 if(t==zero) return one/vzero; /* -integer */ in lgamma_r() 237 if(ix>=0x3FE76944) {y = one-x; i= 0;} in lgamma_r() 238 else if(ix>=0x3FCDA661) {y= x-(tc-one); i=1;} in lgamma_r() 244 else {y=x-one;i=2;} in lgamma_r() 263 p2 = one+y*(v1+y*(v2+y*(v3+y*(v4+y*v5)))); in lgamma_r() 272 q = one+y*(r1+y*(r2+y*(r3+y*(r4+y*(r5+y*r6))))); in lgamma_r() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | t-strl.c | 30 int one, two, k; variable 95 one = sm_strlcpyn(dst1, sizeof dst1, 3, src1[0], "/", src1[1]); 97 SM_TEST(one == two); 99 one = sm_strlcpyn(dst1, 10, 3, src1[0], "/", src1[1]); 101 SM_TEST(one == two); 103 one = sm_strlcpyn(dst1, 5, 3, src1[0], "/", src1[1]); 105 SM_TEST(one == two); 107 one = sm_strlcpyn(dst1, 0, 3, src1[0], "/", src1[1]); 109 SM_TEST(one == two); 111 one = sm_strlcpyn(dst1, sizeof dst1, 5, src1[0], "/", src1[1], "/", src1[2]); [all …]
|
H A D | b-strl.c | 68 long one, two; 122 printf("\tstrlcat() result: %ld seconds\n", one = toseconds(t2, t1)); 135 if (one - two >= -2 && one - two <= 2) 138 if (loops < 0L || one > MAXTIME) 163 printf("\tstrlcpy() result: %ld seconds\n", one = toseconds(t2, t1)); 176 if (one - two >= -2 && one - two <= 2) 179 if (loops < 0L || one > MAXTIME)
|
/freebsd/lib/msun/tests/ |
H A D | fma_test.c | 84 static volatile double one = 1.0; variable 105 testall(-one, one, one, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes() 106 testall(one, -one, one, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes() 107 testall(-one, -one, -one, rd ? -0.0 : 0.0, ALL_STD_EXCEPT, 0); in test_zeroes() 184 test(fmaf, one, one, 0x1.0p-100, 1.0 + FLT_EPSILON, in test_small_z() 186 test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON, in test_small_z() 188 test(fmal, one, one, 0x1.0p-200, 1.0 + LDBL_EPSILON, in test_small_z() 191 testall(0x1.0p100, one, 0x1.0p-100, 0x1.0p100, in test_small_z() 197 test(fmaf, -one, one, -0x1.0p-100, -(1.0 + FLT_EPSILON), in test_small_z() 199 test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON), in test_small_z() [all …]
|
/freebsd/tests/sys/net/ |
H A D | if_bridge_test.sh | 227 vnet_mkjail one ${bridge} ${epair}a 231 jexec one ifconfig ${bridge} up 232 jexec one ifconfig ${epair}a up 233 jexec one ifconfig ${bridge} addm ${epair}a 237 jexec one ifconfig ${bridge} static ${epair}b 00:01:02:03:04:05 241 jexec one ifconfig ${bridge} static ${epair}a 00:01:02:03:04 245 jexec one ifconfig ${bridge} static ${epair}a 00:01:02:03:04:05 249 jexec one ifconfig ${bridge} addr 253 jexec one ifconfig ${bridge} deladdr 00:01:02:03:04 257 jexec one ifconfig ${bridge} deladdr 00:01:02:03:04:06 [all …]
|
H A D | if_stf.sh | 151 vnet_mkjail one ${epair}a 152 jexec one ifconfig lo0 up 153 jexec one ifconfig ${epair}a 192.0.2.1/24 up 154 stf_one=$(jexec one ifconfig stf create) 155 jexec one ifconfig $stf_one stfv4br 192.0.2.3 156 jexec one ifconfig $stf_one stfv4net 192.0.2.1/32 157 jexec one ifconfig $stf_one inet6 2001:db8:c000:0201::1/32 up 158 jexec one route -6 add default -interface $stf_one 171 jexec one ping -c 1 192.0.2.2 175 jexec one ping6 -c 1 2001:db8:c000:0202::1 [all …]
|
H A D | if_gif.sh | 45 vnet_mkjail one ${epair}a 46 jexec one ifconfig ${epair}a 192.0.2.1/24 up 47 gone=$(jexec one ifconfig gif create) 48 jexec one ifconfig $gone tunnel 192.0.2.1 192.0.2.2 49 jexec one ifconfig $gone inet 198.51.100.1/24 198.51.100.2 up 59 jexec one ping -c 1 192.0.2.2 63 jexec one ping -c 1 198.51.100.2
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-sysv.mk | 17 .if ${one.c two.c three.c:L:.c=.o} != "one.o two.o three.o" 41 .if ${one two three:L:%=(%)} != "(one) (two) (three)" 53 .if ${one two:L:${:Uone}=${:U1}} != "1 two" 141 .if ${one two:L:o%=a%w} != "anew two" 146 .if ${one two:L:=X} != "oneX twoX" 151 .if ${one two:L:o=X} != "one twX" 156 .if ${one two:L:o=} != "one tw" 162 .if ${one two:L:o=%} != "one tw%" 168 .if ${one two:L:%o=X} != "one X" 174 .if ${one two:L:o%=X} != "X two" [all …]
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | pfsync.sh | 52 vnet_mkjail one ${epair_one}a ${epair_sync}a 56 jexec one ifconfig ${epair_sync}a 192.0.2.1/24 up 57 jexec one ifconfig ${epair_one}a 198.51.100.1/24 up 58 jexec one ifconfig pfsync0 \ 72 jexec one pfctl -e 73 pft_set_rules one \ 81 hostid_one=$(jexec one pfctl -si -v | awk '/Hostid:/ { gsub(/0x/, "", $2); printf($2); }') 210 vnet_mkjail one ${epair_one}a ${epair_sync}a 214 jexec one ifconfig ${epair_sync}a 192.0.2.1/24 up 215 jexec one ifconfig ${epair_one}a 198.51.100.1/24 up [all …]
|
H A D | status.sh | 42 vnet_mkjail one ${epair}a 43 jexec one ifconfig ${epair}a 192.0.2.1/24 up 47 jexec one pfctl -e 48 pft_set_rules one "pass" 55 jexec one pfctl -si 58 jexec one pfctl -Fi 61 jexec one pfctl -si
|
/freebsd/lib/msun/ld128/ |
H A D | s_erfl.c | 28 one = 1, variable 201 return (1-i)+one/x; /* erfl(+-inf)=+-1 */ in erfl() 214 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*(qq5+z*(qq6+z*(qq7+ in erfl() 220 s = ax-one; in erfl() 223 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*(qa6+s*(qa7+ in erfl() 228 if(x>=0) return (one-tiny); else return (tiny-one); in erfl() 230 s = one/(ax*ax); in erfl() 235 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+ in erfl() 242 S=one+s*(sb1+s*(sb2+s*(sb3+s*(sb4+s*(sb5+s*(sb6+s*(sb7+ in erfl() 248 if(x>=0) return (one-r/ax); else return (r/ax-one); in erfl() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/types/ |
H A D | tst.relenum.d | 41 one, enumerator 52 /zero >= one || second <= first || zero == second/ 55 printf("zero = %d; one = %d; two = %d", zero, one, two); 61 /second < one || two > second || null == first/ 64 printf("zero = %d; one = %d; two = %d", zero, one, two); 70 /first < two && second > one && one != two && zero != first/
|
/freebsd/lib/msun/ld80/ |
H A D | s_erfl.c | 31 one = 1, variable 227 return (1-i)+one/x; /* erfl(+-inf)=+-1 */ in erfl() 241 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*(qq5+z*qq6))))); in erfl() 246 s = ax-one; in erfl() 248 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*(qa6+s*qa7)))))); in erfl() 252 if(x>=0) RETURNI(one-tiny); else RETURNI(tiny-one); in erfl() 254 s = one/(ax*ax); in erfl() 258 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+ in erfl() 262 S=one+s*(sb1+s*(sb2+s*(sb3+s*(sb4+s*(sb5+s*(sb6+s*sb7)))))); in erfl() 266 if(x>=0) RETURNI(one-r/ax); else RETURNI(r/ax-one); in erfl() [all …]
|
/freebsd/usr.bin/ctags/test/ |
H A D | ctags.test | 17 char qq[] = " quote(one,two) {int bar;} "; 38 multiple(one,two); \ 40 callroute(one,two); \ 50 routine1(one,two) /* comments here are fun... */ 54 } *one; 59 five(one,two); 61 routine2 (one,two) { puts("hello\n"); } 63 (one, 65 routine4(int one, char (*two)(void)) /* test ANSI arguments */
|
/freebsd/tests/sys/net/if_ovpn/ |
H A D | if_ovpn.sh | 609 one=$(vnet_mkepair) 616 ifconfig ${one}a up 617 ifconfig ${bridge} addm ${one}a 623 vnet_mkjail one ${one}b 624 jexec one ifconfig ${one}b 192.0.2.2/24 up 631 atf_check -s exit:0 -o ignore jexec one ping -c 1 192.0.2.1 664 ovpn_start one " 700 atf_check -s exit:0 -o ignore jexec one ping -c 3 198.51.100.1 704 atf_check -s exit:0 -o ignore jexec one ping -c 3 198.51.100.3 708 atf_check -s exit:0 -o ignore jexec one ping -c 3 203.0.113.1 [all …]
|
/freebsd/contrib/wpa/src/common/ |
H A D | dragonfly.c | 93 struct crypto_bignum *tmp, *pm1, *one; in dragonfly_get_rand_1_to_p_1() local 97 one = crypto_bignum_init_set((const u8 *) "\x01", 1); in dragonfly_get_rand_1_to_p_1() 98 if (!tmp || !pm1 || !one || in dragonfly_get_rand_1_to_p_1() 99 crypto_bignum_sub(prime, one, pm1) < 0 || in dragonfly_get_rand_1_to_p_1() 101 crypto_bignum_add(tmp, one, tmp) < 0) { in dragonfly_get_rand_1_to_p_1() 107 crypto_bignum_deinit(one, 0); in dragonfly_get_rand_1_to_p_1() 226 struct crypto_bignum *tmp, *one; in dragonfly_sqrt() local 236 one = crypto_bignum_init_uint(1); in dragonfly_sqrt() 241 !tmp || !one || in dragonfly_sqrt() 243 crypto_bignum_add(prime, one, tmp) < 0 || in dragonfly_sqrt() [all …]
|
/freebsd/tests/sys/kern/ |
H A D | unix_dgram.c | 179 int one, many[3], two; in ATF_TC_BODY() local 184 ATF_REQUIRE((one = socket(PF_UNIX, SOCK_DGRAM, 0)) > 0); in ATF_TC_BODY() 185 ATF_REQUIRE(bind(one, (struct sockaddr *)&sun, sizeof(sun)) == 0); in ATF_TC_BODY() 187 ATF_REQUIRE(listen(one, -1) != 0); in ATF_TC_BODY() 195 ATF_REQUIRE(accept(one, NULL, NULL) == -1); in ATF_TC_BODY() 203 ATF_REQUIRE(connect(one, (struct sockaddr *)&sun, sizeof(sun)) == 0); in ATF_TC_BODY() 204 ATF_REQUIRE(send(one, buf, 42, 0) == 42); in ATF_TC_BODY() 205 ATF_REQUIRE(recv(one, buf, sizeof(buf), 0) == 42); in ATF_TC_BODY() 232 ATF_REQUIRE(recv(one, buf, sizeof(buf), 0) == sizeof(buf)); in ATF_TC_BODY() 234 ATF_REQUIRE(recv(one, buf, sizeof(buf), 0) == sizeof(buf)); in ATF_TC_BODY() [all …]
|