In preparation for using naked functions. --- mingw-w64-crt/Makefile.am | 6 +++--- mingw-w64-crt/math/arm64/nearbyint.S | 17 ----------------- mingw-w64-crt/math/arm64/nearbyint.c | 14 ++++++++++++++ mingw-w64-crt/math/arm64/nearbyintf.S | 17 ----------------- mingw-w64-crt/math/arm64/nearbyintf.c | 14 ++++++++++++++ mingw-w64-crt/math/arm64/nearbyintl.S | 17 ----------------- mingw-w64-crt/math/arm64/nearbyintl.c | 14 ++++++++++++++ 7 files changed, 45 insertions(+), 54 deletions(-) delete mode 100644 mingw-w64-crt/math/arm64/nearbyint.S create mode 100644 mingw-w64-crt/math/arm64/nearbyint.c delete mode 100644 mingw-w64-crt/math/arm64/nearbyintf.S create mode 100644 mingw-w64-crt/math/arm64/nearbyintf.c delete mode 100644 mingw-w64-crt/math/arm64/nearbyintl.S create mode 100644 mingw-w64-crt/math/arm64/nearbyintl.c
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 745016079..8c70adf9f 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am @@ -702,9 +702,9 @@ src_msvcrtarm64=\ math/arm-common/s_remquo.c \ math/arm-common/s_remquof.c \ math/arm-common/scalbn.c \ - math/arm64/nearbyint.S \ - math/arm64/nearbyintf.S \ - math/arm64/nearbyintl.S \ + math/arm64/nearbyint.c \ + math/arm64/nearbyintf.c \ + math/arm64/nearbyintl.c \ math/arm64/trunc.c \ math/arm64/truncf.c \ misc/__p___argc.c \ diff --git a/mingw-w64-crt/math/arm64/nearbyint.S b/mingw-w64-crt/math/arm64/nearbyint.S deleted file mode 100644 index b17ce2bd1..000000000 --- a/mingw-w64-crt/math/arm64/nearbyint.S +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 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 <_mingw_mac.h> - - .file "nearbyint.S" - .text - .align 2 - .globl __MINGW_USYMBOL(nearbyint) - .def __MINGW_USYMBOL(nearbyint); .scl 2; .type 32; .endef -__MINGW_USYMBOL(nearbyint): - mrs x1, fpcr - frintx d0, d0 - msr fpcr, x1 - ret diff --git a/mingw-w64-crt/math/arm64/nearbyint.c b/mingw-w64-crt/math/arm64/nearbyint.c new file mode 100644 index 000000000..64ade2750 --- /dev/null +++ b/mingw-w64-crt/math/arm64/nearbyint.c @@ -0,0 +1,14 @@ +/** + * 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> +#include <internal.h> + +__ASM_FUNC_CODE(nearbyint, + "mrs x1, fpcr\n\t" + "frintx d0, d0\n\t" + "msr fpcr, x1\n\t" + "ret") diff --git a/mingw-w64-crt/math/arm64/nearbyintf.S b/mingw-w64-crt/math/arm64/nearbyintf.S deleted file mode 100644 index 49b6aff11..000000000 --- a/mingw-w64-crt/math/arm64/nearbyintf.S +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 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 <_mingw_mac.h> - - .file "nearbyintf.S" - .text - .align 2 - .globl __MINGW_USYMBOL(nearbyintf) - .def __MINGW_USYMBOL(nearbyintf); .scl 2; .type 32; .endef -__MINGW_USYMBOL(nearbyintf): - mrs x1, fpcr - frintx s0, s0 - msr fpcr, x1 - ret diff --git a/mingw-w64-crt/math/arm64/nearbyintf.c b/mingw-w64-crt/math/arm64/nearbyintf.c new file mode 100644 index 000000000..362f596eb --- /dev/null +++ b/mingw-w64-crt/math/arm64/nearbyintf.c @@ -0,0 +1,14 @@ +/** + * 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> +#include <internal.h> + +__ASM_FUNC_CODE(nearbyintf, + "mrs x1, fpcr\n\t" + "frintx s0, s0\n\t" + "msr fpcr, x1\n\t" + "ret") diff --git a/mingw-w64-crt/math/arm64/nearbyintl.S b/mingw-w64-crt/math/arm64/nearbyintl.S deleted file mode 100644 index cbfebb250..000000000 --- a/mingw-w64-crt/math/arm64/nearbyintl.S +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 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 <_mingw_mac.h> - - .file "nearbyintl.S" - .text - .align 2 - .globl __MINGW_USYMBOL(nearbyintl) - .def __MINGW_USYMBOL(nearbyintl); .scl 2; .type 32; .endef -__MINGW_USYMBOL(nearbyintl): - mrs x1, fpcr - frintx d0, d0 - msr fpcr, x1 - ret diff --git a/mingw-w64-crt/math/arm64/nearbyintl.c b/mingw-w64-crt/math/arm64/nearbyintl.c new file mode 100644 index 000000000..9e70b1ba4 --- /dev/null +++ b/mingw-w64-crt/math/arm64/nearbyintl.c @@ -0,0 +1,14 @@ +/** + * 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> +#include <internal.h> + +__ASM_FUNC_CODE(nearbyintl, + "mrs x1, fpcr\n\t" + "frintx d0, d0\n\t" + "msr fpcr, x1\n\t" + "ret") -- 2.48.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public