asm exponential functions for i386
[musl] / src / math / i386 / exp.s
1 .global exp2f
2 .type exp2f,@function
3 exp2f:
4         flds 4(%esp)
5         jmp 1f
6
7 .global exp2l
8 .type exp2l,@function
9 exp2l:
10         fldt 4(%esp)
11         jmp 1f
12
13 .global expf
14 .type expf,@function
15 expf:
16         flds 4(%esp)
17         jmp 2f
18
19 .global expl
20 .type expl,@function
21 expl:
22         fldt 4(%esp)
23         jmp 2f
24
25 .global exp
26 .type exp,@function
27 exp:
28         fldl 4(%esp)
29 2:      fldl2e
30         fmulp
31         jmp 1f
32
33 .global exp2
34 .type exp2,@function
35 exp2:
36         fldl 4(%esp)
37 1:      fld %st(0)
38         frndint
39         fxch %st(1)
40         fsub %st(1)
41         f2xm1
42         fld1
43         faddp
44         fscale
45         fstp %st(1)
46         ret