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:
Axel Dörfler 2005-05-19 14:13:22 +00:00
parent d6fad1d006
commit fe9bc5ae27
3 changed files with 34 additions and 0 deletions

View File

@ -7,6 +7,8 @@ KernelMergeObject posix_math_arch_$(OBOS_ARCH).o :
isinf.c
ldexp.c
sin.S
sqrt.S
sqrtf.S
:
-fPIC -DPIC
;

View 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)

View 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)