Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
change old GNU keyword __real__ __imag__ to CREAL, CIMAG macro
  • Loading branch information
mdong committed Jun 24, 2016
commit a722056e763a01aae0fb15f6d8a1843c8abc825d
12 changes: 6 additions & 6 deletions kernel/x86_64/cdot.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ FLOAT _Complex CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG in

if ( n <= 0 )
{
__real__ result = 0.0 ;
__imag__ result = 0.0 ;
CREAL(result) = 0.0 ;
CIMAG(result) = 0.0 ;
return(result);

}
Expand Down Expand Up @@ -161,11 +161,11 @@ FLOAT _Complex CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG in
}

#if !defined(CONJ)
__real__ result = dot[0] - dot[1];
__imag__ result = dot[4] + dot[5];
CREAL(result) = dot[0] - dot[1];
CIMAG(result) = dot[4] + dot[5];
#else
__real__ result = dot[0] + dot[1];
__imag__ result = dot[4] - dot[5];
CREAL(result) = dot[0] + dot[1];
CIMAG(result) = dot[4] - dot[5];

#endif

Expand Down
12 changes: 6 additions & 6 deletions kernel/x86_64/zdot.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ FLOAT _Complex CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG in

if ( n <= 0 )
{
__real__ result = 0.0 ;
__imag__ result = 0.0 ;
CREAL(result) = 0.0 ;
CIMAG(result) = 0.0 ;
return(result);

}
Expand Down Expand Up @@ -151,11 +151,11 @@ FLOAT _Complex CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG in
}

#if !defined(CONJ)
__real__ result = dot[0] - dot[1];
__imag__ result = dot[2] + dot[3];
CREAL(result) = dot[0] - dot[1];
CIMAG(result) = dot[2] + dot[3];
#else
__real__ result = dot[0] + dot[1];
__imag__ result = dot[2] - dot[3];
CREAL(result) = dot[0] + dot[1];
CIMAG(result) = dot[2] - dot[3];

#endif

Expand Down