From 58a476abc255f1ead80dff8cd862989087489f0e Mon Sep 17 00:00:00 2001 From: Sarbojit2019 <52527887+SarbojitAMD@users.noreply.github.com> Date: Fri, 4 Oct 2019 13:38:02 +0530 Subject: [PATCH] Removed definition of abs(), real() & imag() from hip_complex.h (#1448) Addresses SWDEV-201461. --- include/hip/hcc_detail/hip_complex.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/include/hip/hcc_detail/hip_complex.h b/include/hip/hcc_detail/hip_complex.h index 75930c469e..4acee9e235 100644 --- a/include/hip/hcc_detail/hip_complex.h +++ b/include/hip/hcc_detail/hip_complex.h @@ -301,20 +301,4 @@ __device__ __host__ static inline hipDoubleComplex hipCfma(hipDoubleComplex p, h return make_hipDoubleComplex(real, imag); } -// Complex functions returning real numbers. -#define __DEFINE_HIP_COMPLEX_REAL_FUN(func, hipFun) \ -__device__ __host__ inline float func(const hipFloatComplex& z) { return hipFun##f(z); } \ -__device__ __host__ inline double func(const hipDoubleComplex& z) { return hipFun(z); } - -__DEFINE_HIP_COMPLEX_REAL_FUN(abs, hipCabs) -__DEFINE_HIP_COMPLEX_REAL_FUN(real, hipCreal) -__DEFINE_HIP_COMPLEX_REAL_FUN(imag, hipCimag) - -// Complex functions returning complex numbers. -#define __DEFINE_HIP_COMPLEX_FUN(func, hipFun) \ -__device__ __host__ inline hipFloatComplex func(const hipFloatComplex& z) { return hipFun##f(z); } \ -__device__ __host__ inline hipDoubleComplex func(const hipDoubleComplex& z) { return hipFun(z); } - -__DEFINE_HIP_COMPLEX_FUN(conj, hipConj) - -#endif +#endif //HIP_INCLUDE_HIP_HCC_DETAIL_HIP_COMPLEX_H