Searched refs:is_power2_or_zero (Results 1 – 4 of 4) sorted by relevance
20 static constexpr bool is_power2_or_zero(size_t value) { in is_power2_or_zero() function26 return value && is_power2_or_zero(value); in is_power2()43 return is_power2_or_zero(value) ? value : 1ULL << (log2(value) + 1); in ge_power2()
24 EXPECT_EQ(is_power2_or_zero(i), kExpectedValues[i]); in TEST()
454 struct is_power2_or_zero { struct459 inline cst_pred_ty<is_power2_or_zero> m_Power2OrZero() { in m_Power2OrZero() argument460 return cst_pred_ty<is_power2_or_zero>(); in m_Power2OrZero()462 inline api_pred_ty<is_power2_or_zero> m_Power2OrZero(const APInt *&V) { in m_Power2OrZero()
509 struct is_power2_or_zero { struct514 inline cst_pred_ty<is_power2_or_zero> m_Power2OrZero() { in m_Power2OrZero() argument515 return cst_pred_ty<is_power2_or_zero>(); in m_Power2OrZero()517 inline api_pred_ty<is_power2_or_zero> m_Power2OrZero(const APInt *&V) { in m_Power2OrZero()