Modify complex CBLAS functions to take void pointers

Modify complex CBLAS functions to take void pointers instead of float or double arguments (to bring the prototypes in line with netlib and other implementations' cblas.h)
This commit is contained in:
Martin Kroeker
2017-11-05 15:53:14 +01:00
committed by GitHub
parent 66ac898f64
commit 2c222f1faa
31 changed files with 234 additions and 77 deletions
+9 -4
View File
@@ -117,10 +117,15 @@ void NAME(char *UPLO, blasint *N, FLOAT *ALPHA,
void CNAME(enum CBLAS_ORDER order,
enum CBLAS_UPLO Uplo,
blasint n,
FLOAT *ALPHA,
FLOAT *x, blasint incx,
FLOAT *y, blasint incy,
FLOAT *a) {
void *VALPHA,
void *vx, blasint incx,
void *vy, blasint incy,
void *va) {
FLOAT* ALPHA = (FLOAT*) VALPHA;
FLOAT* x = (FLOAT*) vx;
FLOAT* y = (FLOAT*) vy;
FLOAT* a = (FLOAT*) va;
FLOAT alpha_r = ALPHA[0];
FLOAT alpha_i = ALPHA[1];