https://git.reactos.org/?p=reactos.git;a=commitdiff;h=db0c59cbd43b3be9688f45...
commit db0c59cbd43b3be9688f4550a4f5b089ea3ed8d9 Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Mon Jan 29 18:41:18 2018 +0100 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Fri May 28 11:52:42 2021 +0200
[CRT] Use the asm version of sqrt on amd64 --- sdk/lib/crt/crt.cmake | 1 - sdk/lib/crt/libcntpr.cmake | 2 +- sdk/lib/crt/math/amd64/sqrt.S | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/sdk/lib/crt/crt.cmake b/sdk/lib/crt/crt.cmake index 848d9a90dbc..f3b9160a9b5 100644 --- a/sdk/lib/crt/crt.cmake +++ b/sdk/lib/crt/crt.cmake @@ -563,7 +563,6 @@ if(NOT ARCH STREQUAL "i386") math/modff.c math/sin.c math/sinhf.c - math/sqrt.c math/sqrtf.c math/tanf.c math/tanhf.c diff --git a/sdk/lib/crt/libcntpr.cmake b/sdk/lib/crt/libcntpr.cmake index 2ffb192219d..178a18cd704 100644 --- a/sdk/lib/crt/libcntpr.cmake +++ b/sdk/lib/crt/libcntpr.cmake @@ -137,6 +137,7 @@ elseif(ARCH STREQUAL "arm") list(APPEND LIBCNTPR_SOURCE except/arm/chkstk_asm.s except/arm/__jump_unwind.s + math/sqrt.c math/arm/__rt_sdiv.c math/arm/__rt_sdiv64_worker.c math/arm/__rt_udiv.c @@ -210,7 +211,6 @@ else() list(APPEND LIBCNTPR_SOURCE math/cos.c math/sin.c - math/sqrt.c mem/memchr.c mem/memcpy.c mem/memmove.c diff --git a/sdk/lib/crt/math/amd64/sqrt.S b/sdk/lib/crt/math/amd64/sqrt.S index 8093ab27920..5f720f5acb6 100644 --- a/sdk/lib/crt/math/amd64/sqrt.S +++ b/sdk/lib/crt/math/amd64/sqrt.S @@ -35,7 +35,7 @@ sqrt: ja short x_is_nan
/* All is well, calculate the sqrt */ - sqrtpd xmm0, xmm0 + sqrtsd xmm0, xmm0 ret
x_is_negative: