Lines Matching refs:pos
56 inline void set_one_bit( std::atomic<population_t>& dest, int pos ) { in set_one_bit() argument
57 __TBB_ASSERT( pos>=0, nullptr); in set_one_bit()
58 __TBB_ASSERT( pos<int(sizeof(population_t)*CHAR_BIT), nullptr); in set_one_bit()
59 dest.fetch_or( one<<pos ); in set_one_bit()
62 inline void clear_one_bit( std::atomic<population_t>& dest, int pos ) { in clear_one_bit() argument
63 __TBB_ASSERT( pos>=0, nullptr); in clear_one_bit()
64 __TBB_ASSERT( pos<int(sizeof(population_t)*CHAR_BIT), nullptr); in clear_one_bit()
65 dest.fetch_and( ~(one<<pos) ); in clear_one_bit()
68 inline bool is_bit_set( population_t val, int pos ) { in is_bit_set() argument
69 __TBB_ASSERT( pos>=0, nullptr); in is_bit_set()
70 __TBB_ASSERT( pos<int(sizeof(population_t)*CHAR_BIT), nullptr); in is_bit_set()
71 return (val & (one<<pos)) != 0; in is_bit_set()