File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed
libc/test/src/__support/FPUtil Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -25,27 +25,15 @@ template <typename T>
2525class ComparisonOperationsTest : public LIBC_NAMESPACE ::testing::FEnvSafeTest {
2626 DECLARE_SPECIAL_CONSTANTS (T)
2727
28- // TODO: Make these constexpr once quick_get_round is made constexpr.
29- T normal1;
30- T neg_normal1;
31- T normal2;
32- T small;
33- T neg_small;
34- T large;
35- T neg_large;
28+ static constexpr T normal1 = T(3.14 );
29+ static constexpr T neg_normal1 = T(-3.14 );
30+ static constexpr T normal2 = T(2.71 );
31+ static constexpr T small = T(0.1 );
32+ static constexpr T neg_small = T(-0.1 );
33+ static constexpr T large = T(10000.0 );
34+ static constexpr T neg_large = T(-10000.0 );
3635
3736public:
38- void SetUp () override {
39- with_fenv_preserved ([this ]() {
40- normal1 = T (3.14 );
41- neg_normal1 = T (-3.14 );
42- normal2 = T (2.71 );
43- small = T (0.1 );
44- neg_small = T (-0.1 );
45- large = T (10000.0 );
46- neg_large = T (-10000.0 );
47- });
48- }
4937
5038 void test_equals () {
5139 EXPECT_TRUE (equals (neg_zero, neg_zero));
You can’t perform that action at this time.
0 commit comments