As long double is the same size as double on arm/arm64, just redirect
these functions to the normal unsuffixed version.

Signed-off-by: Martin Storsjö <[email protected]>
---
 .../lib-common/api-ms-win-crt-math-l1-1-0.def.in       | 10 ++++++++++
 mingw-w64-crt/lib-common/msvcrt.def.in                 | 10 ++++++++++
 mingw-w64-crt/lib-common/ucrtbase.def.in               | 10 ++++++++++
 3 files changed, 30 insertions(+)

diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-math-l1-1-0.def.in 
b/mingw-w64-crt/lib-common/api-ms-win-crt-math-l1-1-0.def.in
index 88ac7cbbe..a7f339344 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-crt-math-l1-1-0.def.in
+++ b/mingw-w64-crt/lib-common/api-ms-win-crt-math-l1-1-0.def.in
@@ -149,18 +149,22 @@ _yn
 yn == _yn
 acos
 F_NON_I386(acosf F_X86_ANY(DATA))
+F_ARM_ANY(acosl == acos)
 acosh
 acoshf
 acoshl
 asin
 F_NON_I386(asinf F_X86_ANY(DATA))
+F_ARM_ANY(asinl == asin)
 asinh
 asinhf
 asinhl
 atan
 atan2 F_X86_ANY(DATA)
 F_NON_I386(atan2f F_X86_ANY(DATA))
+F_ARM_ANY(atan2l == atan2)
 F_NON_I386(atanf F_X86_ANY(DATA))
+F_ARM_ANY(atanl == atan)
 atanh
 atanhf
 atanhl
@@ -220,6 +224,7 @@ copysignf
 copysignl
 cos F_X86_ANY(DATA)
 F_NON_I386(cosf F_X86_ANY(DATA))
+F_ARM_ANY(cosl == cos)
 cosh
 F_NON_I386(coshf DATA)
 cpow
@@ -257,6 +262,7 @@ exp2
 exp2f
 exp2l
 F_NON_I386(expf F_X86_ANY(DATA))
+F_ARM_ANY(expl == exp)
 expm1
 expm1f
 expm1l
@@ -298,6 +304,7 @@ llroundl
 log F_X86_ANY(DATA)
 log10
 F_NON_I386(log10f F_X86_ANY(DATA))
+F_ARM_ANY(log10l == log10)
 log1p
 log1pf
 log1pl
@@ -308,6 +315,7 @@ logb
 logbf
 logbl
 F_NON_I386(logf F_X86_ANY(DATA))
+F_ARM_ANY(logl == log)
 lrint
 lrintf
 lrintl
@@ -354,6 +362,7 @@ scalbnf
 scalbnl
 sin F_X86_ANY(DATA)
 F_NON_I386(sinf F_X86_ANY(DATA))
+F_ARM_ANY(sinl == sin)
 ; if we implement sinh, we can set it DATA only.
 sinh
 F_NON_I386(sinhf DATA)
@@ -361,6 +370,7 @@ sqrt DATA
 F_NON_I386(sqrtf DATA)
 tan
 F_NON_I386(tanf F_X86_ANY(DATA))
+F_ARM_ANY(tanl == tan)
 ; if we implement tanh, we can set it to DATA only.
 tanh
 F_NON_I386(tanhf)
diff --git a/mingw-w64-crt/lib-common/msvcrt.def.in 
b/mingw-w64-crt/lib-common/msvcrt.def.in
index d9994be90..e56caf95a 100644
--- a/mingw-w64-crt/lib-common/msvcrt.def.in
+++ b/mingw-w64-crt/lib-common/msvcrt.def.in
@@ -1309,14 +1309,18 @@ abort
 abs
 acos
 F_NON_I386(acosf F_X86_ANY(DATA))
+F_ARM_ANY(acosl == acos)
 asctime
 ; asctime_s replaced by emu
 asin
 F_NON_I386(asinf F_X86_ANY(DATA))
+F_ARM_ANY(asinl == asin)
 atan
 atan2 F_X86_ANY(DATA)
 F_NON_I386(atan2f F_X86_ANY(DATA))
+F_ARM_ANY(atan2l == atan2)
 F_NON_I386(atanf F_X86_ANY(DATA))
+F_ARM_ANY(atanl == atan)
 atexit DATA
 atof
 atoi
@@ -1333,6 +1337,7 @@ clearerr_s
 clock
 cos F_X86_ANY(DATA)
 F_NON_I386(cosf F_X86_ANY(DATA))
+F_ARM_ANY(cosl == cos)
 cosh
 F_NON_I386(coshf DATA)
 ctime
@@ -1341,6 +1346,7 @@ div
 exit
 exp F_X86_ANY(DATA)
 F_NON_I386(expf F_X86_ANY(DATA))
+F_ARM_ANY(expl == exp)
 fabs DATA
 F_ARM_ANY(fabsf)
 fclose
@@ -1424,7 +1430,9 @@ localtime
 log F_X86_ANY(DATA)
 log10
 F_NON_I386(log10f F_X86_ANY(DATA))
+F_ARM_ANY(log10l == log10)
 F_NON_I386(logf F_X86_ANY(DATA))
+F_ARM_ANY(logl == log)
 malloc
 mblen
 F_ARM_ANY(mbrlen)
@@ -1474,6 +1482,7 @@ setvbuf
 signal
 sin F_X86_ANY(DATA)
 F_NON_I386(sinf F_X86_ANY(DATA))
+F_ARM_ANY(sinl == sin)
 ; if we implement sinh, we can set it DATA only.
 sinh
 F_NON_I386(sinhf DATA)
@@ -1519,6 +1528,7 @@ swscanf_s
 system
 tan
 F_NON_I386(tanf F_X86_ANY(DATA))
+F_ARM_ANY(tanl == tan)
 ; if we implement tanh, we can set it to DATA only.
 tanh
 F_ARM_ANY(tanhf)
diff --git a/mingw-w64-crt/lib-common/ucrtbase.def.in 
b/mingw-w64-crt/lib-common/ucrtbase.def.in
index ab098acd2..1c19f0975 100644
--- a/mingw-w64-crt/lib-common/ucrtbase.def.in
+++ b/mingw-w64-crt/lib-common/ucrtbase.def.in
@@ -2181,6 +2181,7 @@ abort
 abs
 acos
 F_NON_I386(acosf F_X86_ANY(DATA))
+F_ARM_ANY(acosl == acos)
 acosh
 acoshf
 acoshl
@@ -2188,13 +2189,16 @@ asctime
 asctime_s
 asin
 F_NON_I386(asinf F_X86_ANY(DATA))
+F_ARM_ANY(asinl == asin)
 asinh
 asinhf
 asinhl
 atan
 atan2 F_X86_ANY(DATA)
 F_NON_I386(atan2f F_X86_ANY(DATA))
+F_ARM_ANY(atan2l == atan2)
 F_NON_I386(atanf F_X86_ANY(DATA))
+F_ARM_ANY(atanl == atan)
 atanh
 atanhf
 atanhl
@@ -2267,6 +2271,7 @@ copysignf
 copysignl
 cos F_X86_ANY(DATA)
 F_NON_I386(cosf F_X86_ANY(DATA))
+F_ARM_ANY(cosl == cos)
 cosh
 F_NON_I386(coshf DATA)
 cpow
@@ -2306,6 +2311,7 @@ exp2
 exp2f
 exp2l
 F_NON_I386(expf F_X86_ANY(DATA))
+F_ARM_ANY(expl == exp)
 expm1
 expm1f
 expm1l
@@ -2423,6 +2429,7 @@ localeconv
 log F_X86_ANY(DATA)
 log10
 F_NON_I386(log10f F_X86_ANY(DATA))
+F_ARM_ANY(log10l == log10)
 log1p
 log1pf
 log1pl
@@ -2433,6 +2440,7 @@ logb
 logbf
 logbl
 F_NON_I386(logf F_X86_ANY(DATA))
+F_ARM_ANY(logl == log)
 lrint
 lrintf
 lrintl
@@ -2520,6 +2528,7 @@ setvbuf
 signal
 sin F_X86_ANY(DATA)
 F_NON_I386(sinf F_X86_ANY(DATA))
+F_ARM_ANY(sinl == sin)
 ; if we implement sinh, we can set it DATA only.
 sinh
 F_NON_I386(sinhf DATA)
@@ -2564,6 +2573,7 @@ strxfrm
 system
 tan
 F_NON_I386(tanf F_X86_ANY(DATA))
+F_ARM_ANY(tanl == tan)
 ; if we implement tanh, we can set it to DATA only.
 tanh
 F_NON_I386(tanhf)
-- 
2.17.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to