Searched defs:bit (Results 1 - 25 of 39) sorted by relevance

12

/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/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/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/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 Dlcnalloc.c112 u8 pass, done_zones, search_zone, need_writeback, bit; local
204 * bmp_pos is the current bit position inside the bitmap. We use
263 bit = 1 << (lcn & 7);
264 ntfs_log_trace("bit = %i.\n", bit);
265 /* If the bit is already set, go onto the next one. */
266 if (*byte & bit) {
275 ntfs_log_trace("First free bit is at LCN = "
289 /* Allocate the bitmap bit. */
290 *byte |= 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...]
H A Dindex.c895 u32 bit = 1 << (pos % 8); local
922 byte |= bit;
924 byte &= ~bit;
951 int bit; local
966 for (bit = 0; bit < 8; bit++) {
967 if (!(bm[byte] & (1 << bit))) {
968 vcn = ntfs_ibm_pos_to_vcn(icx, byte * 8 + bit);
/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/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/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/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/des/
H A Ddes_soft.c64 * Won't work without 8 bit chars and 32 bit longs
75 * Table giving odd parity in the low bit for ASCII characters
97 * Add odd parity to low bit of 8 byte key
222 * the key. The low order bit of each
223 * 8-bit char is not used, so C and D are only 28
227 short bit; local
234 bit = *pcc++;
235 if (btst(userkey, bit))
237 bit
249 short j, k, bit; local
[all...]
/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;
/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/grub/grub-0.97/netboot/
H A D3c595.c38 int bit; member in struct:connector_entry
360 if (vx_connectors & conn_tab[k].bit) {
400 if ((vx_connectors & conn_tab[vx_connector].bit) == 0) {
H A Dundi.c149 int bit; local
155 bit = FIRING_SQUAD_TARGET_BIT ( target );
156 lineup->targets[index] = ( shoot << bit ) |
157 ( lineup->targets[index] & ~( 1 << bit ) );
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dcpu.c277 uint16_t bit; local
311 rc |= nvlist_lookup_uint16(nvl, FM_FMRI_CPU_CACHE_BIT, &bit);
329 FM_FMRI_CPU_CACHE_BIT, bit,
345 FM_FMRI_CPU_CACHE_BIT, bit,
398 uint16_t bit = 0; local
459 bit = strtoul(s, &end, 0);
491 bit);
666 * First compare the cpuid bit (first element)
/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/libdhcpsvc/modules/binfiles/
H A Ddhcp_network.c74 * Note that the actual on-disk format is a bit more complicated than this
1215 * consistency. This is a bit of a kludge but there doesn't seem
1269 * Clear the dirty bit on the container.
1294 uchar_t bit; local
1300 for (bit = 0; bit < 8; bit++) {
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_page.c1090 int32_t bit, first_page, free_bit, free_page, i, in_use_bits, j; local
1119 bit = hashp->hdr.last_freed &
1121 j = bit / BITS_PER_MAP;
1122 bit = bit & ~(BITS_PER_MAP - 1);
1124 bit = 0;
1127 for (; bit <= in_use_bits; j++, bit += BITS_PER_MAP)
1159 * allocated with 1 clear bit. Actually, you are going to
1163 * the first bit o
[all...]
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dutils.c638 * The metadata file $Bitmap has one binary bit representing each cluster on
639 * disk. The bit will be set for each cluster that is in use. The function
640 * reads the relevant part of $Bitmap into a buffer and tests the bit.
644 * refreshed. @bmplcn stores offset to the first bit (in bits) stored in the
657 int byte, bit; local
689 bit = 1 << (lcn & 7);
691 ntfs_log_debug("cluster = %lld, bmplcn = %lld, byte = %d, bit = %d, "
692 "in use %d\n", lcn, bmplcn, byte, bit, buffer[byte] &
693 bit);
695 return (buffer[byte] & bit);
719 int byte, bit; local
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dndbm.c401 long bit; local
404 bit = db->dbm_hmask+1;
406 bit >>= 1;
407 if (bit == 0)
409 if ((hash&bit) == 0)
410 return (hash|bit);
411 hash &= ~bit;
914 /* could consider to make it 32-bit int table to minimize memory usage */
/osnet-11/usr/src/lib/libproc/common/
H A DPgcore.c1540 core_content_t mask, bit; local
1577 bit = mask ^ (mask & (mask - 1));
1581 *buf = (bit & content) ? '+' : '-';
1588 index = popc(bit - 1);
1595 mask ^= bit;

Completed in 81 milliseconds

12