Home
last modified time | relevance | path

Searched refs:divisor (Results 1 – 1 of 1) sorted by relevance

/oneTBB/include/oneapi/tbb/detail/
H A D_utils.h170 constexpr bool is_power_of_two_at_least(ArgIntegerType arg, DivisorIntegerType divisor) { in is_power_of_two_at_least() argument
174 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() argument
180 __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()