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

123

/freebsd-10.0-release/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-10.0-release/contrib/jemalloc/src/
H A Dbitmap.c7 static size_t bits2groups(size_t nbits);
12 bits2groups(size_t nbits) argument
15 return ((nbits >> LG_BITMAP_GROUP_NBITS) +
16 !!(nbits & BITMAP_GROUP_NBITS_MASK));
20 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) argument
25 assert(nbits > 0);
26 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS));
29 * Compute the number of groups necessary to store nbits bits, and
34 group_count = bits2groups(nbits);
44 binfo->nbits
55 bitmap_size(size_t nbits) argument
[all...]
/freebsd-10.0-release/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-10.0-release/sys/sys/
H A Dbitstring.h50 /* bytes in a bitstring of nbits bits */
51 #define bitstr_size(nbits) \
52 (((nbits) + 7) >> 3)
55 #define bit_alloc(nbits) \
56 (bitstr_t *)calloc((size_t)bitstr_size(nbits), sizeof(bitstr_t))
59 #define bit_decl(name, nbits) \
60 ((name)[bitstr_size(nbits)])
109 #define bit_ffc(name, nbits, value) do { \
111 register int _byte, _nbits = (nbits); \
122 if (_value >= nbits) \
[all...]
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dbitmap.h102 #define BT_BITOUL(nbits) \
103 (((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL)
104 #define BT_SIZEOFMAP(nbits) \
105 (BT_BITOUL(nbits) * sizeof (ulong_t))
114 #define BT_BITOUL32(nbits) \
115 (((nbits) + BT_NBIPUL32 - 1l) / BT_NBIPUL32)
116 #define BT_SIZEOFMAP32(nbits) \
117 (BT_BITOUL32(nbits) * sizeof (uint_t))
141 extern index_t bt_availbit(ulong_t *bitmap, size_t nbits);
/freebsd-10.0-release/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-10.0-release/crypto/openssh/
H A Dkexgexc.c58 int min, max, nbits; local
61 nbits = dh_estimate(kex->we_need * 8);
66 packet_put_int(nbits);
70 debug("SSH2_MSG_KEX_DH_GEX_REQUEST_OLD(%u) sent", nbits);
77 packet_put_int(nbits);
81 min, nbits, max);
84 fprintf(stderr, "\nmin = %d, nbits = %d, max = %d\n",
85 min, nbits, max);
179 min, nbits, max,
H A Dkexgexs.c61 int omin = -1, min = -1, omax = -1, max = -1, onbits = -1, nbits = -1; local
77 onbits = nbits = packet_get_int();
81 nbits = MAX(DH_GRP_MIN, nbits);
82 nbits = MIN(DH_GRP_MAX, nbits);
86 onbits = nbits = packet_get_int();
101 dh = PRIVSEP(choose_dh(min, nbits, max));
/freebsd-10.0-release/crypto/openssl/crypto/bn/
H A Dbn_x931p.c193 * Note: nbits paramter is sum of number of bits in both.
196 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx) argument
203 if ((nbits < 1024) || (nbits & 0xff))
205 nbits >>= 1;
206 /* The random value Xp must be between sqrt(2) * 2^(nbits-1) and
207 * 2^nbits - 1. By setting the top two bits we ensure that the lower
210 if (!BN_rand(Xp, nbits, 1, 0))
218 if (!BN_rand(Xq, nbits, 1, 0))
220 /* Check that |Xp - Xq| > 2^(nbits
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/dsa/
H A Ddsa_pmeth.c72 int nbits; /* size of p in bits (default: 1024) */ member in struct:__anon5043
87 dctx->nbits = 1024;
106 dctx->nbits = sctx->nbits;
167 dctx->nbits = p1;
222 int nbits; local
223 nbits = atoi(value);
224 return EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits);
257 ret = dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd,
/freebsd-10.0-release/contrib/ntp/libisc/
H A Dnetaddr.c69 unsigned int nbits; /* Number of significant leftover bits */ local
103 nbits = prefixlen % 8;
109 if (nbits > 0) {
112 INSIST(nbits < 8);
115 mask = (0xFF << (8-nbits)) & 0xFF;
197 unsigned int nbits, nbytes, ipbytes, i; local
213 nbytes = nbits = 0;
221 while ((c & 0x80) != 0 && nbits < 8) {
222 c <<= 1; nbits++;
233 *lenp = nbytes * 8 + nbits;
[all...]
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_regset.c97 ulong_t nbits = drp->dr_size - 1; local
98 ulong_t maxw = nbits >> BT_ULSHIFT;
107 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1;
/freebsd-10.0-release/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-10.0-release/contrib/jemalloc/include/jemalloc/internal/
H A Dbitmap.h33 size_t nbits; member in struct:bitmap_info_s
35 /* Number of levels necessary for nbits. */
49 void bitmap_info_init(bitmap_info_t *binfo, size_t nbits);
51 size_t bitmap_size(size_t nbits);
82 assert(bit < binfo->nbits);
95 assert(bit < binfo->nbits);
152 assert(bit < binfo->nbits);
/freebsd-10.0-release/crypto/openssl/crypto/modes/
H A Dcfb128.c173 /* This expects a single block of size nbits for both in and out. Note that
176 int nbits,const void *key,
183 if (nbits<=0 || nbits>128) return;
189 num = (nbits+7)/8;
197 rem = nbits%8;
198 num = nbits/8;
175 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-10.0-release/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-10.0-release/crypto/openssl/crypto/rsa/
H A Drsa_pmeth.c80 int nbits; member in struct:__anon5199
102 rctx->nbits = 1024;
125 dctx->nbits = sctx->nbits;
530 rctx->nbits = p1;
638 int nbits; local
639 nbits = atoi(value);
640 return EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, nbits);
680 ret = RSA_generate_key_ex(rsa, rctx->nbits, rctx->pub_exp, pcb);
/freebsd-10.0-release/sys/dev/ed/
H A Dif_ed_pccard.c257 static u_int ed_pccard_dl100xx_mii_readbits(struct ed_softc *sc, int nbits);
259 int nbits);
262 static u_int ed_pccard_ax88x90_mii_readbits(struct ed_softc *sc, int nbits);
264 int nbits);
271 static u_int ed_pccard_tc5299j_mii_readbits(struct ed_softc *sc, int nbits);
273 int nbits);
711 ed_pccard_dl100xx_mii_writebits(struct ed_softc *sc, u_int val, int nbits) argument
716 for (i = nbits - 1; i >= 0; i--) {
727 ed_pccard_dl100xx_mii_readbits(struct ed_softc *sc, int nbits) argument
733 for (i = nbits
938 ed_pccard_ax88x90_mii_writebits(struct ed_softc *sc, u_int val, int nbits) argument
950 ed_pccard_ax88x90_mii_readbits(struct ed_softc *sc, int nbits) argument
1020 ed_pccard_tc5299j_mii_writebits(struct ed_softc *sc, u_int val, int nbits) argument
1041 ed_pccard_tc5299j_mii_readbits(struct ed_softc *sc, int nbits) argument
[all...]
/freebsd-10.0-release/sys/powerpc/fpu/
H A Dfpu_explode.c129 #define mask(nbits) ((1L << (nbits)) - 1)
/freebsd-10.0-release/crypto/openssl/engines/ccgost/
H A Dgost89.h78 void get_mac(byte *buffer,int nbits,byte *out);
/freebsd-10.0-release/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...]

Completed in 285 milliseconds

123