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 #include <math.h> 8 9 double atan2(double y,double x)10atan2 (double y, double x) 11 { 12 double res = 0.0; 13 asm volatile ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); 14 return res; 15 } 16