File tree Expand file tree Collapse file tree 1 file changed +7
-20
lines changed
libc/test/src/__support/FPUtil Expand file tree Collapse file tree 1 file changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -25,28 +25,15 @@ template <typename T>
25
25
class ComparisonOperationsTest : public LIBC_NAMESPACE ::testing::FEnvSafeTest {
26
26
DECLARE_SPECIAL_CONSTANTS (T)
27
27
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 );
36
35
37
36
public:
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
- }
49
-
50
37
void test_equals () {
51
38
EXPECT_TRUE (equals (neg_zero, neg_zero));
52
39
EXPECT_TRUE (equals (zero, neg_zero));
You can’t perform that action at this time.
0 commit comments