/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 | 69 DTLS1_STATE *d1; in dtls1_new() local 77 if ((d1 = OPENSSL_zalloc(sizeof(*d1))) == NULL) { in dtls1_new() 82 d1->buffered_messages = pqueue_new(); in dtls1_new() 83 d1->sent_messages = pqueue_new(); in dtls1_new() 86 d1->cookie_len = sizeof(s->d1->cookie); in dtls1_new() 89 d1->link_mtu = 0; in dtls1_new() 90 d1->mtu = 0; in dtls1_new() 92 if (d1->buffered_messages == NULL || d1->sent_messages == NULL) { in dtls1_new() 93 pqueue_free(d1->buffered_messages); in dtls1_new() 94 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); 304 int dname_canon_lab_cmp(uint8_t* d1, int labs1, uint8_t* d2, int labs2, 315 int dname_canonical_compare(uint8_t* d1, uint8_t* d2); 323 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 | 119 if (s->d1->mtu < dtls1_min_mtu(s)) in dtls1_do_write() 125 s->d1->w_msg_hdr.msg_len + DTLS1_HM_HEADER_LENGTH)) in dtls1_do_write() 180 frag_off = s->d1->w_msg_hdr.frag_off; in dtls1_do_write() 186 if (s->d1->mtu > used_len) in dtls1_do_write() 187 curr_mtu = s->d1->mtu - used_len; in dtls1_do_write() 201 if (s->d1->mtu > used_len + DTLS1_HM_HEADER_LENGTH) { in dtls1_do_write() 202 curr_mtu = s->d1->mtu - used_len; in dtls1_do_write() 268 if (type == SSL3_RT_HANDSHAKE && !s->d1->retransmitting) { in dtls1_do_write() 275 const struct hm_header_st *msg_hdr = &s->d1->w_msg_hdr; in dtls1_do_write() 335 msg_hdr = &s->d1->r_msg_hdr; in dtls_get_message() [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 …]
|
H A D | chacha-ia64.pl | 102 my ($a1,$b1,$c1,$d1)=map(($_&~3)+(($_+1)&3),($a0,$b0,$c0,$d0)); 103 my ($a2,$b2,$c2,$d2)=map(($_&~3)+(($_+1)&3),($a1,$b1,$c1,$d1)); 112 xor @x[$d1]=@x[$d1],@x[$a1] };; 116 { .mii; extr.u @y[1]=@x[$d1],16,16 120 dep @x[$d1]=@x[$d1],@y[1],16,16 };; 121 { .mii; add @x[$c1]=@x[$c1],@x[$d1] 148 { .mii; xor @x[$d1]=@x[$d1],@x[$a1] 152 extr.u @y[1]=@x[$d1],24,8 153 dep.z @x[$d1]=@x[$d1],8,24 };; 154 { .mmi; or @x[$d1]=@x[$d1],@y[1] [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 63 c2ln(in, d0, d1, n); in DES_cfb_encrypt() 66 d1 ^= ti[1]; in DES_cfb_encrypt() 67 l2cn(d0, d1, out, n); in DES_cfb_encrypt() 78 v1 = d1; in DES_cfb_encrypt() 85 l2c(d1, iv); in DES_cfb_encrypt() 87 sh[0] = v0, sh[1] = v1, sh[2] = d0, sh[3] = d1; in DES_cfb_encrypt() 110 c2ln(in, d0, d1, n); in DES_cfb_encrypt() 121 v1 = d1; in DES_cfb_encrypt() 128 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/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/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)); 102 adr $d1,.Lpoly1305_emit 106 csel $d1,$d1,$r1,eq 111 stp $d0,$d1,[$len] 148 umulh $d1,$h0,$r0 155 adc $d1,$d1,$t1 158 adds $d1,$d1,$t0 163 adds $d1,$d1,$t0 168 adds $d1,$d1,$t0 175 adcs $h1,$d1,xzr [all …]
|
/freebsd/usr.bin/diff3/ |
H A D | diff3.c | 362 struct diff *d1, *d2, *d3; in merge() local 366 d1 = d13; in merge() 371 t1 = (d1 < d13 + m1); in merge() 377 if (!t2 || (t1 && d1->new.to < d2->new.from)) { in merge() 381 change(1, &d1->old, false); in merge() 382 keep(2, &d1->new); in merge() 383 change(3, &d1->new, false); in merge() 387 d1++; in merge() 391 if (!t1 || (t2 && d2->new.to < d1->new.from)) { in merge() 409 if (d1 + 1 < d13 + m1 && d1->new.to >= d1[1].new.from) { in merge() [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 181 d1 = MIN(pa - (char *)a, pb - pa); 182 vecswap(a, pb - d1, d1); 183 d1 = MIN(pd - pc, pn - pd - es); 184 vecswap(pb, pn - d1, d1); 186 d1 = pb - pa; 188 if (d1 <= d2) { 190 if (d1 > es) { 192 qsort_r(a, d1 / es, es, cmp, thunk); 194 qsort(a, d1 / es, es, cmp); [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 175 d1 = MIN(pa - (char *)a, pb - pa); in local_qsort() 176 vecswap(a, pb - d1, d1); in local_qsort() 182 d1 = MIN(pd - pc, pn - pd - (ssize_t)es); in local_qsort() 183 vecswap(pb, pn - d1, d1); in local_qsort() 185 d1 = pb - pa; in local_qsort() 187 if (d1 <= d2) { in local_qsort() 189 if (d1 > es) { in local_qsort() 190 local_qsort(a, d1 / es, es, cmp, thunk); in local_qsort() 204 if (d1 > es) { 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()
|