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 ldexpf using Intel float instructions.
17
18   float _f_ldexpf (float x, int exp);
19
20Function calculates x * 2 ** exp.
21There is no error checking or setting of errno.
22*/
23
24	#include "i386mach.h"
25
26	.global SYM (_f_ldexpf)
27       SOTYPE_FUNCTION(_f_ldexpf)
28
29SYM (_f_ldexpf):
30	pushl ebp
31	movl esp,ebp
32	fildl 12(ebp)
33	flds 8(ebp)
34	fscale
35	fstp st1
36
37	leave
38	ret
39
40#endif
41