Fix CREAL,CIMAG macros for PGI
This commit is contained in:
parent
9254a701f3
commit
ea26b00c06
5
common.h
5
common.h
|
@ -556,8 +556,13 @@ static void __inline blas_lock(volatile BLASULONG *address){
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(C_PGI) || defined(C_SUN)
|
#if defined(C_PGI) || defined(C_SUN)
|
||||||
|
#if defined(__STDC_IEC_559_COMPLEX__)
|
||||||
|
#define CREAL(X) creal(X)
|
||||||
|
#define CIMAG(X) cimag(X)
|
||||||
|
#else
|
||||||
#define CREAL(X) (*((FLOAT *)&X + 0))
|
#define CREAL(X) (*((FLOAT *)&X + 0))
|
||||||
#define CIMAG(X) (*((FLOAT *)&X + 1))
|
#define CIMAG(X) (*((FLOAT *)&X + 1))
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifdef OPENBLAS_COMPLEX_STRUCT
|
#ifdef OPENBLAS_COMPLEX_STRUCT
|
||||||
#define CREAL(Z) ((Z).real)
|
#define CREAL(Z) ((Z).real)
|
||||||
|
|
Loading…
Reference in New Issue