Lines Matching defs:TestValues
55 template <typename T> struct TestValues { struct
56 static constexpr T MIN = std::numeric_limits<T>::min();
57 static constexpr T MAX = std::numeric_limits<T>::max();
61 static constexpr T MID =
63 static constexpr T A = MID - (MAX - MID) / 3 * 2;
64 static constexpr T B = MID - (MAX - MID) / 3;
65 static constexpr T C = -B;
66 static constexpr T D = -A;
72 static constexpr T ClearLowBytes =
77 static constexpr T TruncZeroOf = ClearLowBytes<Value + 1, sizeof(Base)>;
80 static constexpr T XAAA = static_cast<T>(
83 static constexpr T XAAATruncZeroOf = TruncZeroOf<XAAA, Base>; // 0xAAAA'AB00
86 static constexpr T X555 = static_cast<T>(
89 static constexpr T X555TruncZeroOf = TruncZeroOf<X555, Base>; // 0x5555'5600
99 static constexpr T FromA = ClearLowBytes<XAAA, sizeof(T) - 1> + 42;
100 static constexpr T ToA = FromA + 2; // 0xAAAA'AA2C
102 static constexpr T FromB = ClearLowBytes<X555, sizeof(T) - 1> + 42;
103 static constexpr T ToB = FromB + 2; // 0x5555'552C