From ea8ad522893de0b893cb003c8a6a1a3d10588fe2 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 [ROCm/hip commit: e2318cda74077d0424497a6a00ff590285d8c135] --- projects/hip/include/hip/hcc_detail/hip_complex.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_complex.h b/projects/hip/include/hip/hcc_detail/hip_complex.h index 21995de096..f4af5839ad 100644 --- a/projects/hip/include/hip/hcc_detail/hip_complex.h +++ b/projects/hip/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;