Please review, i'll commit it, just need an OK.
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 7a945e9..c4aec7d 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -226,10 +226,8 @@ src_libmingwex=\
math/internal_logl.S math/log10l.S \
math/nearbyint.S math/nearbyintf.S math/nearbyintl.S \
math/remquo.S math/remquof.S math/remquol.S \
- math/sinl_internal.S math/tanl.S math/trunc.S math/truncf.S \
- math/acosl.c \
- math/asinl.c math/atan2l.c \
- math/atanl.c math/cbrt.c \
+ math/sinl_internal.S math/trunc.S math/truncf.S \
+ math/cbrt.c \
math/cbrtf.c math/cbrtl.c math/cephes_emath.c math/copysign.c math/copysignf.c \
math/coshf.c math/coshl.c math/cosl.c math/erfl.c \
math/expf.c \
@@ -296,46 +294,50 @@ src_libmingwex=\
# these only go into the 64 bit version:
src_libmingwex64=\
- math/acosf.c math/acosh.c math/acoshf.c math/acoshl.c math/asinf.c \
- math/asinh.c math/asinhf.c math/asinhl.c math/atan2f.c math/atanf.c \
- math/atanh.c math/atanhf.c math/atanhl.c math/cos.c math/cosf.c \
- math/cossin.c math/exp.c math/expl.c math/exp2.S math/exp2f.S \
- math/exp2l.S math/expm1.c math/expm1f.c math/expm1l.c math/fmod.c \
- math/fmodf.c math/fmodl.c math/ilogb.S math/ilogbf.S math/ilogbl.S \
- math/ldexp.c math/ldexpl.c math/log1p.S math/log1pf.S math/log1pl.S \
- math/log2.S math/log2f.S math/log2l.S math/logb.c math/logbf.c \
- math/logbl.c math/pow.c math/powl.c math/remainder.S math/remainderf.S \
- math/remainderl.S math/scalbn.S math/scalbnf.S math/scalbnl.S math/sin.c \
- math/sinf.c math/tanf.c
+ math/acosf.c math/acosh.c math/acosl.c math/acoshf.c math/acoshl.c \
+ math/asinf.c math/asinh.c math/asinl.c math/asinhf.c math/asinhl.c \
+ math/atan2f.c math/atan2l.c math/atanf.c math/atanh.c math/atanl.c \
+ math/atanhf.c math/atanhl.c math/cos.c math/cosf.c math/cossin.c \
+ math/exp.c math/expl.c math/exp2.S math/exp2f.S math/exp2l.S \
+ math/expm1.c math/expm1f.c math/expm1l.c math/fmod.c math/fmodf.c \
+ math/fmodl.c math/ilogb.S math/ilogbf.S math/ilogbl.S math/ldexp.c \
+ math/ldexpl.c math/log1p.S math/log1pf.S math/log1pl.S math/log2.S \
+ math/log2f.S math/log2l.S math/logb.c math/logbf.c math/logbl.c \
+ math/pow.c math/powl.c math/remainder.S math/remainderf.S math/remainderl.S \
+ math/scalbn.S math/scalbnf.S math/scalbnl.S math/sin.c math/sinf.c \
+ math/tanf.c math/tanl.S
# these only go into the 32 bit version:
src_libmingwex32=\
- math/acosf.c math/acosh.c math/acoshf.c math/acoshl.c math/asinf.c \
- math/asinh.c math/asinhf.c math/asinhl.c math/atan2f.c math/atanf.c \
- math/atanh.c math/atanhf.c math/atanhl.c math/cos.c math/cosf.c \
- math/cossin.c math/exp.c math/expl.c math/exp2.S math/exp2f.S \
- math/exp2l.S math/expm1.c math/expm1f.c math/expm1l.c math/fmod.c \
- math/fmodf.c math/fmodl.c math/ilogb.S math/ilogbf.S math/ilogbl.S \
- math/ldexp.c math/ldexpl.c math/log1p.S math/log1pf.S math/log1pl.S \
- math/log2.S math/log2f.S math/log2l.S math/logb.c math/logbf.c \
- math/logbl.c math/pow.c math/powl.c math/remainder.S math/remainderf.S \
- math/remainderl.S math/scalbn.S math/scalbnf.S math/scalbnl.S math/sin.c \
- math/sinf.c math/tanf.c
+ math/acosf.c math/acosh.c math/acosl.c math/acoshf.c math/acoshl.c \
+ math/asinf.c math/asinh.c math/asinl.c math/asinhf.c math/asinhl.c \
+ math/atan2f.c math/atan2l.c math/atanf.c math/atanh.c math/atanl.c \
+ math/atanhf.c math/atanhl.c math/cos.c math/cosf.c math/cossin.c \
+ math/exp.c math/expl.c math/exp2.S math/exp2f.S math/exp2l.S \
+ math/expm1.c math/expm1f.c math/expm1l.c math/fmod.c math/fmodf.c \
+ math/fmodl.c math/ilogb.S math/ilogbf.S math/ilogbl.S math/ldexp.c \
+ math/ldexpl.c math/log1p.S math/log1pf.S math/log1pl.S math/log2.S \
+ math/log2f.S math/log2l.S math/logb.c math/logbf.c math/logbl.c \
+ math/pow.c math/powl.c math/remainder.S math/remainderf.S math/remainderl.S \
+ math/scalbn.S math/scalbnf.S math/scalbnl.S math/sin.c math/sinf.c \
+ math/tanf.c math/tanl.S
# these only go into the ARM32 version:
src_libmingwexarm32=\
math/softmath/e_fmod.c math/softmath/e_fmodf.c math/softmath/e_powf.c \
- math/softmath/acosf.c math/softmath/acosh.c math/softmath/acoshf.c math/softmath/acoshl.c math/softmath/asinf.c \
- math/softmath/asinh.c math/softmath/asinhf.c math/softmath/asinhl.c math/softmath/atan2f.c math/softmath/atanf.c \
- math/softmath/atanh.c math/softmath/atanhf.c math/softmath/atanhl.c math/softmath/cos.c math/softmath/cosf.c \
- math/softmath/exp.c math/softmath/expl.c math/softmath/exp2.c math/softmath/exp2f.c math/softmath/exp2l.c \
- math/softmath/expm1.c math/softmath/expm1f.c math/softmath/expm1l.c math/softmath/fmod.c math/softmath/fmodf.c \
- math/softmath/fmodl.c math/softmath/ilogb.c math/softmath/ilogbf.c math/softmath/ilogbl.c math/softmath/ldexp.c \
- math/softmath/ldexpl.c math/softmath/log1p.c math/softmath/log1pf.c math/softmath/log1pl.c math/softmath/log2.c \
- math/softmath/log2f.c math/softmath/log2l.c math/softmath/logb.c math/softmath/logbf.c math/softmath/logbl.c \
- math/softmath/pow.c math/softmath/powl.c math/softmath/remainder.c math/softmath/remainderf.c math/softmath/remainderl.c \
+ math/softmath/acosf.c math/softmath/acosh.c math/softmath/acosl.c math/softmath/acoshf.c math/softmath/acoshl.c \
+ math/softmath/asinf.c math/softmath/asinh.c math/softmath/asinl.c math/softmath/asinhf.c math/softmath/asinhl.c \
+ math/softmath/atan2f.c math/softmath/atan2l.c math/softmath/atanf.c math/softmath/atanh.c math/softmath/atanl.c \
+ math/softmath/atanhf.c math/softmath/atanhl.c math/softmath/cos.c math/softmath/cosf.c math/softmath/exp.c \
+ math/softmath/expl.c math/softmath/exp2.c math/softmath/exp2f.c math/softmath/exp2l.c math/softmath/expm1.c \
+ math/softmath/expm1f.c math/softmath/expm1l.c math/softmath/fmod.c math/softmath/fmodf.c math/softmath/fmodl.c \
+ math/softmath/ilogb.c math/softmath/ilogbf.c math/softmath/ilogbl.c math/softmath/ldexp.c math/softmath/ldexpl.c \
+ math/softmath/log1p.c math/softmath/log1pf.c math/softmath/log1pl.c math/softmath/log2.c math/softmath/log2f.c \
+ math/softmath/log2l.c math/softmath/logb.c math/softmath/logbf.c math/softmath/logbl.c math/softmath/pow.c \
+ math/softmath/powl.c \
+ math/softmath/remainder.c math/softmath/remainderf.c math/softmath/remainderl.c \
math/softmath/scalbn.c math/softmath/scalbnf.c math/softmath/scalbnl.c math/softmath/sin.c math/softmath/sincos.c \
- math/softmath/sincosf.c math/softmath/sincosl.c math/softmath/sinf.c math/softmath/tanf.c
+ math/softmath/sincosf.c math/softmath/sincosl.c math/softmath/sinf.c math/softmath/tanf.c math/softmath/tanl.c
# These intrinsics are target independent:
diff --git a/mingw-w64-crt/math/softmath/acosl.c b/mingw-w64-crt/math/softmath/acosl.c
new file mode 100644
index 0000000..9b90f01
--- /dev/null
+++ b/mingw-w64-crt/math/softmath/acosl.c
@@ -0,0 +1,57 @@
+/*
+ This Software is provided under the Zope Public License (ZPL) Version 2.1.
+
+ Copyright (c) 2014 by the mingw-w64 project
+
+ See the AUTHORS file for the list of contributors to the mingw-w64 project.
+
+ This license has been certified as open source. It has also been designated
+ as GPL compatible by the Free Software Foundation (FSF).
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission
+ from the copyright holders.
+ 4. The right to distribute this software or to use it for any purpose does
+ not give you the right to use Servicemarks (sm) or Trademarks (tm) of
+ the copyright holders. Use of them is covered by separate agreement
+ with the copyright holders.
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of
+ any change.
+
+ Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "softmath_private.h"
+
+long double acosl(long double x)
+{
+#if defined(__arm__) || defined(_ARM_)
+ if (x > 1.0 || x < -1.0)
+ return NAN;
+
+ return M_PI_2 - asinl(x);
+#else
+#error Not supported on your platform yet
+#endif
+}
diff --git a/mingw-w64-crt/math/softmath/asinl.c b/mingw-w64-crt/math/softmath/asinl.c
new file mode 100644
index 0000000..68b3301
--- /dev/null
+++ b/mingw-w64-crt/math/softmath/asinl.c
@@ -0,0 +1,70 @@
+/*
+ This Software is provided under the Zope Public License (ZPL) Version 2.1.
+
+ Copyright (c) 2014 by the mingw-w64 project
+
+ See the AUTHORS file for the list of contributors to the mingw-w64 project.
+
+ This license has been certified as open source. It has also been designated
+ as GPL compatible by the Free Software Foundation (FSF).
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission
+ from the copyright holders.
+ 4. The right to distribute this software or to use it for any purpose does
+ not give you the right to use Servicemarks (sm) or Trademarks (tm) of
+ the copyright holders. Use of them is covered by separate agreement
+ with the copyright holders.
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of
+ any change.
+
+ Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "softmath_private.h"
+
+long double asinl(long double x)
+{
+#if defined(__arm__) || defined(_ARM_)
+ double result = 0.0;
+ int n, aprox = 12;
+
+ if (x > 1.0 || x < -1.0)
+ return NAN;
+
+ if (x > 0.95) aprox *= 8;
+ else if (x > 0.9) aprox *= 4;
+ else if (x > 0.8) aprox *= 2;
+
+ for(n = 0; n < aprox; n++)
+ {
+ double n2ff = bsd__ieee754_pow(2, n) * softmath_fact(n);
+ result += (softmath_fact(2 * n) / (n2ff * n2ff)) * (bsd__ieee754_pow(x, ((2 * n) + 1)) / ((2 * n) + 1));
+ }
+
+ return result;
+#else
+#error Not supported on your platform yet
+#endif
+}
diff --git a/mingw-w64-crt/math/softmath/atan2l.c b/mingw-w64-crt/math/softmath/atan2l.c
new file mode 100644
index 0000000..a3b3ce4
--- /dev/null
+++ b/mingw-w64-crt/math/softmath/atan2l.c
@@ -0,0 +1,54 @@
+/*
+ This Software is provided under the Zope Public License (ZPL) Version 2.1.
+
+ Copyright (c) 2014 by the mingw-w64 project
+
+ See the AUTHORS file for the list of contributors to the mingw-w64 project.
+
+ This license has been certified as open source. It has also been designated
+ as GPL compatible by the Free Software Foundation (FSF).
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission
+ from the copyright holders.
+ 4. The right to distribute this software or to use it for any purpose does
+ not give you the right to use Servicemarks (sm) or Trademarks (tm) of
+ the copyright holders. Use of them is covered by separate agreement
+ with the copyright holders.
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of
+ any change.
+
+ Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "softmath_private.h"
+
+long double atan2l(long double y, long double x)
+{
+#if defined(__arm__) || defined(_ARM_)
+ return atanl(y / x);
+#else
+#error Not supported on your platform yet
+#endif
+}
diff --git a/mingw-w64-crt/math/softmath/atanl.c b/mingw-w64-crt/math/softmath/atanl.c
new file mode 100644
index 0000000..fc71569
--- /dev/null
+++ b/mingw-w64-crt/math/softmath/atanl.c
@@ -0,0 +1,60 @@
+/*
+ This Software is provided under the Zope Public License (ZPL) Version 2.1.
+
+ Copyright (c) 2014 by the mingw-w64 project
+
+ See the AUTHORS file for the list of contributors to the mingw-w64 project.
+
+ This license has been certified as open source. It has also been designated
+ as GPL compatible by the Free Software Foundation (FSF).
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission
+ from the copyright holders.
+ 4. The right to distribute this software or to use it for any purpose does
+ not give you the right to use Servicemarks (sm) or Trademarks (tm) of
+ the copyright holders. Use of them is covered by separate agreement
+ with the copyright holders.
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of
+ any change.
+
+ Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "softmath_private.h"
+
+long double atanl(long double x)
+{
+#if defined(__arm__) || defined(_ARM_)
+ if (x < -1.0)
+ return -1 * M_PI_2 - x / (0.28 + x * x);
+ else if (x > -1.0 && x < 1.0)
+ return x / (1.0 + 0.28 * x * x);
+ else if (x > 1.0)
+ return M_PI_2 - x / (0.28 + x * x);
+ return NAN;
+#else
+#error Not supported on your platform yet
+#endif
+}
diff --git a/mingw-w64-crt/math/softmath/tanl.c b/mingw-w64-crt/math/softmath/tanl.c
new file mode 100644
index 0000000..dd2737c
--- /dev/null
+++ b/mingw-w64-crt/math/softmath/tanl.c
@@ -0,0 +1,54 @@
+/*
+ This Software is provided under the Zope Public License (ZPL) Version 2.1.
+
+ Copyright (c) 2014 by the mingw-w64 project
+
+ See the AUTHORS file for the list of contributors to the mingw-w64 project.
+
+ This license has been certified as open source. It has also been designated
+ as GPL compatible by the Free Software Foundation (FSF).
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions in source code must retain the accompanying copyright
+ notice, this list of conditions, and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the accompanying
+ copyright notice, this list of conditions, and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+ 3. Names of the copyright holders must not be used to endorse or promote
+ products derived from this software without prior written permission
+ from the copyright holders.
+ 4. The right to distribute this software or to use it for any purpose does
+ not give you the right to use Servicemarks (sm) or Trademarks (tm) of
+ the copyright holders. Use of them is covered by separate agreement
+ with the copyright holders.
+ 5. If any files are modified, you must cause the modified files to carry
+ prominent notices stating that you changed the files and the date of
+ any change.
+
+ Disclaimer
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "softmath_private.h"
+
+long double tanl(long double x)
+{
+#if defined(__arm__) || defined(_ARM_)
+ return sin(x) / cos(x);
+#else
+#error Not supported on your platform yet
+#endif
+}
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public