Searched refs:NBBY (Results 1 - 14 of 14) sorted by relevance
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | param.h | 177 #define CBQSIZE (CBLOCK/NBBY) /* Quote bytes/cblock - can do better. */ 212 #define setbit(a,i) (((char *)(a))[(i)/NBBY] |= 1<<((i)%NBBY)) 213 #define clrbit(a,i) (((char *)(a))[(i)/NBBY] &= ~(1<<((i)%NBBY))) 214 #define isset(a,i) (((char *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) 215 #define isclr(a,i) ((((char *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
|
H A D | types.h | 262 #define NBBY __DARWIN_NBBY /* bits in a byte */ macro
|
H A D | dtrace.h | 530 (((sizeof (uint64_t) * NBBY) - 1) * 2 + 1) 532 #define DTRACE_QUANTIZE_ZEROBUCKET ((sizeof (uint64_t) * NBBY) - 1)
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/sys/ |
H A D | types.h | 54 * paranoid bit masking, 64bit cleanup, add NBBY 144 #define NBBY 8 macro
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/default_pager/ |
H A D | default_pager_internal.h | 261 #define NBBY 8 /* bits per byte XXX */ 263 #define setbit(a,i) (*(((char *)(a)) + ((i)/NBBY)) |= 1<<((i)%NBBY)) 264 #define clrbit(a,i) (*(((char *)(a)) + ((i)/NBBY)) &= ~(1<<((i)%NBBY))) 265 #define isset(a,i) (*(((char *)(a)) + ((i)/NBBY)) & (1<<((i)%NBBY))) 266 #define isclr(a,i) ((*(((char *)(a)) + ((i)/NBBY)) & (1<<((i)%NBBY))) == 0) 502 #define RMAPSIZE(blocks) (howmany(blocks,NBBY)) [all...] |
H A D | dp_backing_store.c | 1546 for (; byte_num < howmany(ps->ps_ncls, NBBY); byte_num++) { 1548 for (bit_num = 0; bit_num < NBBY; bit_num++) { 1552 ASSERT(bit_num != NBBY); 1557 cluster = (byte_num*NBBY) + bit_num; 1594 if ((cluster/NBBY) < ps->ps_hint) { 1595 ps->ps_hint = (cluster/NBBY);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/vn/ |
H A D | shadow.c | 139 b.byte = where / NBBY; 140 b.bit = where % NBBY; 165 map[start.byte] |= byte_set_bits(start.bit, NBBY - 1); 231 for (i = start.bit; i < NBBY; i++) { 253 count += sizeof(*valPtr) * NBBY; 267 count += sizeof(*valPtr) * NBBY; 277 count += NBBY; 283 for (i = 0; i < NBBY; i++) { 426 return (howmany(blocks, NBBY));
|
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/ |
H A D | fs.h | 343 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \ 344 /* block map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPF(fs), NBBY) +\ 347 /* cluster map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPB(fs), NBBY))) 481 (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag)))
|
H A D | ffs_alloc.c | 1163 mapp = &cg_clustersfree(cgp)[bpref / NBBY]; 1165 bit = 1 << (bpref % NBBY); 1174 if ((got & (NBBY - 1)) != (NBBY - 1)) { 1270 start = cgp->cg_irotor / NBBY; 1271 len = howmany(fs->fs_ipg - cgp->cg_irotor, NBBY); 1286 ipref = i * NBBY; 1287 for (i = 1; i < (1 << NBBY); i <<= 1, ipref++) { 1603 start = dtogd(fs, bpref) / NBBY; 1605 start = cgp->cg_frotor / NBBY; [all...] |
H A D | ffs_subr.c | 146 if ((inblk & (1 << (siz + (fs->fs_frag % NBBY)))) == 0)
|
H A D | ffs_vfsops.c | 621 howmany(fs->fs_cpg * fs->fs_spc / NSPF(fs), NBBY);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | tty_subr.c | 85 #define QMEM(n) ((((n)-1)/NBBY)+1) 331 sby = off / NBBY; 332 sbi = off % NBBY; 333 eby = (off+len) / NBBY; 334 ebi = (off+len) % NBBY;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | ip6_mroute.h | 80 #define NIFBITS (sizeof(if_mask) * NBBY) /* bits per mask */
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/ |
H A D | dtrace.c | 419 size_t size = bits / NBBY; \ 468 size_t size = bits / NBBY; \ 4964 uintptr_t mask = (0xf << (sizeof (uintptr_t) * NBBY / 4)); 4966 int shift = (sizeof (uintptr_t) * NBBY) - 4, i = 0; 9234 size = (((sizeof (uint64_t) * NBBY) - 1) * 2 + 1) *
|
Completed in 212 milliseconds