From dde3b1b226d9e858cbcd7ded67b0561d9e452ae7 Mon Sep 17 00:00:00 2001 From: geniusdo <2403644992@qq.com> Date: Thu, 11 Jul 2024 21:11:46 +0800 Subject: [PATCH] add rint and expm1 function to cmath from libm --- include/cxx/cmath | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cxx/cmath b/include/cxx/cmath index 589ff40ff9..6c4ac38c29 100644 --- a/include/cxx/cmath +++ b/include/cxx/cmath @@ -54,6 +54,7 @@ namespace std using ::cosf; using ::coshf; using ::expf; + using ::expm1f; using ::fabsf; using ::floorf; using ::fmodf; @@ -64,6 +65,7 @@ namespace std using ::log10f; using ::log2f; using ::modff; + using ::rintf; using ::roundf; using ::powf; using ::sinf; @@ -107,6 +109,7 @@ namespace std using ::cos; using ::cosh; using ::exp; + using ::expm1f; using ::fabs; using ::floor; using ::fmod; @@ -117,6 +120,7 @@ namespace std using ::log10; using ::log2; using ::modf; + using ::rint; using ::round; using ::pow; using ::sin;