| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Fix implicit conversion warnings in tests. (#131362) | 1 年前 | |
[libc][complex] Testing infra for MPC (#121261) This PR aims to add the groundwork to test the precision of libc complex functions against MPC. I took cargf as a test to verify that the infra works fine. | 1 年前 | |
[libc] Fix implicit conversion warnings in tests. (#131362) | 1 年前 | |
[libc][complex] Implement different flavors of the conj function (#118671) Refer section 7.3.9.4 of ISO/IEC 9899:2023 | 1 年前 | |
[libc][complex] Implement different flavors of the cproj function (#119722) Refer section 7.3.9.5 of ISO/IEC 9899:2023 | 1 年前 | |
[libc][complex] implement different flavors of creal and cimag functions (#113300) I have commented out the test for neg_zero(creal) because : 1. real(neg_zero + 0.0i) equals zero. 2. real(neg_zero - 0.0i) equals neg_zero. I am not sure if this is the intended behaviour. [EDIT] I have updated tests for neg_zero (creal) to be : EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero); EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero); because all three [gcc, clang and GNU MPC] also give the same result. https://godbolt.org/z/hxhcn6aof and it seems that it is indeed the correct behaviour since Imaginary types are not supported yet, refer #113671 | 1 年前 | |
| 1 年前 | ||
| 1 年前 | ||
[libc][complex] implement different flavors of creal and cimag functions (#113300) I have commented out the test for neg_zero(creal) because : 1. real(neg_zero + 0.0i) equals zero. 2. real(neg_zero - 0.0i) equals neg_zero. I am not sure if this is the intended behaviour. [EDIT] I have updated tests for neg_zero (creal) to be : EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero); EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero); because all three [gcc, clang and GNU MPC] also give the same result. https://godbolt.org/z/hxhcn6aof and it seems that it is indeed the correct behaviour since Imaginary types are not supported yet, refer #113671 | 1 年前 | |
[libc][complex] implement different flavors of creal and cimag functions (#113300) I have commented out the test for neg_zero(creal) because : 1. real(neg_zero + 0.0i) equals zero. 2. real(neg_zero - 0.0i) equals neg_zero. I am not sure if this is the intended behaviour. [EDIT] I have updated tests for neg_zero (creal) to be : EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero); EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero); because all three [gcc, clang and GNU MPC] also give the same result. https://godbolt.org/z/hxhcn6aof and it seems that it is indeed the correct behaviour since Imaginary types are not supported yet, refer #113671 | 1 年前 | |
[libc][complex] Implement different flavors of the conj function (#118671) Refer section 7.3.9.4 of ISO/IEC 9899:2023 | 1 年前 | |
| 1 年前 | ||
| 1 年前 | ||
[libc][complex] Implement different flavors of the conj function (#118671) Refer section 7.3.9.4 of ISO/IEC 9899:2023 | 1 年前 | |
[libc][complex] Implement different flavors of the conj function (#118671) Refer section 7.3.9.4 of ISO/IEC 9899:2023 | 1 年前 | |
[libc][complex] Implement different flavors of the cproj function (#119722) Refer section 7.3.9.5 of ISO/IEC 9899:2023 | 1 年前 | |
| 1 年前 | ||
| 1 年前 | ||
[libc][complex] Testing infra for MPC (#121261) This PR aims to add the groundwork to test the precision of libc complex functions against MPC. I took cargf as a test to verify that the infra works fine. | 1 年前 | |
[libc][complex] Implement different flavors of the cproj function (#119722) Refer section 7.3.9.5 of ISO/IEC 9899:2023 | 1 年前 | |
[libc][complex] implement different flavors of creal and cimag functions (#113300) I have commented out the test for neg_zero(creal) because : 1. real(neg_zero + 0.0i) equals zero. 2. real(neg_zero - 0.0i) equals neg_zero. I am not sure if this is the intended behaviour. [EDIT] I have updated tests for neg_zero (creal) to be : EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero); EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero); because all three [gcc, clang and GNU MPC] also give the same result. https://godbolt.org/z/hxhcn6aof and it seems that it is indeed the correct behaviour since Imaginary types are not supported yet, refer #113671 | 1 年前 | |
| 1 年前 | ||
| 1 年前 | ||
[libc][complex] implement different flavors of creal and cimag functions (#113300) I have commented out the test for neg_zero(creal) because : 1. real(neg_zero + 0.0i) equals zero. 2. real(neg_zero - 0.0i) equals neg_zero. I am not sure if this is the intended behaviour. [EDIT] I have updated tests for neg_zero (creal) to be : EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero); EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero); because all three [gcc, clang and GNU MPC] also give the same result. https://godbolt.org/z/hxhcn6aof and it seems that it is indeed the correct behaviour since Imaginary types are not supported yet, refer #113671 | 1 年前 | |
[libc][complex] implement different flavors of creal and cimag functions (#113300) I have commented out the test for neg_zero(creal) because : 1. real(neg_zero + 0.0i) equals zero. 2. real(neg_zero - 0.0i) equals neg_zero. I am not sure if this is the intended behaviour. [EDIT] I have updated tests for neg_zero (creal) to be : EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero); EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero); because all three [gcc, clang and GNU MPC] also give the same result. https://godbolt.org/z/hxhcn6aof and it seems that it is indeed the correct behaviour since Imaginary types are not supported yet, refer #113671 | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |