From b127488ea9a3891ecffffa6dc6b176c4aef956c7 Mon Sep 17 00:00:00 2001 From: Jorghi12 Date: Sat, 26 May 2018 00:41:24 -0400 Subject: [PATCH] Adding double/long int signatures for abs Adding overloads for abs that are found in cuda's math_functions. --- hipamd/include/hip/hcc_detail/math_functions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hipamd/include/hip/hcc_detail/math_functions.h b/hipamd/include/hip/hcc_detail/math_functions.h index e717df07c1..e7312f32f2 100644 --- a/hipamd/include/hip/hcc_detail/math_functions.h +++ b/hipamd/include/hip/hcc_detail/math_functions.h @@ -58,6 +58,8 @@ __device__ float expf(float x); __device__ float expm1f(float x); __device__ int abs(int x); __device__ long long abs(long long x); +__device__ double abs(double x); +__device__ long int abs(long int x); __device__ float fabsf(float x); __device__ float fdimf(float x, float y); __device__ float fdividef(float x, float y);