HomeSort by relevance Sort by last modified time
    Searched refs:bits (Results 1 - 25 of 459) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /onnv/onnv-gate/usr/src/common/util/
ffs.c 44 ffs(arg_t bits)
48 if (bits == 0)
50 for (i = 1; ; i++, bits >>= 1) {
51 if (bits & 1)
  /onnv/onnv-gate/usr/src/cmd/ipf/lib/common/
fill6bits.c 12 void fill6bits(bits, msk)
13 int bits;
16 if (bits == 0) {
29 if (bits == 128)
31 if (bits > 96) {
32 msk[3] = htonl(msk[3] << (128 - bits));
33 } else if (bits > 64) {
35 msk[2] = htonl(msk[2] << (96 - bits));
36 } else if (bits > 32) {
39 msk[1] = htonl(msk[1] << (64 - bits));
    [all...]
genmask.c 17 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 == 0
    [all...]
  /onnv/onnv-gate/usr/src/lib/libast/common/stdio/
fwide.c 33 f->bits &= ~SF_MB;
34 f->bits |= SF_WC;
38 f->bits &= ~SF_WC;
39 f->bits |= SF_MB;
41 if (f->bits & SF_MB)
43 if (f->bits & SF_WC)
47 f->bits |= SF_MB;
  /onnv/onnv-gate/usr/src/cmd/dtrace/test/tst/common/bitfields/
err.D_DECL_BFTYPE.badtype.d 40 struct bits {
  /onnv/onnv-gate/usr/src/uts/intel/asm/
atomic.h 42 extern __inline__ void atomic_or_long(ulong_t *target, ulong_t bits)
47 : "r" (target), "r" (bits));
50 extern __inline__ void atomic_and_long(ulong_t *target, ulong_t bits)
55 : "r" (target), "r" (bits));
74 extern __inline__ void atomic_or_long(ulong_t *target, ulong_t bits)
79 : "r" (target), "r" (bits));
82 extern __inline__ void atomic_and_long(ulong_t *target, ulong_t bits)
87 : "r" (target), "r" (bits));
  /onnv/onnv-gate/usr/src/lib/libast/common/string/
fmtip4.c 28 * and optional prefix bits (if 0 <= bits <= 32)
32 fmtip4(register uint32_t addr, int bits)
40 if (bits >= 0 && bits <= 32)
41 sfsprintf(buf + i, z - i, "/%d", bits);
strtoip4.c 29 * 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 = 24
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/hxge/
hpi_vmac.c 41 reset.bits.tx_reset = 1;
55 reset.bits.rx_reset = 1;
81 cfg.bits.tx_en = 1;
83 cfg.bits.crc_insert = 1;
85 cfg.bits.tx_pad = 1;
87 cfg.bits.tx_max_frame_length = max_frame_length;
91 cfg.bits.tx_en = 0;
93 cfg.bits.crc_insert = 0;
95 cfg.bits.tx_pad = 0;
99 cfg.bits.tx_en = 1
    [all...]
  /onnv/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
hash.t 55 # the minimum of bits required to mount the attack on a hash
59 # of entries the number of mask bits can be higher
61 my $bits = $keys ? log($keys)/log(2) : 0;
62 $bits = $min_bits if $min_bits > $bits;
64 $bits = int($bits) < $bits ? int($bits) + 1 : int($bits);
    [all...]
rand.t 34 sub bits ($) { subroutine
35 # Takes a small integer and returns the number of one-bits in it.
37 my $bits = sprintf "%o", $_[0];
38 while (length $bits) {
39 $total += (0,1,1,2,1,2,2,3)[chop $bits]; # Oct to bits
48 my($dev, $bits); # Number of one bits
65 $bits += bits($n * 256); # Don't be greedy; 8 is enoug
    [all...]
  /onnv/onnv-gate/usr/src/lib/libresolv2/common/inet/
inet_net_ntop.c 42 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;
    [all...]
inet_net_pton.c 52 * 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 = 8
271 int bits; local
    [all...]
inet_cidr_pton.c 46 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) {
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 = getbits(src, ipv6)
159 int bits; local
256 int bits = 0; local
    [all...]
inet_cidr_ntop.c 44 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) {
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) {
115 if ((bits < -1) || (bits > 32))
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/xge/hal/include/
xgehal-types.h 37 * vBIT(val, loc, sz) - set bits at offset
43 * bVALx(bits, loc) - Get the value of x bits at location
45 #define bVAL1(bits, loc) ((((u64)bits) >> (64-(loc+1))) & 0x1)
46 #define bVAL2(bits, loc) ((((u64)bits) >> (64-(loc+2))) & 0x3)
47 #define bVAL3(bits, loc) ((((u64)bits) >> (64-(loc+3))) & 0x7)
48 #define bVAL4(bits, loc) ((((u64)bits) >> (64-(loc+4))) & 0xF
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/zmod/
inffast.c 48 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, operation, extra bits, or *
    [all...]
inftrees.h 16 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; /* bits in this part of the code * member in struct:__anon8413
    [all...]
  /onnv/onnv-gate/usr/src/cmd/eeprom/sparc/
loadlogo.c 49 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) {
  /onnv/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/re/t/
re.t 23 # bits
29 eval { re::bits(1) };
30 like( $warn, qr/Useless use/, 'bits() should warn with no args' );
33 re::bits(0, 'debug');
36 re::bits(0, 'debugcolor');
39 re::bits(0, 'nosuchsubpragma');
42 ok( re::bits(0, 'taint') & 0x00100000, '... should set taint bits' );
43 ok( re::bits(0, 'eval') & 0x00200000, '... should set eval bits' );
    [all...]
  /onnv/onnv-gate/usr/src/head/
nan.h 61 unsigned bits :20; member in struct:__anon2592::__anon2593
69 unsigned bits :19; member in struct:__anon2592::__anon2594
82 unsigned bits :20; member in struct:__anon2595::__anon2596
88 unsigned bits :19; member in struct:__anon2595::__anon2597
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 | \
  /onnv/onnv-gate/usr/src/uts/common/io/nxge/npi/
npi_fflp.c 238 (tctl.bits.ldw.stat != TCAM_CTL_RWC_RWC_STAT)) {
258 (tctl.bits.ldw.match != TCAM_CTL_RWC_RWC_MATCH)) {
306 * Class field is bits [195:191].
315 tctl.bits.ldw.location = location;
316 tctl.bits.ldw.rwc = TCAM_CTL_RWC_TCAM_WR;
362 tctl.bits.ldw.rwc = TCAM_CTL_RWC_TCAM_CMP;
374 if (tctl_stat.bits.ldw.match == TCAM_CTL_RWC_RWC_MATCH) {
375 return (uint32_t)(tctl_stat.bits.ldw.location);
407 tctl.bits.ldw.location = location;
408 tctl.bits.ldw.rwc = TCAM_CTL_RWC_TCAM_RD
    [all...]
npi_rxdma.c 244 page_vld.bits.ldw.page0 = 0;
247 page_vld.bits.ldw.page1 = 0;
288 page_vld.bits.ldw.page0 = 0;
291 page_vld.bits.ldw.page1 = 0;
300 page_vld.bits.ldw.page0 = 1;
307 page_vld.bits.ldw.page1 = 1;
311 page_vld.bits.ldw.func = pg_cfg->func_num;
318 page_mask.bits.ldw.mask = pg_cfg->mask >> LOG_PAGE_ADDR_SHIFT;
319 page_value.bits.ldw.value = pg_cfg->value >> LOG_PAGE_ADDR_SHIFT;
320 page_reloc.bits.ldw.relo = pg_cfg->reloc >> LOG_PAGE_ADDR_SHIFT
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/crypto/bn/
bn_rand.c 118 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
124 if (bits == 0)
130 bytes=(bits+7)/8;
131 bit=(bits-1)%8;
141 /* make a random number and set the top and bottom bits */
211 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
213 return bnrand(0, rnd, bits, top, bottom);
216 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
218 return bnrand(1, rnd, bits, top, bottom);
222 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/crypto/asn1/
a_bitstr.c 68 int ret,j,bits,len; local
79 bits=(int)a->flags&0x07;
88 if (j & 0x01) bits=0;
89 else if (j & 0x02) bits=1;
90 else if (j & 0x04) bits=2;
91 else if (j & 0x08) bits=3;
92 else if (j & 0x10) bits=4;
93 else if (j & 0x20) bits=5;
94 else if (j & 0x40) bits=6;
95 else if (j & 0x80) bits=7
    [all...]

Completed in 540 milliseconds

1 2 3 4 5 6 7 8 91011>>