/illumos-gate/usr/src/cmd/sendmail/include/sm/ |
H A D | bitops.h | 22 ** 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...] |
/illumos-gate/usr/src/boot/lib/libc/string/ |
H A D | ffs.c | 39 * Find First Set bit 44 int bit; local 48 for (bit = 1; !(mask & 1); bit++) 50 return (bit);
|
H A D | fls.c | 36 * Find Last Set bit 41 int bit; local 45 for (bit = 1; mask != 1; bit++) 47 return (bit);
|
H A D | strcspn.c | 41 * 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 D | strspn.c | 41 * 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)
|
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_csr.h | 50 #define CSR_FR(base, off, bit) \ 52 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK)) 54 #define CSRA_FR(base, off, index, bit) \ 56 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK)) 58 #define CSR_FS(base, off, bit, val) \ 61 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << \ 62 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit)))) [all...] |
/illumos-gate/usr/src/uts/sun4u/sys/i2c/clients/ |
H A D | pcf8574_impl.h | 39 * PCF8574_BIT_READ_MASK takes in a byte from the device and the bit that 40 * the user wants to read. I shifts the byte over so that the bit that we 41 * want is in the 1's bit and masks out the rest of the byte. 43 #define PCF8574_BIT_READ_MASK(byte, bit) ((byte >> bit) & 0x01) 46 * PCF8574_BIT_WRITE_MASK takes in a byte from the device, the bit that the 48 * bit. It zero's out the bit that we are writing to in the byte and then or's 49 * the value(which was shifted to the bit location we wanted) to fill in only 50 * that bit i [all...] |
H A D | ssc100_impl.h | 39 * SSC100_BIT_READ_MASK takes in a byte from the device and the bit that 40 * the user wants to read. I shifts the byte over so that the bit that we 41 * want is in the 1's bit and masks out the rest of the byte. 43 #define SSC100_BIT_READ_MASK(byte, bit) ((byte >> bit) & 0x01) 46 * SSC100_BIT_WRITE_MASK takes in a byte from the device, the bit that the 48 * bit. It zero's out the bit that we are writing to in the byte and then or's 49 * the value(which was shifted to the bit location we wanted) to fill in only 50 * that bit i [all...] |
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/ |
H A D | baddof.c | 58 int bit, i; local 67 * We are going iterate through, flipping one bit and attempting 70 for (bit = 0; bit < len * 8; bit++) { 71 saved = buf[bit / 8]; 72 buf[bit / 8] ^= (1 << (bit % 8)); 74 if ((bit % 100) == 0) 75 printf("%d\n", bit); [all...] |
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | bitstring.h | 41 /* byte of the bitstring bit is in */ 42 #define _bit_byte(bit) \ 43 ((bit) >> 3) 45 /* mask for the bit within its byte */ 46 #define _bit_mask(bit) \ 47 (1 << ((bit)&0x7)) 62 /* is bit N of bitstring name set? */ 63 #define bit_test(name, bit) \ 64 ((name)[_bit_byte(bit)] & _bit_mask(bit)) [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/sparc/ |
H A D | ffs.s | 38 clr %o1 ! delay slot, return zero if no bit set 40 inc %o1 ! bit that will get checked 42 be 1b ! if bit is zero, keep checking 43 srl %o0, 1, %o0 ! shift input right until we hit a 1 bit
|
/illumos-gate/usr/src/cmd/ksh/amd64/ |
H A D | Makefile | 36 $(INSTALL.ksh.64bit)
|
/illumos-gate/usr/src/cmd/ksh/i386/ |
H A D | Makefile | 35 $(INSTALL.ksh.32bit)
|
/illumos-gate/usr/src/cmd/ksh/sparc/ |
H A D | Makefile | 35 $(INSTALL.ksh.32bit)
|
/illumos-gate/usr/src/cmd/ksh/sparcv9/ |
H A D | Makefile | 36 $(INSTALL.ksh.64bit)
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_debug.c | 129 static void px_dbg_print(px_debug_bit_t bit, dev_info_t *dip, char *fmt, 131 static void px_dbg_queue(px_debug_bit_t bit, dev_info_t *dip, char *fmt, 140 px_dbg_print(px_debug_bit_t bit, dev_info_t *dip, char *fmt, va_list args) argument 142 int cont = bit >> DBG_BITS; 149 ddi_get_instance(dip), px_debug_sym[bit]); 151 prom_printf("px: %s: ", px_debug_sym[bit]); 164 px_dbg_queue(px_debug_bit_t bit, dev_info_t *dip, char *fmt, va_list args) argument 189 msg_p->bit = bit; 220 px_dbg_print(msg_p->bit, msg_ 231 px_dbg(px_debug_bit_t bit, dev_info_t *dip, char *fmt, ...) argument [all...] |
/illumos-gate/usr/src/uts/i86xpv/sys/ |
H A D | evtchn_impl.h | 81 #define SET_EVTCHN_BIT(bit, arrayp) \ 82 ((arrayp)[bit >> EVTCHN_SHIFT] |= \ 83 (1ul << ((bit) & ((1ul << EVTCHN_SHIFT) - 1)))) 84 #define CLEAR_EVTCHN_BIT(bit, arrayp) \ 85 ((arrayp)[bit >> EVTCHN_SHIFT] &= \ 86 ~((1ul << ((bit) & ((1ul << EVTCHN_SHIFT) - 1))))) 87 #define TEST_EVTCHN_BIT(bit, arrayp) \ 88 ((arrayp)[bit >> EVTCHN_SHIFT] & \ 89 (1ul << ((bit) & ((1ul << EVTCHN_SHIFT) - 1))))
|
/illumos-gate/usr/src/test/os-tests/tests/secflags/ |
H A D | secflags_aslr.sh | 69 check 32bit /opt/os-tests/tests/secflags/addrs-32 71 check 64bit /opt/os-tests/tests/secflags/addrs-64
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp_hash.c | 115 uint32_t index, bit, byte, crc; local 120 for (bit = 0; bit < 8; bit++) { 141 uint16_t index, bit, byte; local 146 for (bit = 0; bit < 8; bit++) { 203 * Lookup the crc32c for a 32 bit word stream 281 uint32_t crc, bit, byt local 305 int bit, byte; local [all...] |
/illumos-gate/usr/src/lib/libm/i386/src/ |
H A D | scalblnl.s | 35 fildl 16(%esp) / convert 32-bit integer N
|
H A D | scalbnl.s | 35 fildl 16(%esp) / convert 32-bit integer N
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ |
H A D | ecore_common.h | 8 /* Manipulate a bit vector defined as an array of u64 */ 16 #define __BIT_VEC64_SET_BIT(el, bit) \ 18 el = ((el) | ((u64)0x1 << (bit))); \ 21 #define __BIT_VEC64_CLEAR_BIT(el, bit) \ 23 el = ((el) & (~((u64)0x1 << (bit)))); \ 40 idx - index of the most significant bit in the created mask */
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | byteorder.s | 66 shrl $16, %eax / moves high 16-bit to low 16-bit 73 shrl $16, %eax / moves high 16-bit to low 16-bit 84 shrl $16, %eax / moves high 16-bit to low 16-bit 106 shrl $16, %eax / moves high 16-bit to low 16-bit 113 shrl $16, %eax / moves high 16-bit to low 16-bit [all...] |
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/ |
H A D | umultiply.s | 47 * 4 or fewer bit multipliers: 19 or 21 instruction cycles 48 * 8 or fewer bit multipliers: 26 or 28 instruction cycles 49 * 12 or fewer bit multipliers: 34 or 36 instruction cycles 50 * 16 or fewer bit multipliers: 42 or 44 instruction cycles 71 be umul_4bit ! 4-bit multiplier 72 sethi %hi(0xffff0000), %o5 ! mask for 16-bit case; have to 77 be,a umul_8bit ! 8-bit multiplier 81 be,a umul_12bit ! 12-bit multiplier 85 be,a umul_16bit ! 16-bit multiplier 130 ! With 32-bit two [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_cache.c | 43 uint16_t bit = 0; local 94 * Tag faults will use it to set the bit to a stable state 97 if (nvlist_lookup_uint16(asru, FM_FMRI_CPU_CACHE_BIT, &bit) != 0) { 105 "cpu %d: Unretire for index %d, way %d\n bit %d" 108 cpuid, index, way, bit, type); 117 "cpu %d: Retiring index %d, way %d\n bit %d" 118 " type 0x%02x", cpuid, index, way, bit, type); 126 cache_info.bit = bit;
|