Searched defs:bits (Results 1 - 25 of 202) sorted by relevance

123456789

/illumos-gate/usr/src/common/util/
H A Dffs.c44 ffs(arg_t bits) argument
48 if (bits == 0)
50 for (i = 1; ; i++, bits >>= 1) {
51 if (bits & 1)
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dgenmask.c17 int bits; local
32 * set x most significant bits
34 bits = (int)strtol(msk, &endptr, 0);
37 ((bits > 32) && !use_inet6) || (bits < 0) ||
38 ((bits > 128) && use_inet6))
40 if (*endptr != '\0' || bits > 32 || bits < 0)
45 fill6bits(bits, mskp);
48 if (bits
[all...]
H A Dprintnat.c30 int bits, af; local
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dffs.c32 ffs_impl(uint64_t bits) argument
37 if (bits == 0)
40 if ((bits32 = (uint32_t)bits) == 0) {
41 bits32 = (uint32_t)(bits >> 32);
68 ffs(int bits) argument
70 return (ffs_impl((uint64_t)(uint_t)bits));
74 ffsl(long bits) argument
76 return (ffs_impl((uint64_t)(ulong_t)bits));
80 ffsll(long long bits) argument
82 return (ffs_impl((uint64_t)(u_longlong_t)bits));
[all...]
H A Dfls.c32 fls_impl(uint64_t bits) argument
37 if (bits == 0)
40 if ((bits32 = (uint32_t)(bits >> 32)) != 0)
43 bits32 = (uint32_t)bits;
68 fls(int bits) argument
70 return (fls_impl((uint64_t)(uint_t)bits));
74 flsl(long bits) argument
76 return (fls_impl((uint64_t)(ulong_t)bits));
80 flsll(long long bits) argument
82 return (fls_impl((uint64_t)(u_longlong_t)bits));
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtip4.c28 * and optional prefix bits (if 0 <= bits <= 32)
32 fmtip4(register uint32_t addr, int bits) argument
40 if (bits >= 0 && bits <= 32)
41 sfsprintf(buf + i, z - i, "/%d", bits);
H A Dstrtoip4.c29 * with optional prefix bits
37 * valid bits/masks match the egrep RE:
41 * if pbits!=0 and no bits/mask specified then trailing 0's in addr
52 register unsigned char bits; local
63 bits = 0;
118 bits = z;
128 bits++;
133 bits = 8;
135 bits = 16;
137 bits
[all...]
H A Dstrtoip6.c35 * with optional prefix bits
46 strtoip6(register const char* s, char** e, unsigned char* addr, unsigned char* bits) argument
188 if (bits)
194 *bits = a;
H A Dfmtip6.c74 * with optional prefix bits if 0 < bits <= 128
79 fmtip6(unsigned char* addr, int bits) argument
171 if (bits > 0 && bits <= 128)
172 s = dec(s, "/", bits);
/illumos-gate/usr/src/uts/common/zmod/
H A Dinftrees.h16 table that indexes more bits of the code. op indicates whether
19 pointer, the low four bits of op is the number of index bits of
20 that table. For a length or distance, the low four bits of op
21 is the number of extra bits to get after the code. bits is
22 the number of bits in this code or part of the code to drop off
27 unsigned char op; /* operation, extra bits, table bits */
28 unsigned char bits; /* bit member in struct:__anon9343
[all...]
H A Dinffast.c48 state->bits < 8
58 - The maximum input bits used by a length/distance pair is 15 bits for the
59 length code, 5 bits for the length extra, 15 bits for the distance code,
60 and 13 bits for the distance extra. This totals 48 bits, or six bytes.
87 unsigned bits; /* local strm->bits */ local
93 unsigned op; /* code bits, operatio
[all...]
/illumos-gate/usr/src/uts/common/io/rtw/
H A Dsmc93cx6.c46 * **Note: There are 8 address bits for the 93C56/66 chips unlike
47 * the 93C46/26/06 chips which have 6 address bits.
57 * is preceded by an initial zero (leading 0, followed by 16-bits, MSB
70 unsigned char bits[3]; member in struct:seeprom_cmd
120 if (seeprom_read.bits[i] != 0)
126 if (seeprom_read.bits[i] != 0)
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dif.c74 static struct bits { struct
87 struct bits *p;
/illumos-gate/usr/src/cmd/eeprom/sparc/
H A Dloadlogo.c49 int icw = 64, ich = 64, bits = 16; local
77 c = fscanf(f, "alid_bits_per_item=%d", &bits);
95 bits != 16 && bits != 32) {
101 for (count = ((w + (bits - 1)) / bits) * h; count > 0; count--) {
106 switch (bits) {
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_atomic.c125 * Atomically clear bits in a 64-bit word, returning
126 * the value it had *before* the bits were cleared.
129 bge_atomic_clr64(uint64_t *sp, uint64_t bits) argument
137 newval = oldval & ~bits;
/illumos-gate/usr/src/boot/lib/libz/
H A Dinftrees.h14 table that indexes more bits of the code. op indicates whether
17 pointer, the low four bits of op is the number of index bits of
18 that table. For a length or distance, the low four bits of op
19 is the number of extra bits to get after the code. bits is
20 the number of bits in this code or part of the code to drop off
25 unsigned char op; /* operation, extra bits, table bits */
26 unsigned char bits; /* bit member in struct:__anon109
[all...]
H A Dinffast.c46 state->bits < 8
56 - The maximum input bits used by a length/distance pair is 15 bits for the
57 length code, 5 bits for the length extra, 15 bits for the distance code,
58 and 13 bits for the distance extra. This totals 48 bits, or six bytes.
85 unsigned bits; /* local strm->bits */ local
91 unsigned op; /* code bits, operatio
[all...]
/illumos-gate/usr/src/head/
H A Dnan.h61 unsigned bits :20; member in struct:__anon2284::__anon2285
69 unsigned bits :19; member in struct:__anon2284::__anon2286
82 unsigned bits :20; member in struct:__anon2287::__anon2288
88 unsigned bits :19; member in struct:__anon2287::__anon2289
107 #define IsINF(X) (((dnan *)&(X))->inf_parts.bits == 0 && \
118 * GETNaNPC gets the leftmost 32 bits of the fraction part
120 #define GETNaNPC(dval) (((dnan *)&(dval))->inf_parts.bits << 12 | \
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c66 int bits; local
71 for (bits = IP_ABITS; bits > 0 && (addr & 0xFF) == 0; bits -= 8)
74 return (bits);
91 int bits; local
95 for (bits = IP_ABITS; bits > 0 && addr < 0x01000000; bits -= 8)
99 return (bits);
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_cidr_ntop.c44 inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size);
46 inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size);
50 * inet_cidr_ntop(af, src, bits, dst, size)
63 inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size) { argument
66 return (inet_cidr_ntop_ipv4(src, bits, dst, size));
68 return (inet_cidr_ntop_ipv6(src, bits, dst, size));
97 * inet_cidr_ntop_ipv4(src, bits, dst, size)
109 inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) { argument
115 if ((bits < -1) || (bits > 3
153 inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) argument
[all...]
H A Dinet_net_ntop.c42 static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits,
44 static char * inet_net_ntop_ipv6 __P((const u_char *src, int bits,
49 * inet_net_ntop(af, src, bits, dst, size)
58 inet_net_ntop(af, src, bits, dst, size)
61 int bits;
67 return (inet_net_ntop_ipv4(src, bits, dst, size));
69 return (inet_net_ntop_ipv6(src, bits, dst, size));
78 * inet_net_ntop_ipv4(src, bits, dst, size)
90 inet_net_ntop_ipv4(src, bits, dst, size)
92 int bits;
169 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) argument
[all...]
H A Dinet_cidr_pton.c46 int *bits, int ipv6));
48 int *bits));
54 * inet_cidr_pton(af, src, dst, *bits)
57 * "dst" is assumed large enough for its "af". "bits" is set to the
70 inet_cidr_pton(int af, const char *src, void *dst, int *bits) { argument
73 return (inet_cidr_pton_ipv4(src, dst, bits, 0));
75 return (inet_cidr_pton_ipv6(src, dst, bits));
87 int n, ch, tmp, bits; local
111 bits = -1;
113 bits
159 int bits; local
256 int bits = 0; local
[all...]
H A Dinet_net_pton.c52 * number of bits, either imputed classfully or specified with /CIDR,
65 int n, ch, tmp = 0, dirty, bits; local
125 bits = -1;
130 bits = 0;
134 bits *= 10;
135 bits += n;
136 if (bits > 32)
151 if (bits == -1) {
153 bits = 32;
155 bits
271 int bits; local
[all...]
/illumos-gate/usr/src/common/crypto/ecc/
H A Decl.c233 int bits; local
257 /* determine number of bits */
258 bits = mpl_significant_bits(&irr) - 1;
259 if (bits < MP_OKAY) {
260 res = bits;
/illumos-gate/usr/src/common/mpi/
H A Dmplogic.c173 - Extracts numBits bits from a, where the least significant extracted bit
175 - Because sign bit is used to indicate error, maximum number of bits to
176 be returned is the lesser of (a) the number of bits in an mp_digit, or
177 (b) one less than the number of bits in an mp_err.
178 - lsbNum + numbits can be greater than the number of significant bits in
202 returns number of significnant bits in abs(a).
207 mp_err bits = 0; local
218 ++bits;
224 bits += ix * MP_DIGIT_BIT;
225 if (!bits)
[all...]

Completed in 74 milliseconds

123456789