Searched refs:divisor (Results 1 – 1 of 1) sorted by relevance
170 constexpr bool is_power_of_two_at_least(ArgIntegerType arg, DivisorIntegerType divisor) { in is_power_of_two_at_least() argument174 return 0 == (arg & (arg - divisor)); in is_power_of_two_at_least()179 inline ArgIntegerType modulo_power_of_two(ArgIntegerType arg, DivisorIntegerType divisor) { in modulo_power_of_two() argument180 __TBB_ASSERT( is_power_of_two(divisor), "Divisor should be a power of two" ); in modulo_power_of_two()181 return arg & (divisor - 1); in modulo_power_of_two()