From c0d91d1c3ac70f1bc06a19ecb1b12add5c70688c 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 [ROCm/clr commit: 2ea7c5d28a2de155368767e2d3338c54c6039624] --- projects/clr/hipamd/src/math_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/math_functions.cpp b/projects/clr/hipamd/src/math_functions.cpp index a1ee9d3ce5..230eb2aacc 100644 --- a/projects/clr/hipamd/src/math_functions.cpp +++ b/projects/clr/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) {