MCPcopy Create free account
hub / github.com/atcoder/ac-library / countr_zero_constexpr

Function countr_zero_constexpr

atcoder/internal_bit.hpp:45–49  ·  view source on GitHub ↗

@param n `1 <= n` @return same with std::bit::countr_zero

Source from the content-addressed store, hash-verified

43// @param n `1 <= n`
44// @return same with std::bit::countr_zero
45constexpr int countr_zero_constexpr(unsigned int n) {
46 int x = 0;
47 while (!(n & (1 << x))) x++;
48 return x;
49}
50
51} // namespace internal
52

Callers 2

TESTFunction · 0.85
fft_infoClass · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68