mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2025-04-18 17:44:18 +03:00
crt: Move ARM64 nearbyint implementation to C files.
In preparation for using naked functions. Signed-off-by: Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
parent
0b27cfc5ce
commit
0ca516e448
@ -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 \
|
||||
|
@ -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
|
14
mingw-w64-crt/math/arm64/nearbyint.c
Normal file
14
mingw-w64-crt/math/arm64/nearbyint.c
Normal file
@ -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_NAKED_FUNC(nearbyint,
|
||||
"mrs x1, fpcr\n\t"
|
||||
"frintx d0, d0\n\t"
|
||||
"msr fpcr, x1\n\t"
|
||||
"ret")
|
@ -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
|
14
mingw-w64-crt/math/arm64/nearbyintf.c
Normal file
14
mingw-w64-crt/math/arm64/nearbyintf.c
Normal file
@ -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_NAKED_FUNC(nearbyintf,
|
||||
"mrs x1, fpcr\n\t"
|
||||
"frintx s0, s0\n\t"
|
||||
"msr fpcr, x1\n\t"
|
||||
"ret")
|
@ -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
|
14
mingw-w64-crt/math/arm64/nearbyintl.c
Normal file
14
mingw-w64-crt/math/arm64/nearbyintl.c
Normal file
@ -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_NAKED_FUNC(nearbyintl,
|
||||
"mrs x1, fpcr\n\t"
|
||||
"frintx d0, d0\n\t"
|
||||
"msr fpcr, x1\n\t"
|
||||
"ret")
|
Loading…
x
Reference in New Issue
Block a user