This function, on arm, just calls the normal double copysign function, and there's no need to do that in assembly. --- mingw-w64-crt/Makefile.am | 2 +- mingw-w64-crt/math/arm/{copysignl.S => copysignl.c} | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) rename mingw-w64-crt/math/arm/{copysignl.S => copysignl.c} (52%)
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index f21bcd2..b640e87 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -319,7 +319,7 @@ src_libmingwex64=$(src_libmingwex_x86) # these only go into the ARM32 version: src_libmingwexarm32=\ - math/arm/_chgsignl.S math/arm/ceil.S math/arm/ceilf.S math/arm/ceill.S math/arm/copysignl.S \ + math/arm/_chgsignl.S math/arm/ceil.S math/arm/ceilf.S math/arm/ceill.S math/arm/copysignl.c \ math/arm/floor.S math/arm/floorf.S math/arm/floorl.S math/arm/nearbyint.S math/arm/nearbyintf.S \ math/arm/nearbyintl.S math/arm/trunc.S math/arm/truncf.S diff --git a/mingw-w64-crt/math/arm/copysignl.S b/mingw-w64-crt/math/arm/copysignl.c similarity index 52% rename from mingw-w64-crt/math/arm/copysignl.S rename to mingw-w64-crt/math/arm/copysignl.c index d58b7d1..ea66215 100644 --- a/mingw-w64-crt/math/arm/copysignl.S +++ b/mingw-w64-crt/math/arm/copysignl.c @@ -3,13 +3,9 @@ * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ -#include <_mingw_mac.h> +#include <math.h> - .file "copysignl.S" - .text - .align 4 - - .globl __MINGW_USYMBOL(copysignl) - .def __MINGW_USYMBOL(copysignl); .scl 2; .type 32; .endef -__MINGW_USYMBOL(copysignl): - b copysign +long double copysignl(long double x, long double y) +{ + return copysign(x, y); +} -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public