File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ class ConjTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
7070 CFPT (121.121 - zero * 1 .0i));
7171 EXPECT_CFP_EQ (func (CFPT (0.0 - 0 .0i)), CFPT (0.0 + 0 .0i));
7272 EXPECT_CFP_EQ (func (CFPT (0.0 + 0 .0i)), CFPT (0.0 - 0 .0i));
73- // This test passes because the conjugate of -0.0 - 0.0i is -0.0 + 0.0i
74- // but -0.0 + 0.0i is actually CMPLX(-0.0, 0.0) + CMPLX(0.0, 0.0) = 0.0 +
75- // 0.0i so to represent -0.0 + 0.0i, we just write -0.0
73+ // This test passes because the conjugate of -0.0 - 0.0i is CMPLX(-0.0, 0.0)
74+ // which cannot be represented as -0.0 + 0.0i because -0.0 + 0.0i is actually
75+ // CMPLX(-0.0, 0.0) + CMPLX(0.0, 0.0) = 0.0 + 0.0i so to represent
76+ // CMPLX(-0.0, 0.0), we use -0.0
7677 EXPECT_CFP_EQ (func (CFPT (-0.0 - 0 .0i)), CFPT (-0.0 ));
7778 // This test passes because -0.0 + 0.0i is actually
7879 // CMPLX(-0.0, 0.0) + CMPLX(0.0, 0.0) = CMPLX(-0.0 + 0.0, 0.0) = 0.0 + 0.0i
You can’t perform that action at this time.
0 commit comments