From f85d7b7d97933d8f4d2df49a513f16a758417c7c Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 11 Jan 2017 18:23:37 -0600 Subject: [PATCH] changed data type used for complex Change-Id: I0a3bb281af3d5ac1290207821c7c45aea40f513f --- hipamd/include/hip/hcc_detail/hip_complex.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hipamd/include/hip/hcc_detail/hip_complex.h b/hipamd/include/hip/hcc_detail/hip_complex.h index 21995de096..f4af5839ad 100644 --- a/hipamd/include/hip/hcc_detail/hip_complex.h +++ b/hipamd/include/hip/hcc_detail/hip_complex.h @@ -23,10 +23,8 @@ THE SOFTWARE. #ifndef HIPCOMPLEX_H #define HIPCOMPLEX_H -typedef struct{ - float x; - float y; -}hipFloatComplex; +typedef float2 hipFloatComplex; +typedef double2 hipDoubleComplex; __device__ static inline float hipCrealf(hipFloatComplex z){ return z.x; @@ -79,10 +77,6 @@ __device__ static inline float hipCabsf(hipFloatComplex z){ } -typedef struct{ - double x; - double y; -}hipDoubleComplex; __device__ static inline double hipCreal(hipDoubleComplex z){ return z.x;