On Mon, 31 Mar 2025, Jacek Caban wrote:

---
mingw-w64-crt/Makefile.am                     | 10 ++++++----
.../math/{arm64/exp2f.S => arm-common/exp2.c} | 16 ++++++----------
.../math/{arm/exp2f.S => arm-common/exp2f.c}  | 16 ++++++----------
mingw-w64-crt/math/arm-common/exp2l.c         | 12 ++++++++++++
mingw-w64-crt/math/arm/exp2.S                 | 19 -------------------
mingw-w64-crt/math/arm64/exp2.S               | 19 -------------------
6 files changed, 30 insertions(+), 62 deletions(-)
rename mingw-w64-crt/math/{arm64/exp2f.S => arm-common/exp2.c} (51%)
rename mingw-w64-crt/math/{arm/exp2f.S => arm-common/exp2f.c} (51%)
create mode 100644 mingw-w64-crt/math/arm-common/exp2l.c
delete mode 100644 mingw-w64-crt/math/arm/exp2.S
delete mode 100644 mingw-w64-crt/math/arm64/exp2.S

diff --git a/mingw-w64-crt/math/arm-common/exp2l.c 
b/mingw-w64-crt/math/arm-common/exp2l.c
new file mode 100644
index 000000000..49eb6204c
--- /dev/null
+++ b/mingw-w64-crt/math/arm-common/exp2l.c
@@ -0,0 +1,12 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#include <math.h>
+
+long double exp2l(long double x)
+{
+    return pow(2.0, x);
+}

Should this use powl() for consistency? Even if it will be the same in these cases anyway.

Other than that, this looks good, thanks!

// Martin



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to