| /freebsd/contrib/netbsd-tests/lib/libc/gen/ |
| H A D | t_fpclassify.c | 60 float d0, d1, d2, f, ip; in ATF_TC_BODY() local 68 d1 = d0; in ATF_TC_BODY() 72 d1 /= 2; in ATF_TC_BODY() 73 ATF_REQUIRE_EQ(fpclassify(d1), FP_SUBNORMAL); in ATF_TC_BODY() 74 ATF_REQUIRE(d1 > 0 && d1 < d0); in ATF_TC_BODY() 77 ATF_REQUIRE_EQ(d2, d1); in ATF_TC_BODY() 79 d2 = modff(d1, &ip); in ATF_TC_BODY() 80 ATF_REQUIRE_EQ(d2, d1); in ATF_TC_BODY() 83 f = frexpf(d1, &e); in ATF_TC_BODY() 88 d1 /= 2; in ATF_TC_BODY() [all …]
|
| /freebsd/crypto/openssl/ssl/ |
| H A D | d1_lib.c | 67 DTLS1_STATE *d1; in dtls1_new() local 79 if ((d1 = OPENSSL_zalloc(sizeof(*d1))) == NULL) { in dtls1_new() 84 d1->buffered_messages = pqueue_new(); in dtls1_new() 85 d1->sent_messages = pqueue_new(); in dtls1_new() 88 d1->cookie_len = sizeof(s->d1->cookie); in dtls1_new() 91 d1->link_mtu = 0; in dtls1_new() 92 d1->mtu = 0; in dtls1_new() 94 if (d1->buffered_messages == NULL || d1->sent_messages == NULL) { in dtls1_new() 95 pqueue_free(d1->buffered_messages); in dtls1_new() 96 pqueue_free(d1->sent_messages); in dtls1_new() [all …]
|
| /freebsd/lib/libc/arm/aeabi/ |
| H A D | aeabi_vfp_double.S | 37 LOAD_DREG(d1, r2, r3) 38 vcmp.f64 d0, d1 46 LOAD_DREG(d1, r2, r3) 47 vcmpe.f64 d0, d1 55 LOAD_DREG(d1, r2, r3) 56 vcmpe.f64 d1, d0 64 LOAD_DREG(d1, r2, r3) 65 vcmp.f64 d0, d1 76 LOAD_DREG(d1, r2, r3) 77 vcmp.f64 d0, d1 [all …]
|
| /freebsd/contrib/arm-optimized-routines/math/test/ |
| H A D | ulp_funcs.h | 23 F (_ZGVnN2v_sincos_sin, v_sincos_sin, sinl, mpfr_sin, 1, 0, d1, 0) 24 F (_ZGVnN2v_sincos_cos, v_sincos_cos, cosl, mpfr_cos, 1, 0, d1, 0) 25 F (_ZGVnN2v_cexpi_sin, v_cexpi_sin, sinl, mpfr_sin, 1, 0, d1, 0) 26 F (_ZGVnN2v_cexpi_cos, v_cexpi_cos, cosl, mpfr_cos, 1, 0, d1, 0) 27 F (_ZGVnN2vl8_modf_frac, v_modf_frac, modfl_frac, modf_mpfr_frac, 1, 0, d1, 0) 28 F (_ZGVnN2vl8_modf_int, v_modf_int, modfl_int, modf_mpfr_int, 1, 0, d1, 0) 38 SVF (_ZGVsMxv_sincos_sin, sv_sincos_sin, sinl, mpfr_sin, 1, 0, d1, 0) 39 SVF (_ZGVsMxv_sincos_cos, sv_sincos_cos, cosl, mpfr_cos, 1, 0, d1, 0) 40 SVF (_ZGVsMxv_cexpi_sin, sv_cexpi_sin, sinl, mpfr_sin, 1, 0, d1, 0) 41 SVF (_ZGVsMxv_cexpi_cos, sv_cexpi_cos, cosl, mpfr_cos, 1, 0, d1, 0) [all …]
|
| /freebsd/contrib/unbound/util/data/ |
| H A D | dname.c | 100 query_dname_compare(register uint8_t* d1, register uint8_t* d2) in query_dname_compare() argument 103 log_assert(d1 && d2); in query_dname_compare() 104 lab1 = *d1++; in query_dname_compare() 118 if(*d1 != *d2 && in query_dname_compare() 119 tolower((unsigned char)*d1) != tolower((unsigned char)*d2)) { in query_dname_compare() 120 if(tolower((unsigned char)*d1) < tolower((unsigned char)*d2)) in query_dname_compare() 124 d1++; in query_dname_compare() 128 lab1 = *d1++; in query_dname_compare() 233 dname_pkt_compare(sldns_buffer* pkt, uint8_t* d1, uint8_t* d2) in dname_pkt_compare() argument 237 log_assert(pkt && d1 && d2); in dname_pkt_compare() [all …]
|
| H A D | dname.h | 99 int query_dname_compare(uint8_t* d1, uint8_t* d2); 121 int dname_pkt_compare(struct sldns_buffer* pkt, uint8_t* d1, uint8_t* d2); 186 int dname_lab_cmp(uint8_t* d1, int labs1, uint8_t* d2, int labs2, int* mlabs); 217 int dname_strict_subdomain(uint8_t* d1, int labs1, uint8_t* d2, int labs2); 225 int dname_strict_subdomain_c(uint8_t* d1, uint8_t* d2); 233 int dname_subdomain_c(uint8_t* d1, uint8_t* d2); 318 int dname_canon_lab_cmp(uint8_t* d1, int labs1, uint8_t* d2, int labs2, 329 int dname_canonical_compare(uint8_t* d1, uint8_t* d2); 337 uint8_t* dname_get_shared_topdomain(uint8_t* d1, uint8_t* d2);
|
| /freebsd/contrib/ldns/ |
| H A D | duration.c | 78 ldns_duration_compare(const ldns_duration_type* d1, const ldns_duration_type* d2) in ldns_duration_compare() argument 80 if (!d1 && !d2) { in ldns_duration_compare() 83 if (!d1 || !d2) { in ldns_duration_compare() 84 return d1?-1:1; in ldns_duration_compare() 87 if (d1->years != d2->years) { in ldns_duration_compare() 88 return (int) (d1->years - d2->years); in ldns_duration_compare() 90 if (d1->months != d2->months) { in ldns_duration_compare() 91 return (int) (d1->months - d2->months); in ldns_duration_compare() 93 if (d1->weeks != d2->weeks) { in ldns_duration_compare() 94 return (int) (d1->weeks - d2->weeks); in ldns_duration_compare() [all …]
|
| /freebsd/crypto/openssl/ssl/statem/ |
| H A D | statem_dtls.c | 132 if (s->d1->mtu < dtls1_min_mtu(s)) in dtls1_do_write() 137 if (!ossl_assert(s->init_num == s->d1->w_msg_hdr.msg_len + DTLS1_HM_HEADER_LENGTH)) in dtls1_do_write() 178 frag_off = s->d1->w_msg_hdr.frag_off; in dtls1_do_write() 183 if (s->d1->mtu > used_len) in dtls1_do_write() 184 curr_mtu = s->d1->mtu - used_len; in dtls1_do_write() 197 if (s->d1->mtu > overhead + DTLS1_HM_HEADER_LENGTH) { in dtls1_do_write() 198 curr_mtu = s->d1->mtu - overhead; in dtls1_do_write() 284 || BIO_wpending(s->wbio) <= (int)s->d1->mtu); in dtls1_do_write() 286 if (type == SSL3_RT_HANDSHAKE && !s->d1->retransmitting) { in dtls1_do_write() 292 const struct hm_header_st *msg_hdr = &s->d1->w_msg_hdr; in dtls1_do_write() [all …]
|
| /freebsd/usr.bin/diff3/ |
| H A D | diff3.c | 370 struct diff *d1, *d2, *d3; in merge() local 375 d1 = d13; in merge() 381 t1 = (d1 < d13 + m1); in merge() 387 if (!t2 || (t1 && d1->new.to < d2->new.from)) { in merge() 391 change(1, &d1->old, false); in merge() 392 keep(2, &d1->new); in merge() 393 change(3, &d1->new, false); in merge() 397 de[j].old = d1->old; in merge() 398 de[j].new = d1->new; in merge() 403 f1f3delta += (d1->old.to - d1->old.from) - in merge() [all …]
|
| /freebsd/crypto/openssl/crypto/chacha/asm/ |
| H A D | chacha-c64xplus.pl | 123 my ($d0,$d1,$d2,$d3) = (12..15); 133 XOR @X[$a1],@X[$d1],@X[$d1] 139 SWAP2 @X[$d1],@X[$d1] ; rotate by 16 144 ADD @X[$d1],@X[$c1],@X[$c1] 169 || XOR @Y[$a1],@Y[$d1],@Y[$d1] 175 || XOR @X[$a1],@X[$d1],@X[$d1] 179 || ROTL @X[$d1],8,@X[$d1] 181 || SWAP2 @Y[$d1],@Y[$d1] ; rotate by 16 187 || ADD @Y[$d1],@Y[$c1],@Y[$c1] 193 ADD @X[$d1],@X[$c1],@X[$c1] [all …]
|
| /freebsd/crypto/openssl/crypto/des/ |
| H A D | cfb_enc.c | 34 register DES_LONG d0, d1, v0, v1; in DES_cfb_encrypt() local 62 c2ln(in, d0, d1, n); in DES_cfb_encrypt() 65 d1 ^= ti[1]; in DES_cfb_encrypt() 66 l2cn(d0, d1, out, n); in DES_cfb_encrypt() 77 v1 = d1; in DES_cfb_encrypt() 84 l2c(d1, iv); in DES_cfb_encrypt() 86 sh[0] = v0, sh[1] = v1, sh[2] = d0, sh[3] = d1; in DES_cfb_encrypt() 108 c2ln(in, d0, d1, n); in DES_cfb_encrypt() 119 v1 = d1; in DES_cfb_encrypt() 126 l2c(d1, iv); in DES_cfb_encrypt() [all …]
|
| H A D | cfb64ede.c | 96 register DES_LONG d0, d1, v0, v1; in DES_ede3_cfb_encrypt() local 114 c2ln(in, d0, d1, n); in DES_ede3_cfb_encrypt() 117 d1 ^= ti[1]; in DES_ede3_cfb_encrypt() 118 l2cn(d0, d1, out, n); in DES_ede3_cfb_encrypt() 129 v1 = d1; in DES_ede3_cfb_encrypt() 135 l2c(d1, iv); in DES_ede3_cfb_encrypt() 155 c2ln(in, d0, d1, n); in DES_ede3_cfb_encrypt() 166 v1 = d1; in DES_ede3_cfb_encrypt() 172 l2c(d1, iv); in DES_ede3_cfb_encrypt() 186 d1 ^= ti[1]; in DES_ede3_cfb_encrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/poly1305/asm/ |
| H A D | poly1305-armv8.pl | 55 my ($h0,$h1,$h2,$r0,$r1,$s1,$t0,$t1,$d0,$d1,$d2) = map("x$_",(4..14)); 104 adrp $d1,poly1305_emit 105 add $d1,$d1,#:lo12:.Lpoly1305_emit 110 csel $d1,$d1,$r1,eq 115 stp $d0,$d1,[$len] 152 umulh $d1,$h0,$r0 159 adc $d1,$d1,$t1 162 adds $d1,$d1,$t0 167 adds $d1,$d1,$t0 172 adds $d1,$d1,$t0 [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | fsync4.sh | 64 mkdir -p d1/d2/d3/d4/d5 110 char d1[1024], d2[1024], file[1024]; 112 snprintf(d1, sizeof(d1), "%s/dir.%d", path, getpid()); 118 if (mkdir(d1, 0740) == -1) 119 err(1, "mkdir(%s)", d1); 120 if (rename(d1, d2) == -1) 121 err(1, "rename(%s, %s)", d1, d2); 139 if (rename(d2, d1) == -1) 140 err(1, "rename(%s, %s)", d2, d1); 141 if (rmdir(d1) == -1) [all …]
|
| H A D | fsync3.sh | 60 mkdir -p d1/d2/d3/d4/d5 100 char d1[1024], d2[1024], file[1024]; 103 snprintf(d1, sizeof(d1), "%s/dir.%d", path, getpid()); 107 if (mkdir(d1, 0740) == -1) 108 err(1, "mkdir(%s)", d1); 109 if (rename(d1, d2) == -1) 110 err(1, "rename(%s, %s)", d1, d2); 116 if (rename(d2, d1) == -1) 117 err(1, "rename(%s, %s)", d2, d1); 118 if (rmdir(d1) == -1) [all …]
|
| H A D | compare.sh | 34 d1=$diskimage 36 have=`df -k $(dirname $d1) | tail -1 | awk '{print int($4 / 1024)}'` 38 { echo "Not enough disk space on `dirname $d1`"; exit 1; } 40 dd if=/dev/random of=$d1 bs=1m count=512 status=none || exit 1 41 cp $d1 $d2 42 cmp $d1 $d2 && s=0 || { echo FAIL; s=1; } 43 rm -f $d1 $d2
|
| H A D | mountro4.sh | 47 d1=`stat -f '%a %m %c' $f1` 51 if [ "$d1" != "$d2" ]; then 52 echo "ufs: Access time was updated. $d1 != $d2" 65 d1=`stat -f '%a %m %c' $f1` 69 if [ "$d1" != "$d2" ]; then 70 echo "tmpfs: Access time was updated. $d1 != $d2" 89 d1=`stat -f '%a %m %c' $f1` 93 if [ "$d1" != "$d2" ]; then 94 echo "msdosfs: Access time was updated. $d1 != $d2"
|
| H A D | oovm2.sh | 42 d1=$diskimage.1 46 rm -f $d1 $d2 $d3 $d4 49 dd if=/dev/zero of=$d1 bs=1m count=$((size / 4)) status=none 50 cp $d1 $d2 || exit 51 cp $d1 $d3 || exit 52 cp $d1 $d4 || exit 53 trap "rm -f $d1 $d2 $d3 $d4" EXIT INT 63 (cd /tmp; /tmp/oovm2 $d1) &
|
| /freebsd/crypto/krb5/src/lib/crypto/krb/ |
| H A D | enc_dk_hmac.c | 77 krb5_data d1, d2; in krb5int_dk_encrypt() local 127 d1.data = (char *)constantdata; in krb5int_dk_encrypt() 128 d1.length = K5CLENGTH; in krb5int_dk_encrypt() 132 d1.data[4] = 0xAA; in krb5int_dk_encrypt() 134 ret = krb5int_derive_key(enc, NULL, key, &ke, &d1, DERIVE_RFC3961); in krb5int_dk_encrypt() 138 d1.data[4] = 0x55; in krb5int_dk_encrypt() 140 ret = krb5int_derive_key(enc, NULL, key, &ki, &d1, DERIVE_RFC3961); in krb5int_dk_encrypt() 187 krb5_data d1; in krb5int_dk_decrypt() local 228 d1.data = (char *)constantdata; in krb5int_dk_decrypt() 229 d1.length = K5CLENGTH; in krb5int_dk_decrypt() [all …]
|
| /freebsd/sys/powerpc/fpu/ |
| H A D | fpu_sqrt.c | 193 u_int d0, d1, d2, d3; in fpu_sqrt() local 314 FPU_SUBS(d1, x1, t1); in fpu_sqrt() 317 x0 = d0, x1 = d1; /* x -= t */ in fpu_sqrt() 325 FPU_SUBS(d1, x1, t1); in fpu_sqrt() 328 x0 = d0, x1 = d1; in fpu_sqrt() 346 FPU_SUBCS(d1, x1, t1); in fpu_sqrt() 349 x0 = d0, x1 = d1, x2 = d2; in fpu_sqrt() 358 FPU_SUBCS(d1, x1, t1); in fpu_sqrt() 361 x0 = d0, x1 = d1, x2 = d2; in fpu_sqrt() 380 FPU_SUBCS(d1, x1, t1); in fpu_sqrt() [all …]
|
| /freebsd/sys/contrib/device-tree/src/riscv/allwinner/ |
| H A D | sunxi-d1s-t113.dtsi | 7 #include <dt-bindings/clock/sun20i-d1-ccu.h> 8 #include <dt-bindings/clock/sun20i-d1-r-ccu.h> 11 #include <dt-bindings/reset/sun20i-d1-ccu.h> 12 #include <dt-bindings/reset/sun20i-d1-r-ccu.h> 25 compatible = "allwinner,sun20i-d1-display-engine"; 38 compatible = "allwinner,sun20i-d1-pinctrl"; 149 compatible = "allwinner,sun20i-d1-ccu"; 160 compatible = "allwinner,sun20i-d1-gpadc"; 170 compatible = "allwinner,sun20i-d1-dmic", 185 compatible = "allwinner,sun20i-d1-i2s", [all …]
|
| /freebsd/sys/libkern/ |
| H A D | qsort.c | 115 size_t d1, d2; variable 169 d1 = MIN(pa - (char *)a, pb - pa); 170 vecswap(a, pb - d1, d1); 171 d1 = MIN(pd - pc, pn - pd - es); 172 vecswap(pb, pn - d1, d1); 174 d1 = pb - pa; 176 if (d1 <= d2) { 178 if (d1 > e [all...] |
| /freebsd/sys/kern/ |
| H A D | subr_clockcalib.c | 49 double d1, d2; in clockcalib() local 127 d1 = clk1 - mu_clk; in clockcalib() 128 mu_clk += d1 * inv_n; in clockcalib() 129 d2 = d1 * (clk1 - mu_clk); in clockcalib() 133 d1 = t1 - mu_t; in clockcalib() 134 mu_t += d1 * inv_n; in clockcalib() 135 d2 = d1 * (t1 - mu_t); in clockcalib() 139 d2 = d1 * (clk1 - mu_clk); in clockcalib()
|
| /freebsd/lib/libc/stdlib/ |
| H A D | qsort.c | 107 size_t d1, d2; in local_qsort() local 162 d1 = MIN(pa - (char *)a, pb - pa); in local_qsort() 163 vecswap(a, pb - d1, d1); in local_qsort() 169 d1 = MIN(pd - pc, pn - pd - (ssize_t)es); in local_qsort() 170 vecswap(pb, pn - d1, d1); in local_qsort() 172 d1 = pb - pa; in local_qsort() 174 if (d1 <= d2) { in local_qsort() 176 if (d1 > e in local_qsort() [all...] |
| /freebsd/tools/regression/usr.bin/cc/ |
| H A D | float.c | 71 fpequal(long double d1, long double d2) in fpequal() argument 74 if (d1 != d2) in fpequal() 75 return (isnan(d1) && isnan(d2)); in fpequal() 76 return (copysignl(1.0, d1) == copysignl(1.0, d2)); in fpequal() 80 run_zero_opt_test(double d1, double d2) in run_zero_opt_test() argument 84 fpequal(d1 - d2, 0.0) in run_zero_opt_test() 85 && fpequal(-d1 + 0.0, 0.0) in run_zero_opt_test() 86 && fpequal(-d1 - d2, -0.0) in run_zero_opt_test() 87 && fpequal(-(d1 - d2), -0.0) in run_zero_opt_test() 88 && fpequal(-d1 - (-d2), 0.0)); in run_zero_opt_test()
|