blob: e9bb241d826427553a33e4082526fa9c7b255da2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Public domain.
*/
#include <machine/asm.h>
#include <libm-alias-finite.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)
libm_alias_finite (__ieee754_sqrt, __sqrt)
|