X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fcrtdll%2Fmath%2Fatan2.c;fp=lib%2Fcrtdll%2Fmath%2Fatan2.c;h=28079d0df9a8de34539eb299a373e4d6f5f95e42;hp=f23be33a8a74a7bd0db3510568a546e94a24f90c;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3 diff --git a/lib/crtdll/math/atan2.c b/lib/crtdll/math/atan2.c index f23be33..28079d0 100644 --- a/lib/crtdll/math/atan2.c +++ b/lib/crtdll/math/atan2.c @@ -1,12 +1,18 @@ + +#include + double atan2 (double __y, double __x); double atan2 (double __y, double __x) { register double __value; +#ifdef __GNUC__ __asm __volatile__ ("fpatan\n\t" "fld %%st(0)" : "=t" (__value) : "0" (__x), "u" (__y)); - +#else + __value = linkme_atan2(__x, __y); +#endif /*__GNUC__*/ return __value; }