Searched refs:nbits (Results 1 - 25 of 68) sorted by relevance

123

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dntomask.c13 int ntomask(family, nbits, ap)
14 int family, nbits;
19 if (nbits < 0)
25 if (nbits > 32 || use_inet6 == 1)
27 if (nbits == 0) {
31 mask <<= (32 - nbits);
38 if ((nbits > 128) || (use_inet6 == -1))
40 fill6bits(nbits, ap);
/freebsd-11-stable/tests/sys/sys/
H A Dbitstring_test.c39 typedef void (testfunc_t)(bitstr_t *bstr, int nbits, const char *memloc);
42 bitstring_run_stack_test(testfunc_t *test, int nbits) argument
44 bitstr_t bit_decl(bitstr, nbits);
46 test(bitstr, nbits, "stack");
50 bitstring_run_heap_test(testfunc_t *test, int nbits) argument
52 bitstr_t *bitstr = bit_alloc(nbits);
54 test(bitstr, nbits, "heap");
88 name ## _test(bitstr_t *bitstr, int nbits, const char *memloc)
117 /* bitstr_t *bitstr, int nbits, const char *memloc */
119 memset(bitstr, 0, bitstr_size(nbits));
[all...]
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Dbitmap.h94 #define BT_BITOUL(nbits) \
95 (((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL)
96 #define BT_SIZEOFMAP(nbits) \
97 (BT_BITOUL(nbits) * sizeof (ulong_t))
106 #define BT_BITOUL32(nbits) \
107 (((nbits) + BT_NBIPUL32 - 1l) / BT_NBIPUL32)
108 #define BT_SIZEOFMAP32(nbits) \
109 (BT_BITOUL32(nbits) * sizeof (uint_t))
/freebsd-11-stable/contrib/jemalloc/src/
H A Dbitmap.c9 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) argument
14 assert(nbits > 0);
15 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS));
18 * Compute the number of groups necessary to store nbits bits, and
23 group_count = BITMAP_BITS2GROUPS(nbits);
34 binfo->nbits = nbits;
58 extra = (BITMAP_GROUP_NBITS - (binfo->nbits & BITMAP_GROUP_NBITS_MASK))
75 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) argument
78 assert(nbits >
[all...]
/freebsd-11-stable/contrib/jemalloc/include/jemalloc/internal/
H A Dbitmap.h28 #define BITMAP_BITS2GROUPS(nbits) \
29 ((nbits + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS)
34 #define BITMAP_GROUPS_L0(nbits) \
35 BITMAP_BITS2GROUPS(nbits)
36 #define BITMAP_GROUPS_L1(nbits) \
37 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits))
38 #define BITMAP_GROUPS_L2(nbits) \
39 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits))))
40 #define BITMAP_GROUPS_L3(nbits) \
42 BITMAP_BITS2GROUPS((nbits)))))
96 size_t nbits; member in struct:bitmap_info_s
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dbitmap.h105 #define BT_BITOUL(nbits) \
106 (((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL)
107 #define BT_SIZEOFMAP(nbits) \
108 (BT_BITOUL(nbits) * sizeof (ulong_t))
117 #define BT_BITOUL32(nbits) \
118 (((nbits) + BT_NBIPUL32 - 1l) / BT_NBIPUL32)
119 #define BT_SIZEOFMAP32(nbits) \
120 (BT_BITOUL32(nbits) * sizeof (uint_t))
144 extern index_t bt_availbit(ulong_t *bitmap, size_t nbits);
/freebsd-11-stable/contrib/gdtoa/
H A Dgethex.c48 int big, esign, havedig, irv, j, k, n, n0, nbits, up, zret; local
187 nbits = fpi->nbits;
188 n0 = n = nbits >> kshift;
189 if (nbits & kmask)
197 b->x[j] = ULbits >> (ULbits - (nbits & kmask));
232 nbits = fpi->nbits;
235 if (n > nbits) {
236 n -= nbits;
[all...]
H A Dhexnan.c62 int havedig, hd0, i, nbits; local
66 nbits = fpi->nbits;
67 x = x0 + (nbits >> kshift);
68 if (nbits & kmask)
138 if ( (i = nbits & (ULbits-1)) !=0)
H A Dg_ddfmt.c142 fpi.nbits = z->wds * 32 - hi0bits(z->x[j = z->wds-1]);
143 if (fpi.nbits < 106) {
144 fpi.nbits = 106;
155 if (bufsize < (int)(fpi.nbits * .301029995664) + 10) {
H A Dstrtodg.c186 bdif -= nb = fpi->nbits;
327 int j, k, nbits, nd, nd0, nf, nz, nz0, rd, rvbits, rve, rve1, sign; local
361 nbits = fpi->nbits;
555 if (nbits <= P && nd <= DBL_DIG) {
670 if ((j = rvbits - nbits) > 0) {
672 rvbits = nbits;
676 e2 = rve + rvbits - nbits;
679 rve1 = rve + rvbits - nbits;
736 j = nbits
[all...]
H A Dgdtoa.c36 bitstob(bits, nbits, bbits) ULong *bits; int nbits; int *bbits;
38 bitstob(ULong *bits, int nbits, int *bbits)
47 while(i < nbits) {
56 be = bits + ((nbits - 1) >> kshift);
157 int j, j1, k, k0, k_check, kind, leftright, m2, m5, nbits; local
188 b = bitstob(bits, nbits = fpi->nbits, &bbits);
295 i = (int)(nbits * .30103) + 3;
506 i = nbits
[all...]
/freebsd-11-stable/crypto/openssh/
H A Dkexgexs.c75 u_int min = 0, max = 0, nbits = 0; local
79 (r = sshpkt_get_u32(ssh, &nbits)) != 0 ||
83 kex->nbits = nbits;
88 nbits = MAXIMUM(DH_GRP_MIN, nbits);
89 nbits = MINIMUM(DH_GRP_MAX, nbits);
91 if (kex->max < kex->min || kex->nbits < kex->min ||
92 kex->max < kex->nbits || ke
[all...]
H A Dkexgexc.c62 u_int nbits; local
64 nbits = dh_estimate(kex->dh_need * 8);
68 kex->nbits = nbits;
70 kex->nbits = MINIMUM(kex->nbits, 4096);
74 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 ||
79 kex->min, kex->nbits, kex->max);
81 fprintf(stderr, "\nmin = %d, nbits = %d, max = %d\n",
82 kex->min, kex->nbits, ke
[all...]
/freebsd-11-stable/crypto/openssl/crypto/bn/
H A Dbn_x931p.c195 * Generate pair of paramters Xp, Xq for X9.31 prime generation. Note: nbits
199 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx) argument
207 if ((nbits < 1024) || (nbits & 0xff))
209 nbits >>= 1;
211 * The random value Xp must be between sqrt(2) * 2^(nbits-1) and 2^nbits
215 if (!BN_rand(Xp, nbits, 1, 0))
224 if (!BN_rand(Xq, nbits, 1, 0))
227 /* Check that |Xp - Xq| > 2^(nbits
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_regset.c98 ulong_t nbits = drp->dr_size - 1; local
99 ulong_t maxw = nbits >> BT_ULSHIFT;
108 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1;
/freebsd-11-stable/crypto/openssl/crypto/dsa/
H A Ddsa_pmeth.c72 int nbits; /* size of p in bits (default: 2048) */ member in struct:__anon3802
87 dctx->nbits = 2048;
106 dctx->nbits = sctx->nbits;
167 dctx->nbits = p1;
223 int nbits; local
224 nbits = atoi(value);
225 return EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits);
261 ret = dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd,
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dnetaddr.c76 unsigned int nbits; /* Number of significant leftover bits */ local
108 nbits = prefixlen % 8;
114 if (nbits > 0) {
117 INSIST(nbits < 8);
120 mask = (0xFF << (8-nbits)) & 0xFF;
218 unsigned int nbits, nbytes, ipbytes = 0; local
238 nbits = prefixlen % 8;
239 if (nbits != 0) {
240 if ((p[nbytes] & (0xff>>nbits)) != 0U)
251 unsigned int nbits local
[all...]
/freebsd-11-stable/sys/dev/mii/
H A Dmii_bitbang.c50 uint32_t data, int nbits);
93 int nbits)
101 for (i = 1 << (nbits - 1); i != 0; i >>= 1) {
92 mii_bitbang_sendbits(device_t dev, mii_bitbang_ops_t ops, uint32_t data, int nbits) argument
/freebsd-11-stable/crypto/openssl/crypto/modes/
H A Dcfb128.c184 * This expects a single block of size nbits for both in and out. Note that
188 int nbits, const void *key,
196 if (nbits <= 0 || nbits > 128)
203 num = (nbits + 7) / 8;
211 rem = nbits % 8;
212 num = nbits / 8;
187 cfbr_encrypt_block(const unsigned char *in, unsigned char *out, int nbits, const void *key, unsigned char ivec[16], int enc, block128_f block) argument
/freebsd-11-stable/contrib/gdb/gdb/
H A Dstabsread.c436 int nbits;
440 typenums[0] = read_huge_number (pp, ',', &nbits);
441 if (nbits != 0)
443 typenums[1] = read_huge_number (pp, ')', &nbits);
444 if (nbits != 0)
450 typenums[1] = read_huge_number (pp, 0, &nbits);
451 if (nbits != 0)
2335 int nbits;
2344 (0x7fffffff & read_huge_number (pp, ';', &nbits)) + 2;
2345 if (nbits !
434 int nbits; local
2329 int nbits; local
2702 int nbits; local
2775 int nbits; local
2977 int nbits; local
3046 int nbits; local
3356 int nbits; local
3393 int nbits; local
3461 int nbits; local
3576 int nbits; local
3647 int nbits; local
3695 int nbits = 0; local
3831 int nbits = 0; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/rsa/
H A Drsa_pmeth.c81 int nbits; member in struct:__anon3889
106 rctx->nbits = 2048;
132 dctx->nbits = sctx->nbits;
536 rctx->nbits = p1;
669 int nbits; local
670 nbits = atoi(value);
671 return EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, nbits);
737 ret = RSA_generate_key_ex(rsa, rctx->nbits, rctx->pub_exp, pcb);
/freebsd-11-stable/sys/powerpc/fpu/
H A Dfpu_explode.c129 #define mask(nbits) ((1L << (nbits)) - 1)
/freebsd-11-stable/crypto/openssl/engines/ccgost/
H A Dgost89.h84 void get_mac(byte * buffer, int nbits, byte * out);
/freebsd-11-stable/contrib/binutils/gas/config/
H A Dtc-cr16.c1658 getconstant (long x, int nbits) argument
1661 'nbits' is the number of bits in 'bfd_vma'. */
1662 return (x & ((((1 << (nbits - 1)) - 1) << 1) | 1));
1671 print_constant (int nbits, int shift, argument *arg) argument
1675 long constant = getconstant (arg->constant, nbits);
1677 switch (nbits)
1685 mask = (1 << (nbits - 16)) - 1;
1698 if ((nbits == 21) && (IS_INSN_TYPE (LD_STOR_INS))) nbits = 20;
1706 mask = (1 << (nbits
1782 print_operand(int nbits, int shift, argument *arg) argument
[all...]
/freebsd-11-stable/contrib/binutils/opcodes/
H A Dmips-dis.c1512 int immed, nbits, shift, signedp, extbits, pcrel, extu, branch;
1523 nbits = 3;
1529 nbits = 3;
1535 nbits = 3;
1541 nbits = 3;
1547 nbits = 4;
1553 nbits = 5;
1559 nbits = 5;
1566 nbits = 5;
1577 nbits
1507 int immed, nbits, shift, signedp, extbits, pcrel, extu, branch; local
[all...]

Completed in 153 milliseconds

123