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