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