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 atan2 using Intel float instructions.
17
18   double _f_atan2 (double y, double 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_atan2)
27       SOTYPE_FUNCTION(_f_atan2)
28
29SYM (_f_atan2):
30	pushl ebp
31	movl esp,ebp
32	fldl 8(ebp)
33	fldl 16(ebp)
34	fpatan
35
36	leave
37	ret
38
39#endif
40