[CRT] Use the asm version of sqrt on amd64

This commit is contained in:
Timo Kreuzer 2018-01-29 18:41:18 +01:00
parent 90a0e426ed
commit db0c59cbd4
3 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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: