glibc/sysdeps/i386/fpu/e_sqrt.S
2013-11-29 16:31:16 +00:00

24 lines
399 B
ArmAsm

/*
* Written by J.T. Conklin <jtc@netbsd.org>.
* Public domain.
*/
#include <machine/asm.h>
ENTRY(__ieee754_sqrt)
fldl 4(%esp)
subl $8, %esp
cfi_adjust_cfa_offset (8)
fstcw 4(%esp)
movl $0xfeff, %edx
andl 4(%esp), %edx
movl %edx, (%esp)
fldcw (%esp)
fsqrt
fldcw 4(%esp)
addl $8, %esp
cfi_adjust_cfa_offset (-8)
ret
END (__ieee754_sqrt)
strong_alias (__ieee754_sqrt, __sqrt_finite)