master
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6/*
7 * Written by J.T. Conklin <jtc@netbsd.org>.
8 * Public domain.
9 *
10 */
11
12#include <math.h>
13
14float
15atan2f (float y, float x)
16{
17 float res = 0.0F;
18 asm volatile ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
19 return res;
20}