Searched refs:is_power2 (Results 1 – 5 of 5) sorted by relevance
25 static constexpr bool is_power2(size_t value) { in is_power2() function47 static_assert(is_power2(alignment), "alignment must be a power of 2"); in offset_from_last_aligned()52 static_assert(is_power2(alignment), "alignment must be a power of 2"); in offset_to_next_aligned()
36 EXPECT_EQ(is_power2(i), kExpectedValues[i]); in TEST()
267 struct is_power2 { struct272 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() argument273 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2()
430 struct is_power2 { struct435 inline cst_pred_ty<is_power2> m_Power2() { in m_Power2() argument436 return cst_pred_ty<is_power2>(); in m_Power2()438 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { in m_Power2()
485 struct is_power2 { struct490 inline cst_pred_ty<is_power2> m_Power2() { in m_Power2() argument491 return cst_pred_ty<is_power2>(); in m_Power2()493 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { in m_Power2()