Searched refs:bit (Results 1 - 25 of 125) sorted by relevance

12345

/osnet-11/usr/src/cmd/sendmail/include/sm/
H A Dbitops.h22 ** Data structure for bit maps.
24 ** Each bit in this map can be referenced by an ascii character.
25 ** This is 256 possible bits, or 32 8-bit bytes.
28 # define BITMAPBITS 256 /* number of bits in a bit map */
30 # define BITMAPBYTES (BITMAPBITS / BYTEBITS) /* number of bytes in bit map */
36 # define _BITWORD(bit) (((unsigned char)(bit) / (BYTEBITS * sizeof (int))) & BITMAPMAX)
37 # define _BITBIT(bit) ((unsigned int)1 << ((unsigned char)(bit) % (BYTEBITS * sizeof (int))))
41 /* properly case and truncate bit */
[all...]
/osnet-11/usr/src/lib/libntfs/common/include/ntfs/
H A Dbitmap.h32 * - Operations are 8-bit only to ensure the functions work both on little
33 * and big endian machines! So don't make them 32-bit ops!
34 * - bitmap starts at bit = 0 and ends at bit = bitmap size - 1.
35 * - _Caller_ has to make sure that the bit to operate on is less than the
40 * ntfs_bit_set - set a bit in a field of bits
42 * @bit: bit to set
43 * @new_value: value to set bit to (0 or 1)
45 * Set the bit
47 ntfs_bit_set(u8 *bitmap, const u64 bit, const u8 new_value) argument
66 ntfs_bit_get(const u8 *bitmap, const u64 bit) argument
73 ntfs_bit_change(u8 *bitmap, const u64 bit) argument
89 ntfs_bit_get_and_set(u8 *bitmap, const u64 bit, const u8 new_value) argument
115 ntfs_bitmap_set_bit(ntfs_attr *na, s64 bit) argument
129 ntfs_bitmap_clear_bit(ntfs_attr *na, s64 bit) argument
[all...]
H A Dsupport.h79 * Simple bit operation macros. NOTE: These are NOT atomic.
81 #define test_bit(bit, var) ((var) & (1 << (bit)))
82 #define set_bit(bit, var) (var) |= 1 << (bit)
83 #define clear_bit(bit, var) (var) &= ~(1 << (bit))
86 #define test_and_set_bit(bit, var) _test_and_set_bit(bit, &var)
87 static __inline__ BOOL _test_and_set_bit(unsigned long bit, unsigne argument
95 _test_and_clear_bit(unsigned long bit, unsigned long *var) argument
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dbitmap.c50 * @start_bit: first bit to set
54 * Set @count bits starting at bit @start_bit in the bitmap described by the
65 int bit, firstbyte, lastbyte, lastbyte_pos, tmp, err; local
72 bit = start_bit & 7;
73 if (bit)
79 bufsize = ((count - (bit ? 8 - bit : 0) + 7) >> 3) + firstbyte;
91 if (bit) {
100 while ((bit & 7) && left--) {
102 *buf |= 1 << bit
[all...]
H A Dmft.c392 * ntfs_ffz - Find the first unset (zero) bit in a word
427 s64 pass_end, ll, data_pos, pass_start, ofs, bit; local
487 /* If we read at least one byte, search @buf for a zero bit. */
490 bit = data_pos & 7;
493 "data_pos 0x%llx, bit 0x%llx, "
495 (long long)data_pos, (long long)bit,
497 for (; bit < size && data_pos + bit < pass_end;
498 bit &= ~7ull, bit
1189 s64 ll, bit, old_data_initialized, old_data_size; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/commands/i386/
H A Dcmostest.c28 parse_args (int argc, char *argv[], int *byte, int *bit) argument
39 *bit = grub_strtoul (rest + 1, 0, 0);
48 int byte, bit; local
52 err = parse_args (argc, argv, &byte, &bit);
60 if (value & (1 << bit))
70 int byte, bit; local
74 err = parse_args (argc, argv, &byte, &bit);
81 return grub_cmos_write (byte, value & (~(1 << bit)));
92 N_("Test bit at BYTE:BIT in CMOS."));
95 N_("Clean bit a
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/warnings/
H A Dregister.pm28 my ($bit) = @_ ;
31 vec($mask, $bit, 1) = 1 ;
/osnet-11/usr/src/lib/libc/i386/gen/
H A Dbyteorder.s63 shrl $16, %eax / moves high 16-bit to low 16-bit
70 shrl $16, %eax / moves high 16-bit to low 16-bit
H A Dbyteorder64.c34 #error Use ISA-dependent byteorder64.c only on a 32-bit little-endian machine.
H A Dldivide.s74 incl %eax / turn on quotient bit for now
79 decl %eax / turn quotient bit off
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_regset.c86 ulong_t bit, bx; local
89 for (bit = 1, bx = 0; bx <= maxb; bx++, bit <<= 1) {
90 if ((word & bit) == 0) {
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Ddisp_major_status.c190 /* code should be set to the bit offset (log_2) of a supplementary info bit */
220 message_context > 2 : print supplementary info bit (message_context-2)
231 int bit; local
304 /* compute the bit offset */
306 for (bit=0; (((OM_uint32) 1)<<bit) != LSBGET(tmp); bit++) ;
309 if ((ret = display_bit(minor_status, bit, status_string)))
313 status_value -= ((OM_uint32) 1)<<bit;
[all...]
/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Dtlan.h456 inline void TLan_ClearBit(u8 bit, u16 port)
458 outb_p(inb_p(port) & ~bit, port);
464 inline int TLan_GetBit(u8 bit, u16 port)
466 return ((int) (inb_p(port) & bit));
472 inline void TLan_SetBit(u8 bit, u16 port)
474 outb_p(inb_p(port) | bit, port);
478 #define TLan_ClearBit( bit, port ) outb_p(inb_p(port) & ~bit, port)
479 #define TLan_GetBit( bit, port ) ((int) (inb_p(port) & bit))
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dseq.c264 /* Check that a bit is set in a sequence array */
266 check_bit(seq_array_t sa, unsigned int bit) argument
268 if (bit >= NBITS)
271 return (sa->arr[bit/WBITS] & ((seq_word_t)1 << (bit % WBITS)) ? 1 : 0);
274 /* Set a bit in a sequence array */
276 set_bit(seq_array_t sa, unsigned int bit) argument
278 if (bit < NBITS)
279 sa->arr[bit/WBITS] |= ((seq_word_t)1 << (bit
[all...]
/osnet-11/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_prom.c110 u_int bit)
167 *dp |= bit;
179 u_int bit)
195 * First read the existing list, filtering out 'bd' if 'bit'
226 if (board == bd && (*dp & bit) == 0)
233 if ((*dp & bit) != 0) {
105 prom_read_one( mema_disabled_t *dp, int bd, int prom_fd, char *var, u_int bit) argument
174 prom_write_one( mema_disabled_t *dp, int bd, int prom_fd, char *var, u_int bit) argument
/osnet-11/usr/src/common/mpi/
H A Dmplogic.c124 Grows a if needed to set a bit to 1.
158 mp_size bit, ix; local
166 bit = bitNum % MP_DIGIT_BIT;
167 rv = (mp_err)(MP_DIGIT(a, ix) >> bit) & 1;
173 - Extracts numBits bits from a, where the least significant extracted bit
174 is bit lsbNum. Returns a negative value if error occurs.
175 - Because sign bit is used to indicate error, maximum number of bits to
179 integer a, as long as bit lsbNum is in the high order digit of a.
/osnet-11/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode.c454 /* convert code back to bit vector */
709 int bit; /* for looping through bits */ local
710 int limbit; /* upper bit limit when looping */
787 * - 2 bit code type, set to 01
788 * - 2 bit size field
801 for (bit = 0; bit < infop->numx; bit++) {
811 for (bit = 0; bit < info
840 int bit; /* for looping through bits */ local
1214 int bit; local
1232 int bit; local
[all...]
/osnet-11/usr/src/lib/libcrypt/common/
H A Ddes_soft.c69 * Won't work without 8 bit chars and 32 bit longs
83 * Table giving odd parity in the low bit for ASCII characters
107 * Add odd parity to low bit of 8 byte key
186 * the key. The low order bit of each
187 * 8-bit char is not used, so C and D are only 28
191 short bit; local
198 bit = *pcc++;
199 if (btst(userkey, bit))
201 bit
213 short j, k, bit; local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dnumeric.c166 char bit = *s; local
167 if (bit == '0' || bit == '1') {
174 value = (value << 1) | (bit - '0');
191 value_nv += (NV)(bit - '0');
194 if (bit == '_' && len && allow_underscores && (bit = s[1])
195 && (bit == '0' || bit == '1'))
511 (0 if unrecognised), otherwise it is a bit
727 I32 bit; local
[all...]
/osnet-11/usr/src/lib/libshell/misc/
H A Dbuildksh93.sh440 *.i386.32bit.gcc*)
443 *.i386.64bit.gcc*)
459 # 2. We use -KPIC here since -Kpic is too small on 64bit sparc and
460 # on 32bit it's close to the barrier so we use it for both 32bit and
461 # 64bit to avoid later suprises when people update libast in the
525 *.i386.32bit.suncc*) HOSTTYPE='sol11.i386' CC="${bsunc99} -m32" cc_sharedlib='-G' CCFLAGS="${bsuncc_ccflags}" ;;
526 *.i386.64bit.suncc*) HOSTTYPE='sol11.i386' CC="${bsunc99} -m64 -KPIC" cc_sharedlib='-G' CCFLAGS="${bsuncc_ccflags}" ;;
527 *.sparc.32bit.suncc*) HOSTTYPE='sol11.sun4' CC="${bsunc99} -m32" cc_sharedlib='-G' CCFLAGS="${bsuncc_ccflags}" bsuncc_app_ccflags="${bsuncc_app_ccflags_sparc}" ;;
528 *.sparc.64bit
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Encode/JP/
H A DJP.pm40 7bit-jis /\bjis$/i 7bit JIS
42 = 7bit JIS with all Halfwidth Kana
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Storable/
H A DMakefile.PL49 You appear to have a perl configured to use 64 bit integers in its scalar
55 error, then please read the section "64 bit data in perl 5.6.0 and 5.6.1"
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Storable/t/
H A Dinteger.t36 # do this in NVs on 64 bit machines, and we're overflowing IVs so can't use
130 # Test inside use integer to see if the bit pattern is identical
148 # So, check the bit patterns are identical, and check that the sign is the
156 # my $bit = ok (($copy_s1 ^ $copy1) == 0, "$process $copy1 (bitpattern)");
162 my $bit = ok (($copy_s3 ^ $copy1) == 0, "$process $copy1 (bitpattern)");
171 unless ($bit and $sign) {
176 # unless ($bit) { use Devel::Peek; Dump $copy_s1; Dump $$copy_s; }
/osnet-11/usr/src/lib/librdc/common/
H A Drdcrules.c87 char bit[CFG_MAX_BUF]; /* a bitmap */ local
118 rc = sscanf(buf, "%s %s %s %s %s", mas, sha, bit, mod, ovr);
130 (strcmp(bmp, bit) == 0) ||
152 (void) sscanf(buf, "%s %s %s %s %s %s", host, pri, bit,
157 (strcmp(bmp, bit) == 0)) {
188 (strcmp(bmp, bit) == 0)) {
226 (strcmp(bmp, bit) == 0)) {
/osnet-11/usr/src/lib/libnsl/yp/
H A Ddbm.c467 long bit; local
470 bit = hmask+1;
472 bit >>= 1;
473 if (bit == 0)
475 if ((hash&bit) == 0)
476 return (hash|bit);
477 hash &= ~bit;

Completed in 70 milliseconds

12345