Home | History | Annotate | Download | only in common

Lines Matching refs:FIRST

39    architectures ignoring the first 32bits leaving bit 32 as the most
53 MASK*(FIRST, LAST): `*' bit constant with bits [FIRST .. LAST]
54 set. The <MACRO> (no size) version permits FIRST >= LAST and
55 generates a wrapped bit mask vis ([0..LAST] | [FIRST..LSB]).
57 LSMASK*(FIRST, LAST): Like MASK - LS bit is zero.
59 MSMASK*(FIRST, LAST): Like MASK - LS bit is zero.
61 MASKED*(VALUE, FIRST, LAST): Masks out all but bits [FIRST
64 LSMASKED*(VALUE, FIRST, LAST): Like MASKED - LS bit is zero.
66 MSMASKED*(VALUE, FIRST, LAST): Like MASKED - MS bit is zero.
68 EXTRACTED*(VALUE, FIRST, LAST): Masks out bits [FIRST .. LAST] but
72 LSEXTRACTED*(VALUE, FIRST, LAST): Same as extracted - LS bit is
75 MSEXTRACTED*(VALUE, FIRST, LAST): Same as extracted - MS bit is
85 INSERTED*(VALUE, FIRST, LAST): Takes VALUE and `inserts' the (LAST
86 - FIRST + 1) least significant bits into bit positions [ FIRST
335 #define _LSMASKn(WIDTH, FIRST, LAST) _MASKn (WIDTH, \
336 _LSB_POS (WIDTH, FIRST), \
339 #define LSMASK8(FIRST, LAST) _LSMASKn ( 8, (FIRST), (LAST))
340 #define LSMASK16(FIRST, LAST) _LSMASKn (16, (FIRST), (LAST))
341 #define LSMASK32(FIRST, LAST) _LSMASKn (32, (FIRST), (LAST))
342 #define LSMASK64(FIRST, LAST) _LSMASKn (64, (FIRST), (LAST))
344 #define LSMASK(FIRST, LAST) (MASK (_LSB_POS (64, FIRST), _LSB_POS (64, LAST)))
349 #define _MSMASKn(WIDTH, FIRST, LAST) _MASKn (WIDTH, \
350 _MSB_POS (WIDTH, FIRST), \
353 #define MSMASK8(FIRST, LAST) _MSMASKn ( 8, (FIRST), (LAST))
354 #define MSMASK16(FIRST, LAST) _MSMASKn (16, (FIRST), (LAST))
355 #define MSMASK32(FIRST, LAST) _MSMASKn (32, (FIRST), (LAST))
356 #define MSMASK64(FIRST, LAST) _MSMASKn (64, (FIRST), (LAST))
358 #define MSMASK(FIRST, LAST) (MASK (_MSB_POS (64, FIRST), _MSB_POS (64, LAST)))
378 INLINE_SIM_BITS(uint8_t) LSMASKED8 (uint8_t word, int first, int last);
379 INLINE_SIM_BITS(uint16_t) LSMASKED16 (uint16_t word, int first, int last);
380 INLINE_SIM_BITS(uint32_t) LSMASKED32 (uint32_t word, int first, int last);
381 INLINE_SIM_BITS(uint64_t) LSMASKED64 (uint64_t word, int first, int last);
383 INLINE_SIM_BITS(unsigned_word) LSMASKED (unsigned_word word, int first, int last);
385 INLINE_SIM_BITS(uint8_t) MSMASKED8 (uint8_t word, int first, int last);
386 INLINE_SIM_BITS(uint16_t) MSMASKED16 (uint16_t word, int first, int last);
387 INLINE_SIM_BITS(uint32_t) MSMASKED32 (uint32_t word, int first, int last);
388 INLINE_SIM_BITS(uint64_t) MSMASKED64 (uint64_t word, int first, int last);
390 INLINE_SIM_BITS(unsigned_word) MSMASKED (unsigned_word word, int first, int last);