softmath: Add cos
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index b235e26..5aa690c 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -230,7 +230,7 @@
   math/acoshl.c         math/acosl.c       \
   math/asinhl.c         math/asinl.c       math/atan2l.c         \
   math/atanhl.c         math/atanl.c       math/cbrt.c           \
-  math/cbrtf.c          math/cbrtl.c       math/cephes_emath.c   math/copysign.c      math/copysignf.c     math/cos.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/cossin.c        math/erfl.c          \
   math/expf.c           math/expl.c        math/expm1l.c         \
   math/fabs.c           math/fabsf.c       math/fabsl.c          math/fdim.c          math/fdimf.c         math/fdiml.c         \
@@ -298,32 +298,32 @@
 src_libmingwex64=\
   math/acosf.c              math/acosh.c              math/acoshf.c             math/asinf.c              math/asinh.c              \
   math/asinhf.c             math/atan2f.c             math/atanf.c              math/atanh.c              math/atanhf.c             \
-  math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              math/expm1.c              \
-  math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              math/ilogbf.S             \
-  math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              math/logb.c               \
-  math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                math/sinf.c               \
-  math/tanf.c
+  math/cos.c                math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              \
+  math/expm1.c              math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              \
+  math/ilogbf.S             math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              \
+  math/logb.c               math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                \
+  math/sinf.c               math/tanf.c
 
 # these only go into the 32 bit version:
 src_libmingwex32=\
   math/acosf.c              math/acosh.c              math/acoshf.c             math/asinf.c              math/asinh.c              \
   math/asinhf.c             math/atan2f.c             math/atanf.c              math/atanh.c              math/atanhf.c             \
-  math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              math/expm1.c              \
-  math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              math/ilogbf.S             \
-  math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              math/logb.c               \
-  math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                math/sinf.c               \
-  math/tanf.c
+  math/cos.c                math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              \
+  math/expm1.c              math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              \
+  math/ilogbf.S             math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              \
+  math/logb.c               math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                \
+  math/sinf.c               math/tanf.c
 
 # 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/asinf.c     math/softmath/asinh.c     \
   math/softmath/asinhf.c    math/softmath/atan2f.c    math/softmath/atanf.c     math/softmath/atanh.c     math/softmath/atanhf.c    \
-  math/softmath/cosf.c      math/softmath/exp.c       math/softmath/exp2.c      math/softmath/exp2f.c     math/softmath/expm1.c     \
-  math/softmath/expm1f.c    math/softmath/fmod.c      math/softmath/fmodf.c     math/softmath/ilogb.c     math/softmath/ilogbf.c    \
-  math/softmath/log1p.c     math/softmath/log1pf.c    math/softmath/log2.c      math/softmath/log2f.c     math/softmath/logb.c      \
-  math/softmath/logbf.c     math/softmath/scalbn.c    math/softmath/scalbnf.c   math/softmath/sin.c       math/softmath/sinf.c      \
-  math/softmath/tanf.c
+  math/softmath/cos.c       math/softmath/cosf.c      math/softmath/exp.c       math/softmath/exp2.c      math/softmath/exp2f.c     \
+  math/softmath/expm1.c     math/softmath/expm1f.c    math/softmath/fmod.c      math/softmath/fmodf.c     math/softmath/ilogb.c     \
+  math/softmath/ilogbf.c    math/softmath/log1p.c     math/softmath/log1pf.c    math/softmath/log2.c      math/softmath/log2f.c     \
+  math/softmath/logb.c      math/softmath/logbf.c     math/softmath/scalbn.c    math/softmath/scalbnf.c   math/softmath/sin.c       \
+  math/softmath/sinf.c      math/softmath/tanf.c
 
 
 # These intrinsics are target independent:
diff --git a/mingw-w64-crt/Makefile.in b/mingw-w64-crt/Makefile.in
index adad66f..6d43777 100644
--- a/mingw-w64-crt/Makefile.in
+++ b/mingw-w64-crt/Makefile.in
@@ -582,8 +582,8 @@
 	math/acoshl.c math/acosl.c math/asinhl.c math/asinl.c \
 	math/atan2l.c math/atanhl.c math/atanl.c math/cbrt.c \
 	math/cbrtf.c math/cbrtl.c math/cephes_emath.c math/copysign.c \
-	math/copysignf.c math/cos.c math/coshf.c math/coshl.c \
-	math/cosl.c math/cossin.c math/erfl.c math/expf.c math/expl.c \
+	math/copysignf.c math/coshf.c math/coshl.c math/cosl.c \
+	math/cossin.c math/erfl.c math/expf.c math/expl.c \
 	math/expm1l.c math/fabs.c math/fabsf.c math/fabsl.c \
 	math/fdim.c math/fdimf.c math/fdiml.c math/fmal.c math/fmax.c \
 	math/fmaxf.c math/fmaxl.c math/fmin.c math/fminf.c \
@@ -669,17 +669,17 @@
 	stdio/mingw_vasprintf.c math/acosf.c math/acosh.c \
 	math/acoshf.c math/asinf.c math/asinh.c math/asinhf.c \
 	math/atan2f.c math/atanf.c math/atanh.c math/atanhf.c \
-	math/cosf.c math/exp.c math/exp2.S math/exp2f.S math/expm1.c \
-	math/expm1f.c math/fmod.c math/fmodf.c math/ilogb.S \
-	math/ilogbf.S math/log1p.S math/log1pf.S math/log2.S \
-	math/log2f.S math/logb.c math/logbf.c math/scalbn.S \
-	math/scalbnf.S math/sin.c math/sinf.c math/tanf.c \
-	math/DFP/__fpclassifyd32.c math/DFP/__fpclassifyd64.c \
-	math/DFP/__fpclassifyd128.c math/DFP/__isnand32.c \
-	math/DFP/__isnand64.c math/DFP/__isnand128.c \
-	math/DFP/__signbitd32.c math/DFP/__signbitd64.c \
-	math/DFP/__signbitd128.c math/DFP/isinfd32.c \
-	math/DFP/isinfd64.c math/DFP/isinfd128.c
+	math/cos.c math/cosf.c math/exp.c math/exp2.S math/exp2f.S \
+	math/expm1.c math/expm1f.c math/fmod.c math/fmodf.c \
+	math/ilogb.S math/ilogbf.S math/log1p.S math/log1pf.S \
+	math/log2.S math/log2f.S math/logb.c math/logbf.c \
+	math/scalbn.S math/scalbnf.S math/sin.c math/sinf.c \
+	math/tanf.c math/DFP/__fpclassifyd32.c \
+	math/DFP/__fpclassifyd64.c math/DFP/__fpclassifyd128.c \
+	math/DFP/__isnand32.c math/DFP/__isnand64.c \
+	math/DFP/__isnand128.c math/DFP/__signbitd32.c \
+	math/DFP/__signbitd64.c math/DFP/__signbitd128.c \
+	math/DFP/isinfd32.c math/DFP/isinfd64.c math/DFP/isinfd128.c
 am__objects_16 = crt/lib32_libmingwex_a-dllentry.$(OBJEXT) \
 	crt/lib32_libmingwex_a-dllmain.$(OBJEXT) \
 	complex/lib32_libmingwex_a-cabs.$(OBJEXT) \
@@ -796,7 +796,6 @@
 	math/lib32_libmingwex_a-cephes_emath.$(OBJEXT) \
 	math/lib32_libmingwex_a-copysign.$(OBJEXT) \
 	math/lib32_libmingwex_a-copysignf.$(OBJEXT) \
-	math/lib32_libmingwex_a-cos.$(OBJEXT) \
 	math/lib32_libmingwex_a-coshf.$(OBJEXT) \
 	math/lib32_libmingwex_a-coshl.$(OBJEXT) \
 	math/lib32_libmingwex_a-cosl.$(OBJEXT) \
@@ -1070,6 +1069,7 @@
 	math/lib32_libmingwex_a-atanf.$(OBJEXT) \
 	math/lib32_libmingwex_a-atanh.$(OBJEXT) \
 	math/lib32_libmingwex_a-atanhf.$(OBJEXT) \
+	math/lib32_libmingwex_a-cos.$(OBJEXT) \
 	math/lib32_libmingwex_a-cosf.$(OBJEXT) \
 	math/lib32_libmingwex_a-exp.$(OBJEXT) \
 	math/lib32_libmingwex_a-exp2.$(OBJEXT) \
@@ -1719,8 +1719,8 @@
 	math/acoshl.c math/acosl.c math/asinhl.c math/asinl.c \
 	math/atan2l.c math/atanhl.c math/atanl.c math/cbrt.c \
 	math/cbrtf.c math/cbrtl.c math/cephes_emath.c math/copysign.c \
-	math/copysignf.c math/cos.c math/coshf.c math/coshl.c \
-	math/cosl.c math/cossin.c math/erfl.c math/expf.c math/expl.c \
+	math/copysignf.c math/coshf.c math/coshl.c math/cosl.c \
+	math/cossin.c math/erfl.c math/expf.c math/expl.c \
 	math/expm1l.c math/fabs.c math/fabsf.c math/fabsl.c \
 	math/fdim.c math/fdimf.c math/fdiml.c math/fmal.c math/fmax.c \
 	math/fmaxf.c math/fmaxl.c math/fmin.c math/fminf.c \
@@ -1806,17 +1806,17 @@
 	stdio/mingw_vasprintf.c math/acosf.c math/acosh.c \
 	math/acoshf.c math/asinf.c math/asinh.c math/asinhf.c \
 	math/atan2f.c math/atanf.c math/atanh.c math/atanhf.c \
-	math/cosf.c math/exp.c math/exp2.S math/exp2f.S math/expm1.c \
-	math/expm1f.c math/fmod.c math/fmodf.c math/ilogb.S \
-	math/ilogbf.S math/log1p.S math/log1pf.S math/log2.S \
-	math/log2f.S math/logb.c math/logbf.c math/scalbn.S \
-	math/scalbnf.S math/sin.c math/sinf.c math/tanf.c \
-	math/DFP/__fpclassifyd32.c math/DFP/__fpclassifyd64.c \
-	math/DFP/__fpclassifyd128.c math/DFP/__isnand32.c \
-	math/DFP/__isnand64.c math/DFP/__isnand128.c \
-	math/DFP/__signbitd32.c math/DFP/__signbitd64.c \
-	math/DFP/__signbitd128.c math/DFP/isinfd32.c \
-	math/DFP/isinfd64.c math/DFP/isinfd128.c
+	math/cos.c math/cosf.c math/exp.c math/exp2.S math/exp2f.S \
+	math/expm1.c math/expm1f.c math/fmod.c math/fmodf.c \
+	math/ilogb.S math/ilogbf.S math/log1p.S math/log1pf.S \
+	math/log2.S math/log2f.S math/logb.c math/logbf.c \
+	math/scalbn.S math/scalbnf.S math/sin.c math/sinf.c \
+	math/tanf.c math/DFP/__fpclassifyd32.c \
+	math/DFP/__fpclassifyd64.c math/DFP/__fpclassifyd128.c \
+	math/DFP/__isnand32.c math/DFP/__isnand64.c \
+	math/DFP/__isnand128.c math/DFP/__signbitd32.c \
+	math/DFP/__signbitd64.c math/DFP/__signbitd128.c \
+	math/DFP/isinfd32.c math/DFP/isinfd64.c math/DFP/isinfd128.c
 am__objects_49 = crt/lib64_libmingwex_a-dllentry.$(OBJEXT) \
 	crt/lib64_libmingwex_a-dllmain.$(OBJEXT) \
 	complex/lib64_libmingwex_a-cabs.$(OBJEXT) \
@@ -1933,7 +1933,6 @@
 	math/lib64_libmingwex_a-cephes_emath.$(OBJEXT) \
 	math/lib64_libmingwex_a-copysign.$(OBJEXT) \
 	math/lib64_libmingwex_a-copysignf.$(OBJEXT) \
-	math/lib64_libmingwex_a-cos.$(OBJEXT) \
 	math/lib64_libmingwex_a-coshf.$(OBJEXT) \
 	math/lib64_libmingwex_a-coshl.$(OBJEXT) \
 	math/lib64_libmingwex_a-cosl.$(OBJEXT) \
@@ -2207,6 +2206,7 @@
 	math/lib64_libmingwex_a-atanf.$(OBJEXT) \
 	math/lib64_libmingwex_a-atanh.$(OBJEXT) \
 	math/lib64_libmingwex_a-atanhf.$(OBJEXT) \
+	math/lib64_libmingwex_a-cos.$(OBJEXT) \
 	math/lib64_libmingwex_a-cosf.$(OBJEXT) \
 	math/lib64_libmingwex_a-exp.$(OBJEXT) \
 	math/lib64_libmingwex_a-exp2.$(OBJEXT) \
@@ -2769,8 +2769,8 @@
 	math/acoshl.c math/acosl.c math/asinhl.c math/asinl.c \
 	math/atan2l.c math/atanhl.c math/atanl.c math/cbrt.c \
 	math/cbrtf.c math/cbrtl.c math/cephes_emath.c math/copysign.c \
-	math/copysignf.c math/cos.c math/coshf.c math/coshl.c \
-	math/cosl.c math/cossin.c math/erfl.c math/expf.c math/expl.c \
+	math/copysignf.c math/coshf.c math/coshl.c math/cosl.c \
+	math/cossin.c math/erfl.c math/expf.c math/expl.c \
 	math/expm1l.c math/fabs.c math/fabsf.c math/fabsl.c \
 	math/fdim.c math/fdimf.c math/fdiml.c math/fmal.c math/fmax.c \
 	math/fmaxf.c math/fmaxl.c math/fmin.c math/fminf.c \
@@ -2860,16 +2860,16 @@
 	math/softmath/asinh.c math/softmath/asinhf.c \
 	math/softmath/atan2f.c math/softmath/atanf.c \
 	math/softmath/atanh.c math/softmath/atanhf.c \
-	math/softmath/cosf.c math/softmath/exp.c math/softmath/exp2.c \
-	math/softmath/exp2f.c math/softmath/expm1.c \
-	math/softmath/expm1f.c math/softmath/fmod.c \
-	math/softmath/fmodf.c math/softmath/ilogb.c \
-	math/softmath/ilogbf.c math/softmath/log1p.c \
-	math/softmath/log1pf.c math/softmath/log2.c \
-	math/softmath/log2f.c math/softmath/logb.c \
-	math/softmath/logbf.c math/softmath/scalbn.c \
-	math/softmath/scalbnf.c math/softmath/sin.c \
-	math/softmath/sinf.c math/softmath/tanf.c \
+	math/softmath/cos.c math/softmath/cosf.c math/softmath/exp.c \
+	math/softmath/exp2.c math/softmath/exp2f.c \
+	math/softmath/expm1.c math/softmath/expm1f.c \
+	math/softmath/fmod.c math/softmath/fmodf.c \
+	math/softmath/ilogb.c math/softmath/ilogbf.c \
+	math/softmath/log1p.c math/softmath/log1pf.c \
+	math/softmath/log2.c math/softmath/log2f.c \
+	math/softmath/logb.c math/softmath/logbf.c \
+	math/softmath/scalbn.c math/softmath/scalbnf.c \
+	math/softmath/sin.c math/softmath/sinf.c math/softmath/tanf.c \
 	math/DFP/__fpclassifyd32.c math/DFP/__fpclassifyd64.c \
 	math/DFP/__fpclassifyd128.c math/DFP/__isnand32.c \
 	math/DFP/__isnand64.c math/DFP/__isnand128.c \
@@ -2992,7 +2992,6 @@
 	math/libarm32_libmingwex_a-cephes_emath.$(OBJEXT) \
 	math/libarm32_libmingwex_a-copysign.$(OBJEXT) \
 	math/libarm32_libmingwex_a-copysignf.$(OBJEXT) \
-	math/libarm32_libmingwex_a-cos.$(OBJEXT) \
 	math/libarm32_libmingwex_a-coshf.$(OBJEXT) \
 	math/libarm32_libmingwex_a-coshl.$(OBJEXT) \
 	math/libarm32_libmingwex_a-cosl.$(OBJEXT) \
@@ -3269,6 +3268,7 @@
 	math/softmath/libarm32_libmingwex_a-atanf.$(OBJEXT) \
 	math/softmath/libarm32_libmingwex_a-atanh.$(OBJEXT) \
 	math/softmath/libarm32_libmingwex_a-atanhf.$(OBJEXT) \
+	math/softmath/libarm32_libmingwex_a-cos.$(OBJEXT) \
 	math/softmath/libarm32_libmingwex_a-cosf.$(OBJEXT) \
 	math/softmath/libarm32_libmingwex_a-exp.$(OBJEXT) \
 	math/softmath/libarm32_libmingwex_a-exp2.$(OBJEXT) \
@@ -5112,7 +5112,7 @@
   math/acoshl.c         math/acosl.c       \
   math/asinhl.c         math/asinl.c       math/atan2l.c         \
   math/atanhl.c         math/atanl.c       math/cbrt.c           \
-  math/cbrtf.c          math/cbrtl.c       math/cephes_emath.c   math/copysign.c      math/copysignf.c     math/cos.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/cossin.c        math/erfl.c          \
   math/expf.c           math/expl.c        math/expm1l.c         \
   math/fabs.c           math/fabsf.c       math/fabsl.c          math/fdim.c          math/fdimf.c         math/fdiml.c         \
@@ -5181,22 +5181,22 @@
 src_libmingwex64 = \
   math/acosf.c              math/acosh.c              math/acoshf.c             math/asinf.c              math/asinh.c              \
   math/asinhf.c             math/atan2f.c             math/atanf.c              math/atanh.c              math/atanhf.c             \
-  math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              math/expm1.c              \
-  math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              math/ilogbf.S             \
-  math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              math/logb.c               \
-  math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                math/sinf.c               \
-  math/tanf.c
+  math/cos.c                math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              \
+  math/expm1.c              math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              \
+  math/ilogbf.S             math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              \
+  math/logb.c               math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                \
+  math/sinf.c               math/tanf.c
 
 
 # these only go into the 32 bit version:
 src_libmingwex32 = \
   math/acosf.c              math/acosh.c              math/acoshf.c             math/asinf.c              math/asinh.c              \
   math/asinhf.c             math/atan2f.c             math/atanf.c              math/atanh.c              math/atanhf.c             \
-  math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              math/expm1.c              \
-  math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              math/ilogbf.S             \
-  math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              math/logb.c               \
-  math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                math/sinf.c               \
-  math/tanf.c
+  math/cos.c                math/cosf.c               math/exp.c                math/exp2.S               math/exp2f.S              \
+  math/expm1.c              math/expm1f.c             math/fmod.c               math/fmodf.c              math/ilogb.S              \
+  math/ilogbf.S             math/log1p.S              math/log1pf.S             math/log2.S               math/log2f.S              \
+  math/logb.c               math/logbf.c              math/scalbn.S             math/scalbnf.S            math/sin.c                \
+  math/sinf.c               math/tanf.c
 
 
 # these only go into the ARM32 version:
@@ -5204,11 +5204,11 @@
   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/asinf.c     math/softmath/asinh.c     \
   math/softmath/asinhf.c    math/softmath/atan2f.c    math/softmath/atanf.c     math/softmath/atanh.c     math/softmath/atanhf.c    \
-  math/softmath/cosf.c      math/softmath/exp.c       math/softmath/exp2.c      math/softmath/exp2f.c     math/softmath/expm1.c     \
-  math/softmath/expm1f.c    math/softmath/fmod.c      math/softmath/fmodf.c     math/softmath/ilogb.c     math/softmath/ilogbf.c    \
-  math/softmath/log1p.c     math/softmath/log1pf.c    math/softmath/log2.c      math/softmath/log2f.c     math/softmath/logb.c      \
-  math/softmath/logbf.c     math/softmath/scalbn.c    math/softmath/scalbnf.c   math/softmath/sin.c       math/softmath/sinf.c      \
-  math/softmath/tanf.c
+  math/softmath/cos.c       math/softmath/cosf.c      math/softmath/exp.c       math/softmath/exp2.c      math/softmath/exp2f.c     \
+  math/softmath/expm1.c     math/softmath/expm1f.c    math/softmath/fmod.c      math/softmath/fmodf.c     math/softmath/ilogb.c     \
+  math/softmath/ilogbf.c    math/softmath/log1p.c     math/softmath/log1pf.c    math/softmath/log2.c      math/softmath/log2f.c     \
+  math/softmath/logb.c      math/softmath/logbf.c     math/softmath/scalbn.c    math/softmath/scalbnf.c   math/softmath/sin.c       \
+  math/softmath/sinf.c      math/softmath/tanf.c
 
 
 # These intrinsics are target independent:
@@ -8342,8 +8342,6 @@
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib32_libmingwex_a-copysignf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
-math/lib32_libmingwex_a-cos.$(OBJEXT): math/$(am__dirstamp) \
-	math/$(DEPDIR)/$(am__dirstamp)
 math/lib32_libmingwex_a-coshf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib32_libmingwex_a-coshl.$(OBJEXT): math/$(am__dirstamp) \
@@ -8902,6 +8900,8 @@
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib32_libmingwex_a-atanhf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
+math/lib32_libmingwex_a-cos.$(OBJEXT): math/$(am__dirstamp) \
+	math/$(DEPDIR)/$(am__dirstamp)
 math/lib32_libmingwex_a-cosf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib32_libmingwex_a-exp.$(OBJEXT): math/$(am__dirstamp) \
@@ -9968,8 +9968,6 @@
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib64_libmingwex_a-copysignf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
-math/lib64_libmingwex_a-cos.$(OBJEXT): math/$(am__dirstamp) \
-	math/$(DEPDIR)/$(am__dirstamp)
 math/lib64_libmingwex_a-coshf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib64_libmingwex_a-coshl.$(OBJEXT): math/$(am__dirstamp) \
@@ -10516,6 +10514,8 @@
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib64_libmingwex_a-atanhf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
+math/lib64_libmingwex_a-cos.$(OBJEXT): math/$(am__dirstamp) \
+	math/$(DEPDIR)/$(am__dirstamp)
 math/lib64_libmingwex_a-cosf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
 math/lib64_libmingwex_a-exp.$(OBJEXT): math/$(am__dirstamp) \
@@ -11457,8 +11457,6 @@
 	math/$(DEPDIR)/$(am__dirstamp)
 math/libarm32_libmingwex_a-copysignf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
-math/libarm32_libmingwex_a-cos.$(OBJEXT): math/$(am__dirstamp) \
-	math/$(DEPDIR)/$(am__dirstamp)
 math/libarm32_libmingwex_a-coshf.$(OBJEXT): math/$(am__dirstamp) \
 	math/$(DEPDIR)/$(am__dirstamp)
 math/libarm32_libmingwex_a-coshl.$(OBJEXT): math/$(am__dirstamp) \
@@ -12030,6 +12028,9 @@
 math/softmath/libarm32_libmingwex_a-atanhf.$(OBJEXT):  \
 	math/softmath/$(am__dirstamp) \
 	math/softmath/$(DEPDIR)/$(am__dirstamp)
+math/softmath/libarm32_libmingwex_a-cos.$(OBJEXT):  \
+	math/softmath/$(am__dirstamp) \
+	math/softmath/$(DEPDIR)/$(am__dirstamp)
 math/softmath/libarm32_libmingwex_a-cosf.$(OBJEXT):  \
 	math/softmath/$(am__dirstamp) \
 	math/softmath/$(DEPDIR)/$(am__dirstamp)
@@ -14628,7 +14629,6 @@
 @AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-copysign.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-copysignf.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-copysignl.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-cos.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-coshf.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-coshl.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/$(DEPDIR)/libarm32_libmingwex_a-cosl.Po@am__quote@
@@ -14797,6 +14797,7 @@
 @AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-atanf.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-atanh.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-atanhf.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cosf.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-e_fmod.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@math/softmath/$(DEPDIR)/libarm32_libmingwex_a-e_fmodf.Po@am__quote@
@@ -20586,20 +20587,6 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib32_libmingwex_a-copysignf.obj `if test -f 'math/copysignf.c'; then $(CYGPATH_W) 'math/copysignf.c'; else $(CYGPATH_W) '$(srcdir)/math/copysignf.c'; fi`
 
-math/lib32_libmingwex_a-cos.o: math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib32_libmingwex_a-cos.o -MD -MP -MF math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo -c -o math/lib32_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib32_libmingwex_a-cos.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib32_libmingwex_a-cos.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib32_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
-
-math/lib32_libmingwex_a-cos.obj: math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib32_libmingwex_a-cos.obj -MD -MP -MF math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo -c -o math/lib32_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib32_libmingwex_a-cos.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib32_libmingwex_a-cos.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib32_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
-
 math/lib32_libmingwex_a-coshf.o: math/coshf.c
 @am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib32_libmingwex_a-coshf.o -MD -MP -MF math/$(DEPDIR)/lib32_libmingwex_a-coshf.Tpo -c -o math/lib32_libmingwex_a-coshf.o `test -f 'math/coshf.c' || echo '$(srcdir)/'`math/coshf.c
 @am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib32_libmingwex_a-coshf.Tpo math/$(DEPDIR)/lib32_libmingwex_a-coshf.Po
@@ -24324,6 +24311,20 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib32_libmingwex_a-atanhf.obj `if test -f 'math/atanhf.c'; then $(CYGPATH_W) 'math/atanhf.c'; else $(CYGPATH_W) '$(srcdir)/math/atanhf.c'; fi`
 
+math/lib32_libmingwex_a-cos.o: math/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib32_libmingwex_a-cos.o -MD -MP -MF math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo -c -o math/lib32_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib32_libmingwex_a-cos.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib32_libmingwex_a-cos.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib32_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
+
+math/lib32_libmingwex_a-cos.obj: math/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib32_libmingwex_a-cos.obj -MD -MP -MF math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo -c -o math/lib32_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib32_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib32_libmingwex_a-cos.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib32_libmingwex_a-cos.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib32_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
+
 math/lib32_libmingwex_a-cosf.o: math/cosf.c
 @am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib32_libmingwex_a-cosf.o -MD -MP -MF math/$(DEPDIR)/lib32_libmingwex_a-cosf.Tpo -c -o math/lib32_libmingwex_a-cosf.o `test -f 'math/cosf.c' || echo '$(srcdir)/'`math/cosf.c
 @am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib32_libmingwex_a-cosf.Tpo math/$(DEPDIR)/lib32_libmingwex_a-cosf.Po
@@ -29700,20 +29701,6 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib64_libmingwex_a-copysignf.obj `if test -f 'math/copysignf.c'; then $(CYGPATH_W) 'math/copysignf.c'; else $(CYGPATH_W) '$(srcdir)/math/copysignf.c'; fi`
 
-math/lib64_libmingwex_a-cos.o: math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib64_libmingwex_a-cos.o -MD -MP -MF math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo -c -o math/lib64_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib64_libmingwex_a-cos.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib64_libmingwex_a-cos.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib64_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
-
-math/lib64_libmingwex_a-cos.obj: math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib64_libmingwex_a-cos.obj -MD -MP -MF math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo -c -o math/lib64_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib64_libmingwex_a-cos.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib64_libmingwex_a-cos.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib64_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
-
 math/lib64_libmingwex_a-coshf.o: math/coshf.c
 @am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib64_libmingwex_a-coshf.o -MD -MP -MF math/$(DEPDIR)/lib64_libmingwex_a-coshf.Tpo -c -o math/lib64_libmingwex_a-coshf.o `test -f 'math/coshf.c' || echo '$(srcdir)/'`math/coshf.c
 @am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib64_libmingwex_a-coshf.Tpo math/$(DEPDIR)/lib64_libmingwex_a-coshf.Po
@@ -33438,6 +33425,20 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib64_libmingwex_a-atanhf.obj `if test -f 'math/atanhf.c'; then $(CYGPATH_W) 'math/atanhf.c'; else $(CYGPATH_W) '$(srcdir)/math/atanhf.c'; fi`
 
+math/lib64_libmingwex_a-cos.o: math/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib64_libmingwex_a-cos.o -MD -MP -MF math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo -c -o math/lib64_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib64_libmingwex_a-cos.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib64_libmingwex_a-cos.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib64_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
+
+math/lib64_libmingwex_a-cos.obj: math/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib64_libmingwex_a-cos.obj -MD -MP -MF math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo -c -o math/lib64_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib64_libmingwex_a-cos.Tpo math/$(DEPDIR)/lib64_libmingwex_a-cos.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/lib64_libmingwex_a-cos.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/lib64_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
+
 math/lib64_libmingwex_a-cosf.o: math/cosf.c
 @am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(lib64_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/lib64_libmingwex_a-cosf.o -MD -MP -MF math/$(DEPDIR)/lib64_libmingwex_a-cosf.Tpo -c -o math/lib64_libmingwex_a-cosf.o `test -f 'math/cosf.c' || echo '$(srcdir)/'`math/cosf.c
 @am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/lib64_libmingwex_a-cosf.Tpo math/$(DEPDIR)/lib64_libmingwex_a-cosf.Po
@@ -38226,20 +38227,6 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/libarm32_libmingwex_a-copysignf.obj `if test -f 'math/copysignf.c'; then $(CYGPATH_W) 'math/copysignf.c'; else $(CYGPATH_W) '$(srcdir)/math/copysignf.c'; fi`
 
-math/libarm32_libmingwex_a-cos.o: math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/libarm32_libmingwex_a-cos.o -MD -MP -MF math/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo -c -o math/libarm32_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo math/$(DEPDIR)/libarm32_libmingwex_a-cos.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/libarm32_libmingwex_a-cos.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/libarm32_libmingwex_a-cos.o `test -f 'math/cos.c' || echo '$(srcdir)/'`math/cos.c
-
-math/libarm32_libmingwex_a-cos.obj: math/cos.c
-@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/libarm32_libmingwex_a-cos.obj -MD -MP -MF math/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo -c -o math/libarm32_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
-@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo math/$(DEPDIR)/libarm32_libmingwex_a-cos.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/cos.c' object='math/libarm32_libmingwex_a-cos.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/libarm32_libmingwex_a-cos.obj `if test -f 'math/cos.c'; then $(CYGPATH_W) 'math/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/cos.c'; fi`
-
 math/libarm32_libmingwex_a-coshf.o: math/coshf.c
 @am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/libarm32_libmingwex_a-coshf.o -MD -MP -MF math/$(DEPDIR)/libarm32_libmingwex_a-coshf.Tpo -c -o math/libarm32_libmingwex_a-coshf.o `test -f 'math/coshf.c' || echo '$(srcdir)/'`math/coshf.c
 @am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/$(DEPDIR)/libarm32_libmingwex_a-coshf.Tpo math/$(DEPDIR)/libarm32_libmingwex_a-coshf.Po
@@ -42006,6 +41993,20 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/softmath/libarm32_libmingwex_a-atanhf.obj `if test -f 'math/softmath/atanhf.c'; then $(CYGPATH_W) 'math/softmath/atanhf.c'; else $(CYGPATH_W) '$(srcdir)/math/softmath/atanhf.c'; fi`
 
+math/softmath/libarm32_libmingwex_a-cos.o: math/softmath/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/softmath/libarm32_libmingwex_a-cos.o -MD -MP -MF math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo -c -o math/softmath/libarm32_libmingwex_a-cos.o `test -f 'math/softmath/cos.c' || echo '$(srcdir)/'`math/softmath/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/softmath/cos.c' object='math/softmath/libarm32_libmingwex_a-cos.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/softmath/libarm32_libmingwex_a-cos.o `test -f 'math/softmath/cos.c' || echo '$(srcdir)/'`math/softmath/cos.c
+
+math/softmath/libarm32_libmingwex_a-cos.obj: math/softmath/cos.c
+@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/softmath/libarm32_libmingwex_a-cos.obj -MD -MP -MF math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo -c -o math/softmath/libarm32_libmingwex_a-cos.obj `if test -f 'math/softmath/cos.c'; then $(CYGPATH_W) 'math/softmath/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/softmath/cos.c'; fi`
+@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Tpo math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cos.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='math/softmath/cos.c' object='math/softmath/libarm32_libmingwex_a-cos.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o math/softmath/libarm32_libmingwex_a-cos.obj `if test -f 'math/softmath/cos.c'; then $(CYGPATH_W) 'math/softmath/cos.c'; else $(CYGPATH_W) '$(srcdir)/math/softmath/cos.c'; fi`
+
 math/softmath/libarm32_libmingwex_a-cosf.o: math/softmath/cosf.c
 @am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libarm32_libmingwex_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT math/softmath/libarm32_libmingwex_a-cosf.o -MD -MP -MF math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cosf.Tpo -c -o math/softmath/libarm32_libmingwex_a-cosf.o `test -f 'math/softmath/cosf.c' || echo '$(srcdir)/'`math/softmath/cosf.c
 @am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cosf.Tpo math/softmath/$(DEPDIR)/libarm32_libmingwex_a-cosf.Po
diff --git a/mingw-w64-crt/math/softmath/cos.c b/mingw-w64-crt/math/softmath/cos.c
new file mode 100644
index 0000000..d9b0303
--- /dev/null
+++ b/mingw-w64-crt/math/softmath/cos.c
@@ -0,0 +1,69 @@
+/*
+ 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"
+
+double cos(double x)
+{
+    double result = 0.0, neg = (x < 0) ? -1 : 1;
+    int n, quadrant;
+
+    x *= neg;
+    quadrant = (int)(x / M_PI_2) % 4;
+
+    x = bsd__ieee754_fmod(x, M_PI_2);
+    if (quadrant == 1 || quadrant == 3)
+        x = M_PI_2 - x;
+
+    for(n = 0; n < 6; n++)
+    {
+        double sign = (n % 2 == 0) ? 1 : -1;
+        result += sign * (bsd__ieee754_pow(x, (2 * n)) / softmath_fact(2 * n));
+    }
+
+    if (quadrant == 1 || quadrant == 2)
+        result *= -1;
+
+    return result;
+}