[CRT]
[reactos.git] / lib / sdk / crt / math / i386 / exp_asm.s
1
2 #include <reactos/asm.h>
3
4 PUBLIC _exp
5
6 /* FUNCTIONS ***************************************************************/
7 .code
8
9 _exp:
10 push ebp
11 mov ebp, esp
12
13 fld qword ptr [ebp + 8]
14 fldl2e
15 fmul st, st(1)
16 fst st(1)
17 frndint
18 fxch st(1)
19 fsub st, st(1)
20 f2xm1
21 fld1
22 faddp st(1), st
23 fscale
24 fstp st(1)
25
26 pop ebp
27 retn
28
29 END