First version committed to git
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / machine / i386 / f_logf.S
blob3fafa8d8424ac944ce01337ad5c859396aae0f15
1 /*
2  * ==================================================== 
3  * Copyright (C) 1998, 2002 by Red Hat Inc. All rights reserved. 
4  *      
5  * Permission to use, copy, modify, and distribute this 
6  * software is freely granted, provided that this notice
7  * is preserved.        
8  * ==================================================== 
9  */
11 #if !defined(_SOFT_FLOAT)
14 Fast version of logf using Intel float instructions.
16    float _f_logf (float x);
18 Function calculates the log base e of x.
19 There is no error checking or setting of errno. 
22         #include "i386mach.h"
24         .global SYM (_f_logf)
25        SOTYPE_FUNCTION(_f_logf)
27 SYM (_f_logf):
28         pushl ebp
29         movl esp,ebp
31         fld1
32         fldl2e
33         fdivrp
34         flds 8(ebp)
35         fyl2x
37         leave
38         ret
40 #endif