• Home
  • Raw
  • Download

Lines Matching refs:UWord

80 #define ADDR_LSB_MASK (((UWord)1 << ADDR_LSB_BITS) - 1U)
84 UWord address_lsb(const Addr a) in address_lsb()
109 UWord address_msb(const Addr a) in address_msb()
125 Addr make_address(const UWord a1, const UWord a0) in make_address()
136 #define BITS_PER_UWORD (8U * sizeof(UWord))
156 #define UWORD_LSB_MASK (((UWord)1 << BITS_PER_BITS_PER_UWORD) - 1)
164 UWord uword_msb(const UWord a) in uword_msb()
178 UWord uword_lsb(const UWord a) in uword_lsb()
226 UWord bm0_r[BITMAP1_UWORD_COUNT];
227 UWord bm0_w[BITMAP1_UWORD_COUNT];
230 static __inline__ UWord bm0_mask(const UWord a) in bm0_mask()
235 return ((UWord)1 << uword_lsb(a)); in bm0_mask()
239 static __inline__ void bm0_set(UWord* bm0, const UWord a) in bm0_set()
244 bm0[uword_msb(a)] |= (UWord)1 << uword_lsb(a); in bm0_set()
252 static __inline__ void bm0_set_range(UWord* bm0, in bm0_set_range()
253 const UWord a, const SizeT size) in bm0_set_range()
262 |= (((UWord)1 << size) - 1) << uword_lsb(a); in bm0_set_range()
266 static __inline__ void bm0_clear(UWord* bm0, const UWord a) in bm0_clear()
271 bm0[uword_msb(a)] &= ~((UWord)1 << uword_lsb(a)); in bm0_clear()
279 static __inline__ void bm0_clear_range(UWord* bm0, in bm0_clear_range()
280 const UWord a, const SizeT size) in bm0_clear_range()
295 &= ~((((UWord)1 << size) - 1) << uword_lsb(a)); in bm0_clear_range()
300 static __inline__ UWord bm0_is_set(const UWord* bm0, const UWord a) in bm0_is_set()
305 return (bm0[uword_msb(a)] & ((UWord)1 << uword_lsb(a))); in bm0_is_set()
313 static __inline__ UWord bm0_is_any_set(const UWord* bm0, in bm0_is_any_set()
322 return (bm0[uword_msb(a)] & ((((UWord)1 << size) - 1) << uword_lsb(a))); in bm0_is_any_set()
343 struct bitmap2* bm2_insert(struct bitmap* const bm, const UWord a1);
379 Bool bm_cache_lookup(struct bitmap* const bm, const UWord a1, in bm_cache_lookup()
458 const UWord a1, in bm_update_cache()
502 const struct bitmap2* bm2_lookup(struct bitmap* const bm, const UWord a1) in bm2_lookup()
527 bm2_lookup_exclusive(struct bitmap* const bm, const UWord a1) in bm2_lookup_exclusive()
562 struct bitmap2* bm2_insert(struct bitmap* const bm, const UWord a1) in bm2_insert()
600 struct bitmap2* bm2_lookup_or_insert(struct bitmap* const bm, const UWord a1) in bm2_lookup_or_insert()
638 const UWord a1) in bm2_lookup_or_insert_exclusive()
644 void bm2_remove(struct bitmap* const bm, const UWord a1) in bm2_remove()