From 5009bfb2dfdf1dcbc8fe56190b73415d08e1e70c 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 --- src/math_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math_functions.cpp b/src/math_functions.cpp index a1ee9d3ce5..230eb2aacc 100644 --- a/src/math_functions.cpp +++ b/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) {