From 2ea7c5d28a2de155368767e2d3338c54c6039624 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Tue, 7 Mar 2017 14:06:03 -0600 Subject: [PATCH] fixed atan2f arguments Change-Id: I0bb621e94d57594c3899e51d0c34ef43306cead0 --- hipamd/src/math_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/math_functions.cpp b/hipamd/src/math_functions.cpp index a1ee9d3ce5..230eb2aacc 100644 --- a/hipamd/src/math_functions.cpp +++ b/hipamd/src/math_functions.cpp @@ -46,7 +46,7 @@ __device__ float asinhf(float x) } __device__ float atan2f(float y, float x) { - return hc::precise_math::atan2f(x, y); + return hc::precise_math::atan2f(y, x); } __device__ float atanf(float x) {