From 9f962cd09803c82e6a8da7969ff0b2f2577d4171 Mon Sep 17 00:00:00 2001 From: hisi_opensource Date: Thu, 3 Aug 2023 09:06:02 +0000 Subject: [PATCH 1/2] update src/third_party/libm_port/__rem_pio2.c. Signed-off-by: hisi_opensource --- src/third_party/libm_port/__rem_pio2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/third_party/libm_port/__rem_pio2.c b/src/third_party/libm_port/__rem_pio2.c index e62399ce..8a62cbf3 100644 --- a/src/third_party/libm_port/__rem_pio2.c +++ b/src/third_party/libm_port/__rem_pio2.c @@ -41,7 +41,7 @@ pio2_2 = 6.07710050630396597660e-11, /* 0x3DD0B461, 0x1A600000 */ pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */ pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */ - +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ int __rem_pio2(double x, double *y) { -- Gitee From 961e8509bc7e55a65ec13de5d5aa4651d8728fa2 Mon Sep 17 00:00:00 2001 From: hisi_opensource Date: Tue, 20 Feb 2024 09:15:45 +0000 Subject: [PATCH 2/2] update src/third_party/libm_port/__rem_pio2.c. Signed-off-by: hisi_opensource --- src/third_party/libm_port/__rem_pio2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/third_party/libm_port/__rem_pio2.c b/src/third_party/libm_port/__rem_pio2.c index 8a62cbf3..01649dbd 100644 --- a/src/third_party/libm_port/__rem_pio2.c +++ b/src/third_party/libm_port/__rem_pio2.c @@ -42,6 +42,8 @@ pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */ pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */ // +// +// /* caller must handle the case when reduction is not needed: |x| ~<= pi/4 */ int __rem_pio2(double x, double *y) { -- Gitee