Searched defs:bits (Results 1 - 25 of 208) 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/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/tools/smatch/src/
H A Dtarget.h55 * Helper functions for converting bits to bytes and vice versa.
58 static inline int bits_to_bytes(int bits) argument
60 return bits >= 0 ? (bits + bits_in_char - 1) / bits_in_char : -1;
H A Dcheck_64bit_shift.c58 sval_t bits, shifter; local
77 get_absolute_max(right->left, &bits);
80 bits = sval_cast(&ullong_ctype, bits);
82 sval = sval_binop(bits, SPECIAL_LEFTSHIFT, shifter);
H A Dcheck_shift_to_zero.c25 sval_t bits; local
30 if (!get_implied_value(expr->right, &bits))
36 if (type_bits(type) == -1 || type_bits(type) > bits.value)
40 sm_warning("right shifting more than type allows %d vs %lld", type_bits(type), bits.value);
73 sval_t bits; local
78 if (!get_implied_value(expr->right, &bits))
83 if (type_bits(type) > bits.value)
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Denum-bitwise.c4 typedef long long __bitwise bits; typedef
7 RZ = (__force bits) 0,
8 RO = (__force bits) 1,
9 RM = (__force bits) -1,
12 _Static_assert([typeof(RZ)] == [bits], "RZ");
13 _Static_assert([typeof(RO)] == [bits], "RO");
14 _Static_assert([typeof(RM)] == [bits], "RM");
15 _Static_assert(sizeof(enum r) == sizeof(bits), "bits");
H A Denum-bitwise-mixed.c4 typedef long long __bitwise bits; typedef
7 AR = (__force bits) 0,
9 AS = (__force bits) 1,
16 BR = (__force bits) 0,
18 BS = (__force bits) 1,
/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/contrib/zlib/
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:__anon7
[all...]
/illumos-gate/usr/src/head/
H A Dnan.h61 unsigned bits :20; member in struct:__anon17::__anon18
69 unsigned bits :19; member in struct:__anon17::__anon19
82 unsigned bits :20; member in struct:__anon20::__anon21
88 unsigned bits :19; member in struct:__anon20::__anon22
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/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...]
/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/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 287 milliseconds

123456789