Added sqrt() and sqrtf() assembly versions.
Still they are not yet really used. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d6fad1d006
commit
fe9bc5ae27
@ -7,6 +7,8 @@ KernelMergeObject posix_math_arch_$(OBOS_ARCH).o :
|
|||||||
isinf.c
|
isinf.c
|
||||||
ldexp.c
|
ldexp.c
|
||||||
sin.S
|
sin.S
|
||||||
|
sqrt.S
|
||||||
|
sqrtf.S
|
||||||
:
|
:
|
||||||
-fPIC -DPIC
|
-fPIC -DPIC
|
||||||
;
|
;
|
||||||
|
16
src/system/libroot/posix/math/arch/x86/sqrt.S
Normal file
16
src/system/libroot/posix/math/arch/x86/sqrt.S
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
||||||
|
* Public domain.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define FUNCTION(x) .global x; .type x,@function; x
|
||||||
|
#define FUNCTION_END(x)
|
||||||
|
#define WEAK_ALIAS(original, alias) .weak original; original = alias
|
||||||
|
|
||||||
|
FUNCTION(__sqrt):
|
||||||
|
fldl 4(%esp)
|
||||||
|
fsqrt
|
||||||
|
ret
|
||||||
|
FUNCTION_END(__sqrt)
|
||||||
|
|
||||||
|
WEAK_ALIAS(__sqrt, sqrt)
|
16
src/system/libroot/posix/math/arch/x86/sqrtf.S
Normal file
16
src/system/libroot/posix/math/arch/x86/sqrtf.S
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
||||||
|
* Public domain.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define FUNCTION(x) .global x; .type x,@function; x
|
||||||
|
#define FUNCTION_END(x)
|
||||||
|
#define WEAK_ALIAS(original, alias) .weak original; original = alias
|
||||||
|
|
||||||
|
FUNCTION(__sqrtf):
|
||||||
|
flds 4(%esp)
|
||||||
|
fsqrt
|
||||||
|
ret
|
||||||
|
FUNCTION_END(__sqrtf)
|
||||||
|
|
||||||
|
WEAK_ALIAS(__sqrtf, sqrtf)
|
Loading…
Reference in New Issue
Block a user