Home | History | Annotate | Download | only in ppc

Lines Matching defs:BIT

25 /* bit manipulation routines:
27 Bit numbering: The bits are numbered according to the PowerPC
28 convention - the left most (or most significant) is bit 0 while the
29 right most (least significant) is bit 1.
32 operates in 32bit quantity (bits are numbered 0..31); <MACRO>64
33 which operates using 64bit quantites (and bits are numbered 0..64);
34 and <MACRO> which operates using the bit size of the target
35 architecture (bits are still numbered 0..63), with 32bit
36 architectures ignoring the first 32bits having bit 32 as the most
39 BIT*(POS): Quantity with just 1 bit set.
41 MASK*(FIRST, LAST): Create a constant bit mask of the specified
47 LSMASKED*(VALUE, FIRST, LAST): Like MASKED - LS bit is zero.
50 also right shifts the masked value so that bit LAST becomes the
53 LSEXTRACTED*(VALUE, FIRST, LAST): Same as extracted - LS bit is
56 SHUFFLED**(VALUE, OLD, NEW): Mask then move a single bit from OLD
64 - FIRST + 1) least significant bits into bit positions [ FIRST
68 natural size. If in 32bit mode, discard the high 32bits.
71 natural size. If in 64bit mode, sign extend the value.
103 #define BIT(POS) BIT64(POS)
105 #define BIT(POS) (((POS) < 32) ? 0 : _BITn(32, (POS)-32))
109 /* multi bit mask */
118 /* Multi-bit mask on least significant bits */
199 /* move a single bit around */
230 /* depending on MODE return a 64bit or 32bit (sign extended) value */
249 /* bit bliting macro's */
250 #define BLIT32(V, POS, BIT) \
252 if (BIT) \