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

1234567891011>>

/macosx-10.10.1/cxxfilt-11/cxxfilt/libiberty/
H A Dffs.c1 /* ffs -- Find the first bit set in the parameter
5 Find the first (least significant) bit set in @var{valu}. Bits are
6 numbered from right to left, starting with bit 1 (corresponding to the
16 register int bit; local
21 for (bit = 1; !(valu & 1); bit++)
24 return bit;
/macosx-10.10.1/bind9-45.101/bind9/lib/dns/include/dns/
H A Dbit.h18 /* $Id: bit.h,v 1.14 2007/06/19 23:47:16 tbox Exp $ */
23 /*! \file dns/bit.h */
30 #define DNS_BIT_SET(bit, bitset) \
31 (*(bitset) |= ((dns_bitset_t)1 << (bit)))
32 #define DNS_BIT_CLEAR(bit, bitset) \
33 (*(bitset) &= ~((dns_bitset_t)1 << (bit)))
34 #define DNS_BIT_CHECK(bit, bitset) \
35 ISC_TF((*(bitset) & ((dns_bitset_t)1 << (bit))) \
36 == ((dns_bitset_t)1 << (bit)))
/macosx-10.10.1/libpcap-48/libpcap/Win32/Src/
H A Dffs.c47 register int bit; local
51 for (bit = 1; !(mask & 1); bit++)
53 return(bit);
/macosx-10.10.1/ruby-106/ruby/ext/digest/sha2/
H A Dsha2ossl.c4 #define SHA_Finish(bit) \
5 void SHA##bit##_Finish(SHA##bit##_CTX *ctx, char *buf) \
6 { SHA##bit##_Final((unsigned char *)buf, ctx);}
/macosx-10.10.1/xnu-2782.1.97/bsd/sys/
H A Dbitstring.h70 /* byte of the bitstring bit is in */
71 #define _bit_byte(bit) \
72 ((bit) >> 3)
74 /* mask for the bit within its byte */
75 #define _bit_mask(bit) \
76 (1 << ((bit) & 0x7))
87 /* is bit N of bitstring name set? */
88 #define bit_test(name, bit) \
89 ((name)[_bit_byte(bit)] & _bit_mask(bit))
[all...]
/macosx-10.10.1/libmalloc-53.1.1/src/
H A Dbitarray.c47 #define BIT_SET(old,bit) ((old) | (1ULL << (bit)))
48 #define BIT_GET(old,bit) ((old) & (1ULL << (bit)))
49 #define BIT_ZAP(old,bit) ((old) & ~ (1ULL << (bit)))
51 // several variants below of bit setting or zapping to generate minimal code
53 STATIC_INLINE bool word_get_bit_simple(uint64_t *word, unsigned bit) { argument
55 return BIT_GET(old, bit) != 0;
58 STATIC_INLINE void word_set_bit_simple(uint64_t *word, unsigned bit) { argument
63 word_set_bit_changed(uint64_t *word, unsigned bit) argument
72 word_set_bit_changed_go_down(uint64_t *word, unsigned bit, bool *was_non_zero) argument
83 word_set_bit_go_down(uint64_t *word, unsigned bit) argument
92 word_zap_bit_simple(uint64_t *word, unsigned bit) argument
97 word_zap_bit_changed(uint64_t *word, unsigned bit) argument
106 word_zap_bit_changed_go_down(uint64_t *word, unsigned bit, bool *is_now_zero) argument
117 word_zap_bit_go_down(uint64_t *word, unsigned bit) argument
143 GET_SIMPLE(uint64_t *word, unsigned bit) argument
147 SET_SIMPLE(uint64_t *word, unsigned bit) argument
151 SET_CHANGED(uint64_t *word, unsigned bit) argument
156 SET_CHANGED_GO_DOWN(uint64_t *word, unsigned bit, bool *was_non_zero) argument
162 SET_GO_DOWN(uint64_t *word, unsigned bit) argument
167 ZAP_SIMPLE(uint64_t *word, unsigned bit) argument
171 ZAP_CHANGED(uint64_t *word, unsigned bit) argument
183 ZAP_CHANGED_GO_DOWN(uint64_t *word, unsigned bit, bool *is_now_zero) argument
194 ZAP_GO_DOWN(uint64_t *word, unsigned bit) argument
238 unsigned bit; local
250 unsigned bit; local
281 unsigned bit; local
356 unsigned bit = FFS(words); local
388 unsigned bit; local
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/autoconf/m4/
H A Dlinux_mixed_64_32.m42 # Some Linux machines run a 64-bit kernel with a 32-bit userspace. 'uname -m'
6 [AC_CACHE_CHECK(for 32-bit userspace on 64-bit system,llvm_cv_linux_mixed,
/macosx-10.10.1/llvmCore-3425.0.34/projects/sample/autoconf/m4/
H A Dlinux_mixed_64_32.m42 # Some Linux machines run a 64-bit kernel with a 32-bit userspace. 'uname -m'
6 [AC_CACHE_CHECK(for 32-bit userspace on 64-bit system,llvm_cv_linux_mixed,
/macosx-10.10.1/xnu-2782.1.97/osfmk/i386/
H A Dbit_routines.h71 * General bit-lock routines.
74 #define bit_lock(bit,l) \
82 "r" (bit), "m" (*(volatile int *)(l)) : \
85 #define bit_unlock(bit,l) \
89 "r" (bit), "m" (*(volatile int *)(l)));
97 #define i_bit_set(bit,l) \
101 "r" (bit), "m" (*(volatile int *)(l)));
103 #define i_bit_clear(bit,l) \
107 "r" (bit), "m" (*(volatile int *)(l)));
/macosx-10.10.1/Libc-1044.1.2/string/FreeBSD/
H A Dstrcspn.c41 * NB: idx and bit are temporaries whose use causes gcc 3.4.2 to
45 u_long bit; local
52 #if LONG_BIT == 64 /* always better to unroll on 64-bit architectures */
61 bit = BIT(*charset);
62 tbl[idx] |= bit;
67 bit = BIT(*s1);
68 if ((tbl[idx] & bit) != 0)
H A Dstrspn.c41 * NB: idx and bit are temporaries whose use causes gcc 3.4.2 to
45 u_long bit; local
52 #if LONG_BIT == 64 /* always better to unroll on 64-bit architectures */
60 bit = BIT(*charset);
61 tbl[idx] |= bit;
66 bit = BIT(*s1);
67 if ((tbl[idx] & bit) == 0)
/macosx-10.10.1/ruby-106/ruby/lib/rdoc/markup/
H A Dattributes.rb2 # We manage a set of attributes. Each attribute has a symbol name and a bit
26 # Returns a unique bit for +name+
49 @name_to_bitmap.each do |name, bit|
50 res << name if (bitmap & bit) != 0
62 @name_to_bitmap.each do |name, bit|
63 next if bit == @special
65 yield name.to_s if (bitmap & bit) != 0
/macosx-10.10.1/objc4-646/runtime/
H A Dobjc-layout.mm78 uint8_t bit = (uint8_t)((bits[i/8] >> (i % 8)) & 1);
79 if (bit) break;
84 uint8_t bit = (uint8_t)((bits[i/8] >> (i % 8)) & 1);
85 if (!bit) break;
128 size_t bit;
129 for (bit = which; bit < which + count && bit < bits.bitCount; bit++) {
130 bits.bits[bit/
[all...]
/macosx-10.10.1/bzip2-36/bzip2/
H A Dunzcrash.c6 and then repeatedly decompress it, each time with a different bit of
7 the compressed data inverted, so as to test all possible one-bit errors.
64 void flip_bit ( int bit )
66 int byteno = bit / 8;
67 int bitno = bit % 8;
69 //fprintf ( stderr, "(byte %d bit %d mask %d)",
78 int bit; local
102 for (bit = 0; bit < nZ*8; bit
[all...]
/macosx-10.10.1/Heimdal-398.1.2/lib/hcrypto/
H A Dtest_rand.c156 int bit, i; local
162 for (bit = 0; bit < 8 && c; bit++) {
164 bits[bit]++;
169 for (bit = 0; bit < 8; bit++) {
171 res = ((double)abs(len - bits[bit] * 2)) / (double)len;
174 bit, bi
[all...]
/macosx-10.10.1/Libc-1044.1.2/include/
H A Dbitstring.h45 /* byte of the bitstring bit is in */
46 #define _bit_byte(bit) \
47 ((bit) >> 3)
49 /* mask for the bit within its byte */
50 #define _bit_mask(bit) \
51 (1 << ((bit)&0x7))
66 /* is bit N of bitstring name set? */
67 #define bit_test(name, bit) \
68 ((name)[_bit_byte(bit)] & _bit_mask(bit))
[all...]
/macosx-10.10.1/WTF-7600.1.24/wtf/
H A DBitVector.h114 bool quickGet(size_t bit) const
116 ASSERT_WITH_SECURITY_IMPLICATION(bit < size());
117 return !!(bits()[bit / bitsInPointer()] & (static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1))));
120 void quickSet(size_t bit)
122 ASSERT_WITH_SECURITY_IMPLICATION(bit < size());
123 bits()[bit / bitsInPointer()] |= (static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1)));
126 void quickClear(size_t bit)
128 ASSERT_WITH_SECURITY_IMPLICATION(bit < siz
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/layoutex/
H A DLXUtilities.cpp14 // Finds the high bit by binary searching
23 le_int8 bit = 0; local
27 bit += 16;
32 bit += 8;
37 bit += 4;
42 bit += 2;
47 bit += 1;
50 return bit;
/macosx-10.10.1/libdispatch-442.1.4/src/shims/
H A Datomic_sfb.h71 unsigned long val, bit; local
80 "bts %[_bit], %[_p] \n\t" /* cf = prev bit val */
86 : [_p] "=m" (*p), [_val] "=&r" (val), [_bit] "=&r" (bit)
87 : [_all_ones] "i" ((typeof(bit))UINT_MAX) : "memory", "cc");
98 "bts %[_bit], %[_p] \n\t" /* cf = prev bit val */
104 : [_p] "=m" (*p), [_val] "=&r" (val), [_bit] "=&r" (bit)
105 : [_all_ones] "i" ((typeof(bit))UINT_MAX),
106 [_max] "g" ((typeof(bit))max) : "memory", "cc");
108 return (unsigned int)bit;
/macosx-10.10.1/OpenSSL098-52/src/demos/prime/
H A DMakefile15 @echo Test creating a 128-bit prime
17 @echo Test creating a 256-bit prime
19 @echo Test creating a 512-bit prime
/macosx-10.10.1/dtrace-147/test/cmd/baddof/
H A Dbaddof.c88 int bit, i; local
97 * We are going iterate through, flipping one bit and attempting
100 for (bit = 0; bit < len * 8; bit++) {
101 saved = buf[bit / 8];
102 buf[bit / 8] ^= (1 << (bit % 8));
104 if ((bit % 100) == 0)
105 printf("%d\n", bit);
[all...]
/macosx-10.10.1/ntfs-84/kext/
H A Dntfs_bitmap.h53 * @start_bit: first bit to set
57 * Set @count bits starting at bit @start_bit in the bitmap described by the
74 * @start_bit: first bit to set
77 * Set @count bits starting at bit @start_bit in the bitmap described by the
93 * @start_bit: first bit to clear
96 * Clear @count bits starting at bit @start_bit in the bitmap described by the
110 * ntfs_bitmap_set_bit - set a bit in a bitmap
112 * @bit: bit to set
114 * Set bit
120 ntfs_bitmap_set_bit(ntfs_inode *ni, const s64 bit) argument
136 ntfs_bitmap_clear_bit(ntfs_inode *ni, const s64 bit) argument
[all...]
H A Dntfs_bitmap.c54 * @start_bit: first bit to set
59 * Set @count bits starting at bit @start_bit in the bitmap described by the
79 u8 bit; local
99 /* Get the page containing the first bit (@start_bit). */
110 bit = start_bit & 7;
112 if (bit) {
114 while ((bit & 7) && cnt) {
117 *byte |= 1 << bit++;
119 *byte &= ~(1 << bit++);
172 bit
[all...]
/macosx-10.10.1/OpenSSL098-52/src/util/
H A Dmkcerts.sh19 echo creating $CAbits bit PCA cert request
29 Test PCA (1024 bit)
55 echo creating $CAbits bit CA cert request
65 Test CA (1024 bit)
92 echo creating 512 bit server cert request
102 Server test cert (512 bit)
109 echo problems generating 512 bit server cert request
115 echo signing 512 bit server cert
123 echo problems signing 512 bit server cert
128 # create 1024 bit serve
[all...]
/macosx-10.10.1/groff-38/groff/src/libs/libxutil/
H A DXFontName.c14 unsigned int *attrp, unsigned int bit)
28 *attrp |= bit;
36 unsigned int *attrp, unsigned int bit)
42 name = extractStringField (name, buf, sizeof (buf), attrp, bit);
45 if (!(*attrp & bit))
65 #define GetString(field,bit)\
68 &attributes, bit))) \
71 #define GetUnsigned(field,bit)\
74 &attributes, bit))) \
124 #define PutString(field, bit)\
13 extractStringField(char *name, char *buffer, int size, unsigned int *attrp, unsigned int bit) argument
35 extractUnsignedField(char *name, unsigned int *result, unsigned int *attrp, unsigned int bit) argument
[all...]

Completed in 158 milliseconds

1234567891011>>