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: