MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / set_one_bit

Function set_one_bit

benchmarks/tbb/task_stream.h:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50const uintptr_t one = 1;
51
52inline void set_one_bit( uintptr_t& dest, int pos ) {
53 __TBB_ASSERT( pos>=0, NULL );
54 __TBB_ASSERT( pos<32, NULL );
55 __TBB_AtomicOR( &dest, one<<pos );
56}
57
58inline void clear_one_bit( uintptr_t& dest, int pos ) {
59 __TBB_ASSERT( pos>=0, NULL );

Callers 1

pushMethod · 0.85

Calls 1

__TBB_AtomicORFunction · 0.85

Tested by

no test coverage detected