Home | History | Annotate | Download | only in common

Lines Matching refs:START

116 /* compute the number of bits between START and STOP */
119 #define _MAKE_WIDTH(START, STOP) (STOP - START + 1)
121 #define _MAKE_WIDTH(START, STOP) (START - STOP + 1)
163 #define _MSB_32(START, STOP) (START <= STOP \
164 ? (START < 32 ? 0 : START - 32) \
166 #define _MSB_16(START, STOP) (START <= STOP \
167 ? (START < 48 ? 0 : START - 48) \
170 #define _MSB_32(START, STOP) (START >= STOP \
171 ? (START >= 32 ? 31 : START) \
173 #define _MSB_16(START, STOP) (START >= STOP \
174 ? (START >= 16 ? 15 : START) \
179 #define _LSB_32(START, STOP) (START <= STOP \
181 : (START < 32 ? 0 : START - 32))
182 #define _LSB_16(START, STOP) (START <= STOP \
184 : (START < 48 ? 0 : START - 48))
186 #define _LSB_32(START, STOP) (START >= STOP \
188 : (START >= 32 ? 31 : START))
189 #define _LSB_16(START, STOP) (START >= STOP \
191 : (START >= 16 ? 15 : START))
195 #define _MSB(START, STOP) (START <= STOP ? START : STOP)
197 #define _MSB(START, STOP) (START >= STOP ? START : STOP)
201 #define _LSB(START, STOP) (START <= STOP ? STOP : START)
203 #define _LSB(START, STOP) (START >= STOP ? STOP : START)
274 #define _MASKn(WIDTH, START, STOP) (((uint##WIDTH##_t)(-1) \
275 >> (_MSB_SHIFT (WIDTH, START) \
280 #define _POS_LE(START, STOP) (START <= STOP)
282 #define _POS_LE(START, STOP) (STOP <= START)
286 #define MASK(START, STOP) \
287 (_POS_LE ((START), (STOP)) \
289 _MSB ((START), (STOP)), \
290 _LSB ((START), (STOP)) ) \
292 | _MASKn(64, (START), _LSB_POS (64, 0))))
295 #define MASK(START, STOP) \
296 (_POS_LE ((START), (STOP)) \
300 _MSB_32 ((START), (STOP)), \
301 _LSB_32 ((START), (STOP)))) \
303 _LSB_32 ((START), (STOP)), \
309 _MSB_32 ((START), (STOP))))))
312 #define MASK(START, STOP) \
313 (_POS_LE ((START), (STOP)) \
317 _MSB_16 ((START), (STOP)), \
318 _LSB_16 ((START), (STOP)))) \
320 _LSB_16 ((START), (STOP)), \
326 _MSB_16 ((START), (STOP))))))
410 INLINE_SIM_BITS(uint8_t) LSEXTRACTED8 (uint8_t val, int start, int stop);
411 INLINE_SIM_BITS(uint16_t) LSEXTRACTED16 (uint16_t val, int start, int stop);
412 INLINE_SIM_BITS(uint32_t) LSEXTRACTED32 (uint32_t val, int start, int stop);
413 INLINE_SIM_BITS(uint64_t) LSEXTRACTED64 (uint64_t val, int start, int stop);
415 INLINE_SIM_BITS(unsigned_word) LSEXTRACTED (unsigned_word val, int start, int stop);
417 INLINE_SIM_BITS(uint8_t) MSEXTRACTED8 (uint8_t val, int start, int stop);
418 INLINE_SIM_BITS(uint16_t) MSEXTRACTED16 (uint16_t val, int start, int stop);
419 INLINE_SIM_BITS(uint32_t) MSEXTRACTED32 (uint32_t val, int start, int stop);
420 INLINE_SIM_BITS(uint64_t) MSEXTRACTED64 (uint64_t val, int start, int stop);
422 INLINE_SIM_BITS(unsigned_word) MSEXTRACTED (unsigned_word val, int start, int stop);
459 INLINE_SIM_BITS(uint8_t) LSINSERTED8 (uint8_t val, int start, int stop);
460 INLINE_SIM_BITS(uint16_t) LSINSERTED16 (uint16_t val, int start, int stop);
461 INLINE_SIM_BITS(uint32_t) LSINSERTED32 (uint32_t val, int start, int stop);
462 INLINE_SIM_BITS(uint64_t) LSINSERTED64 (uint64_t val, int start, int stop);
463 INLINE_SIM_BITS(unsigned_word) LSINSERTED (unsigned_word val, int start, int stop);
465 INLINE_SIM_BITS(uint8_t) MSINSERTED8 (uint8_t val, int start, int stop);
466 INLINE_SIM_BITS(uint16_t) MSINSERTED16 (uint16_t val, int start, int stop);
467 INLINE_SIM_BITS(uint32_t) MSINSERTED32 (uint32_t val, int start, int stop);
468 INLINE_SIM_BITS(uint64_t) MSINSERTED64 (uint64_t val, int start, int stop);
469 INLINE_SIM_BITS(unsigned_word) MSINSERTED (unsigned_word val, int start, int stop);