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 */
10
11#include <picolibc.h>
12
13#if !defined(_SOFT_FLOAT)
14
15/*
16Fast version of logf using Intel float instructions.
17
18   float _f_log10f (float x);
19
20Function calculates the log base 10 of x.
21There is no error checking or setting of errno.
22*/
23
24	#include "i386mach.h"
25
26	.global SYM (_f_log10f)
27       SOTYPE_FUNCTION(_f_log10f)
28
29SYM (_f_log10f):
30	pushl ebp
31	movl esp,ebp
32
33	fld1
34	fldl2t
35	fdivrp
36	flds 8(ebp)
37	fyl2x
38
39	leave
40	ret
41
42#endif
43