mingw-w64-crt/math/x86/atan2.c
raw| 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 |
| 10 | atan2 (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 | } |