mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
[CRT] Use the asm version of sqrt on amd64
This commit is contained in:
parent
90a0e426ed
commit
db0c59cbd4
3 changed files with 2 additions and 3 deletions
|
@ -563,7 +563,6 @@ if(NOT ARCH STREQUAL "i386")
|
||||||
math/modff.c
|
math/modff.c
|
||||||
math/sin.c
|
math/sin.c
|
||||||
math/sinhf.c
|
math/sinhf.c
|
||||||
math/sqrt.c
|
|
||||||
math/sqrtf.c
|
math/sqrtf.c
|
||||||
math/tanf.c
|
math/tanf.c
|
||||||
math/tanhf.c
|
math/tanhf.c
|
||||||
|
|
|
@ -137,6 +137,7 @@ elseif(ARCH STREQUAL "arm")
|
||||||
list(APPEND LIBCNTPR_SOURCE
|
list(APPEND LIBCNTPR_SOURCE
|
||||||
except/arm/chkstk_asm.s
|
except/arm/chkstk_asm.s
|
||||||
except/arm/__jump_unwind.s
|
except/arm/__jump_unwind.s
|
||||||
|
math/sqrt.c
|
||||||
math/arm/__rt_sdiv.c
|
math/arm/__rt_sdiv.c
|
||||||
math/arm/__rt_sdiv64_worker.c
|
math/arm/__rt_sdiv64_worker.c
|
||||||
math/arm/__rt_udiv.c
|
math/arm/__rt_udiv.c
|
||||||
|
@ -210,7 +211,6 @@ else()
|
||||||
list(APPEND LIBCNTPR_SOURCE
|
list(APPEND LIBCNTPR_SOURCE
|
||||||
math/cos.c
|
math/cos.c
|
||||||
math/sin.c
|
math/sin.c
|
||||||
math/sqrt.c
|
|
||||||
mem/memchr.c
|
mem/memchr.c
|
||||||
mem/memcpy.c
|
mem/memcpy.c
|
||||||
mem/memmove.c
|
mem/memmove.c
|
||||||
|
|
|
@ -35,7 +35,7 @@ sqrt:
|
||||||
ja short x_is_nan
|
ja short x_is_nan
|
||||||
|
|
||||||
/* All is well, calculate the sqrt */
|
/* All is well, calculate the sqrt */
|
||||||
sqrtpd xmm0, xmm0
|
sqrtsd xmm0, xmm0
|
||||||
ret
|
ret
|
||||||
|
|
||||||
x_is_negative:
|
x_is_negative:
|
||||||
|
|
Loading…
Reference in a new issue