Lines Matching refs:const_value
137 constexpr long const_value(long l) { return l; } in const_value() function
139 static_assert(wrap_align_down(1, const_value(-1)), ""); // expected-error{{not an integral constant…
141 static_assert(wrap_align_up(1, const_value(-2)), ""); // expected-error{{not an integral constant e…
143 static_assert(wrap_is_aligned(1, const_value(-3)), ""); // expected-error{{not an integral constant…
145 static_assert(wrap_align_down(1, const_value(17)), ""); // expected-error{{not an integral constant…
147 static_assert(wrap_align_up(1, const_value(18)), ""); // expected-error{{not an integral constant e…
149 static_assert(wrap_is_aligned(1, const_value(19)), ""); // expected-error{{not an integral constant…
153 static_assert(wrap_align_down(static_cast<short>(1), const_value(1 << 20)), ""); // expected-error{…
156 static_assert(wrap_align_up(static_cast<int>(1), const_value(1ull << 33)), ""); // expected-error{{…
158 static_assert(wrap_is_aligned(static_cast<char>(1), const_value(1 << 22)), ""); // expected-error{{…
162 static_assert(wrap_align_up(static_cast<bool>(1), const_value(1 << 21)), ""); // expected-error{{no…