Home
last modified time | relevance | path

Searched refs:bits (Results 51 – 75 of 950) sorted by relevance

12345678910>>...38

/dragonfly/lib/libc/gen/
H A Disinf.c44 return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0); in __isinf()
55 return (u.bits.exp == 255 && u.bits.man == 0); in __isinff()
65 return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0); in __isinfl()
H A Dfrexp.c39 switch (u.bits.exp) { in frexp()
41 if ((u.bits.manl | u.bits.manh) == 0) { in frexp()
45 *ex = u.bits.exp - 1536; in frexp()
46 u.bits.exp = 1022; in frexp()
52 *ex = u.bits.exp - 1022; in frexp()
53 u.bits.exp = 1022; in frexp()
/dragonfly/crypto/libressl/crypto/bn/
H A Dbn_rand.c122 bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) in bnrand() argument
132 if (bits < 0 || (bits == 1 && top > 0)) { in bnrand()
137 if (bits == 0) { in bnrand()
142 bytes = (bits + 7) / 8; in bnrand()
143 bit = (bits - 1) % 8; in bnrand()
198 BN_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_rand() argument
200 return bnrand(0, rnd, bits, top, bottom); in BN_rand()
204 BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_pseudo_rand() argument
206 return bnrand(1, rnd, bits, top, bottom); in BN_pseudo_rand()
211 BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) in BN_bntest_rand() argument
[all …]
H A Dbn_exp.c127 int i, bits, ret = 0; in BN_exp() local
271 if (bits == 0) { in BN_mod_exp_recp()
414 if (bits == 0) { in BN_mod_exp_mont_internal()
673 if (bits == 0) { in BN_mod_exp_mont_consttime()
809 bits--; in BN_mod_exp_mont_consttime()
810 for (wvalue = 0, i = bits % 5; i >= 0; i--, bits--) in BN_mod_exp_mont_consttime()
817 while (bits >= 0) { in BN_mod_exp_mont_consttime()
863 bits--; in BN_mod_exp_mont_consttime()
864 for (wvalue = 0, i = bits % window; i >= 0; i--, bits--) in BN_mod_exp_mont_consttime()
951 if (bits == 0) { in BN_mod_exp_mont_word()
[all …]
H A Dbn_prime.c134 static int probable_prime(BIGNUM *rnd, int bits);
135 static int probable_prime_dh(BIGNUM *rnd, int bits,
173 if (bits < 2 || (bits == 2 && safe)) { in BN_generate_prime_ex()
190 checks = BN_prime_checks_for_size(bits); in BN_generate_prime_ex()
196 if (!probable_prime(ret, bits)) in BN_generate_prime_ex()
203 if (!probable_prime_dh(ret, bits, add, rem, ctx)) in BN_generate_prime_ex()
409 probable_prime(BIGNUM *rnd, int bits) in probable_prime() argument
416 if (!BN_rand(rnd, bits, 1, 1)) in probable_prime()
455 if (!BN_rand(rnd, bits, 0, 1)) in probable_prime_dh()
501 bits--; in probable_prime_dh_safe()
[all …]
/dragonfly/contrib/file/magic/Magdir/
H A Dder37 >&0 der int3=010001 DER Encoded Key Pair, 512 bits
42 >&0 der int3=010001 DER Encoded Key Pair, 1024 bits
47 >&0 der int3=010001 DER Encoded Key Pair, 2048 bits
52 >&0 der int3=010001 DER Encoded Key Pair, 4096 bits
57 >&0 der int3=010001 DER Encoded Key Pair, 8192 bits
62 >&0 der int3=010001 DER Encoded Key Pair, 16k bits
67 >&0 der int3=010001 DER Encoded Key Pair, 32k bits
72 >>&0 der int2=0dfa DER Encoded Certificate, 512 bits
73 >>&0 der int2=0dfb DER Encoded Certificate, 1024 bits
77 >>&0 der int2=0dff DER Encoded Certificate, 16k bits
[all …]
/dragonfly/usr.bin/compress/
H A Dzopen.c368 u_int bits; in output() local
372 bits = n_bits; in output()
390 bits -= 8; in output()
393 if (bits) in output()
398 bits = n_bits; in output()
400 if (fwrite(bp, sizeof(char), bits, fp) != bits) in output()
402 bp += bits; in output()
403 bits = 0; in output()
593 bits = n_bits; in getcode()
608 bits -= 8; in getcode()
[all …]
H A Dcompress.c63 int bits, cat, ch; in main() local
81 bits = 0; in main()
85 bits = strtol(optarg, &p, 10); in main()
127 compress("/dev/stdin", "/dev/stdout", bits); in main()
130 compress(*argv, "/dev/stdout", bits); in main()
148 compress(*argv, newname, bits); in main()
152 decompress("/dev/stdin", "/dev/stdout", bits); in main()
167 cat ? "/dev/stdout" : *argv, bits); in main()
176 cat ? "/dev/stdout" : newname, bits); in main()
209 if ((ofp = zopen(out, "w", bits)) == NULL) { in compress()
[all …]
/dragonfly/contrib/openbsd_libm/src/
H A De_acosl.c52 struct ieee_ext bits; in acosl() member
57 expsign = (u.bits.ext_sign << 15) | u.bits.ext_exp; in acosl()
60 if(expt==BIAS && ((u.bits.ext_frach&~LDBL_NBIT) in acosl()
62 | u.bits.ext_frachm in acosl()
65 | u.bits.ext_fraclm in acosl()
67 | u.bits.ext_fracl)==0) { in acosl()
92 u.bits.ext_fracl = 0; in acosl()
94 u.bits.ext_fraclm = 0; in acosl()
H A Ds_atanl.c42 struct ieee_ext bits; in atanl() member
50 expsign = (u.bits.ext_sign << 15) | u.bits.ext_exp; in atanl()
54 ((u.bits.ext_frach&~LDBL_NBIT) in atanl()
56 | u.bits.ext_frachm in atanl()
59 | u.bits.ext_fraclm in atanl()
61 | u.bits.ext_fracl)!=0) in atanl()
69 ((u.bits.ext_frach >> (EXT_FRACHBITS - 9)) & 0xff); in atanl()
H A Ds_nan.c100 uint32_t bits[2]; member
103 _scan_nan(u.bits, 2, s);
105 u.bits[1] |= 0x7ff80000;
107 u.bits[0] |= 0x7ff80000;
117 uint32_t bits[1]; member
120 _scan_nan(u.bits, 1, s);
121 u.bits[0] |= 0x7fc00000;
/dragonfly/crypto/libressl/crypto/asn1/
H A Da_bitstr.c238 int ret, j, bits, len; in i2c_ASN1_BIT_STRING() local
256 bits = 0; in i2c_ASN1_BIT_STRING()
258 bits = 1; in i2c_ASN1_BIT_STRING()
260 bits = 2; in i2c_ASN1_BIT_STRING()
262 bits = 3; in i2c_ASN1_BIT_STRING()
264 bits = 4; in i2c_ASN1_BIT_STRING()
266 bits = 5; in i2c_ASN1_BIT_STRING()
268 bits = 6; in i2c_ASN1_BIT_STRING()
270 bits = 7; in i2c_ASN1_BIT_STRING()
275 bits = 0; in i2c_ASN1_BIT_STRING()
[all …]
/dragonfly/contrib/gmp/mpz/
H A Dinp_raw.c120 int bits; in mpz_inp_raw() local
128 bits = 0; in mpz_inp_raw()
133 limb |= (byte << bits); in mpz_inp_raw()
134 bits += 8; in mpz_inp_raw()
135 if (bits >= GMP_NUMB_BITS) in mpz_inp_raw()
139 bits -= GMP_NUMB_BITS; in mpz_inp_raw()
140 ASSERT (bits < 8); in mpz_inp_raw()
141 limb = byte >> (8 - bits); in mpz_inp_raw()
144 if (bits != 0) in mpz_inp_raw()
H A Dout_raw.c97 int bits; in mpz_out_raw() local
102 bits = 0; in mpz_out_raw()
106 while (bits >= 8) in mpz_out_raw()
111 bits -= 8; in mpz_out_raw()
120 *--bp = (xlimb | (new_xlimb << bits)) & 0xFF; in mpz_out_raw()
121 xlimb = new_xlimb >> (8 - bits); in mpz_out_raw()
122 bits += GMP_NUMB_BITS - 8; in mpz_out_raw()
125 if (bits != 0) in mpz_out_raw()
/dragonfly/lib/libc/gdtoa/
H A D_hdtoa.c80 *sign = u.bits.sign; in __hdtoa()
84 *decpt = u.bits.exp - DBL_ADJ; in __hdtoa()
91 *decpt = u.bits.exp - (514 + DBL_ADJ); in __hdtoa()
115 float redux = one[u.bits.sign]; in __hdtoa()
117 u.bits.exp = offset; in __hdtoa()
120 *decpt += u.bits.exp - offset; in __hdtoa()
123 manh = u.bits.manh; in __hdtoa()
124 manl = u.bits.manl; in __hdtoa()
H A D_ldtoa.c62 uint32_t bits[(LDBL_MANT_DIG + 31) / 32]; in __ldtoa() local
63 void *vbits = bits; in __ldtoa()
72 *sign = u.bits.sign; in __ldtoa()
73 fpi.rounding ^= (fpi.rounding >> 1) & u.bits.sign; in __ldtoa()
75 be = u.bits.exp - (LDBL_MAX_EXP - 1) - (LDBL_MANT_DIG - 1); in __ldtoa()
76 LDBL_TO_ARRAY32(u, bits); in __ldtoa()
82 bits[LDBL_MANT_DIG / 32] |= 1 << ((LDBL_MANT_DIG - 1) % 32); in __ldtoa()
H A D_hldtoa.c81 *sign = u.bits.sign; in __hldtoa()
85 *decpt = u.bits.exp - LDBL_ADJ; in __hldtoa()
92 *decpt = u.bits.exp - (514 + LDBL_ADJ); in __hldtoa()
116 float redux = one[u.bits.sign]; in __hldtoa()
118 u.bits.exp = offset; in __hldtoa()
121 *decpt += u.bits.exp - offset; in __hldtoa()
125 manh = u.bits.manh; in __hldtoa()
126 manl = u.bits.manl; in __hldtoa()
/dragonfly/crypto/libressl/crypto/rc2/
H A Drc2_skey.c94 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits) in RC2_set_key() argument
105 if (bits <= 0) bits=1024; in RC2_set_key()
106 if (bits > 1024) bits=1024; in RC2_set_key()
122 j=(bits+7)>>3; in RC2_set_key()
124 c= (0xff>>(-bits & 0x07)); in RC2_set_key()
/dragonfly/contrib/lvm2/dist/daemons/clvmd/
H A Dclvmd-command.c198 (struct clvm_header *) client->bits.localsock.cmd; in lock_vg()
209 if (client->bits.localsock.private) { in lock_vg()
210 lock_hash = (struct dm_hash_table *)client->bits.localsock.private; in lock_vg()
216 client->bits.localsock.private = (void *)lock_hash; in lock_vg()
259 (struct clvm_header *) client->bits.localsock.cmd; in do_pre_command()
270 client->bits.localsock.private = (void *)(long)lockid; in do_pre_command()
307 (struct clvm_header *) client->bits.localsock.cmd; in do_post_command()
318 client->bits.localsock.private = 0; in do_post_command()
341 if (client->bits.localsock.private) { in cmd_client_cleanup()
345 (struct dm_hash_table *)client->bits.localsock.private; in cmd_client_cleanup()
[all …]
/dragonfly/sys/crypto/camellia/
H A Dcamellia-api.c37 camellia_set_key(camellia_ctx *ctx, const u_char *key, int bits) in camellia_set_key() argument
40 Camellia_Ekeygen(bits, key, ctx->subkey); in camellia_set_key()
41 ctx->bits = bits; in camellia_set_key()
48 Camellia_DecryptBlock(ctx->bits, src, ctx->subkey, dst); in camellia_decrypt()
55 Camellia_EncryptBlock(ctx->bits, src, ctx->subkey, dst); in camellia_encrypt()
/dragonfly/contrib/binutils-2.27/gold/
H A Dreloc.h979 template<int bits>
1000 template<int bits>
1009 gold_assert(bits > 0 && bits <= 32); in sign_extend32()
1010 if (bits == 32) in sign_extend32()
1026 gold_assert(bits > 0 && bits <= 32); in has_overflow32()
1040 gold_assert(bits > 0 && bits <= 32); in has_unsigned_overflow32()
1054 gold_assert(bits > 0 && bits <= 32); in has_signed_unsigned_overflow32()
1075 gold_assert(bits > 0 && bits <= 64); in sign_extend()
1092 gold_assert(bits > 0 && bits <= 64); in has_overflow()
1106 gold_assert(bits > 0 && bits <= 64); in has_unsigned_overflow()
[all …]
/dragonfly/contrib/binutils-2.34/gold/
H A Dreloc.h979 template<int bits>
1000 template<int bits>
1009 gold_assert(bits > 0 && bits <= 32); in sign_extend32()
1010 if (bits == 32) in sign_extend32()
1026 gold_assert(bits > 0 && bits <= 32); in has_overflow32()
1040 gold_assert(bits > 0 && bits <= 32); in has_unsigned_overflow32()
1054 gold_assert(bits > 0 && bits <= 32); in has_signed_unsigned_overflow32()
1075 gold_assert(bits > 0 && bits <= 64); in sign_extend()
1092 gold_assert(bits > 0 && bits <= 64); in has_overflow()
1106 gold_assert(bits > 0 && bits <= 64); in has_unsigned_overflow()
[all …]
/dragonfly/contrib/wpa_supplicant/src/utils/
H A Dbitfield.c16 u8 *bits; member
28 bf->bits = (u8 *) (bf + 1); in bitfield_alloc()
44 bf->bits[bit / 8] |= BIT(bit % 8); in bitfield_set()
52 bf->bits[bit / 8] &= ~BIT(bit % 8); in bitfield_clear()
60 return !!(bf->bits[bit / 8] & BIT(bit % 8)); in bitfield_is_set()
80 if (bf->bits[i] != 0xff) in bitfield_get_first_zero()
85 i = i * 8 + first_zero(bf->bits[i]); in bitfield_get_first_zero()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/std/
H A Dmemory64 #include <bits/stl_algobase.h>
65 #include <bits/allocator.h>
66 #include <bits/stl_construct.h>
67 #include <bits/stl_uninitialized.h>
68 #include <bits/stl_tempbuf.h>
69 #include <bits/stl_raw_storage_iter.h>
77 # include <bits/functexcept.h>
78 # include <bits/stl_function.h> // std::less
79 # include <bits/uses_allocator.h>
86 # include <bits/unique_ptr.h>
[all …]
H A Dunordered_map35 # include <bits/c++0x_warning.h>
41 #include <bits/stl_algobase.h>
42 #include <bits/allocator.h>
43 #include <bits/alloc_traits.h>
44 #include <bits/stl_function.h> // equal_to, _Identity, _Select1st
45 #include <bits/functional_hash.h>
46 #include <bits/hashtable.h>
47 #include <bits/unordered_map.h>
48 #include <bits/range_access.h>

12345678910>>...38