Skip to content

Commit 3628b22

Browse files
authored
Merge pull request #3064 from martin-frbg/issue3063
Add cblas_crotg, cblas_zrotg, cblas_csrot and cblas_zdrot
2 parents af2b0d0 + 25c986d commit 3628b22

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

cblas.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,14 @@ void cblas_zswap(OPENBLAS_CONST blasint n, void *x, OPENBLAS_CONST blasint incx,
125125

126126
void cblas_srot(OPENBLAS_CONST blasint N, float *X, OPENBLAS_CONST blasint incX, float *Y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST float c, OPENBLAS_CONST float s);
127127
void cblas_drot(OPENBLAS_CONST blasint N, double *X, OPENBLAS_CONST blasint incX, double *Y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST double c, OPENBLAS_CONST double s);
128+
void cblas_csrot(OPENBLAS_CONST blasint n, OPENBLAS_CONST void *x, OPENBLAS_CONST blasint incx, void *y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST float c, OPENBLAS_CONST float s);
129+
void cblas_zdrot(OPENBLAS_CONST blasint n, OPENBLAS_CONST void *x, OPENBLAS_CONST blasint incx, void *y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST double c, OPENBLAS_CONST double s);
128130

129131
void cblas_srotg(float *a, float *b, float *c, float *s);
130132
void cblas_drotg(double *a, double *b, double *c, double *s);
133+
void cblas_crotg(void *a, void *b, float *c, void *s);
134+
void cblas_zrotg(void *a, void *b, double *c, void *s);
135+
131136

132137
void cblas_srotm(OPENBLAS_CONST blasint N, float *X, OPENBLAS_CONST blasint incX, float *Y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST float *P);
133138
void cblas_drotm(OPENBLAS_CONST blasint N, double *X, OPENBLAS_CONST blasint incX, double *Y, OPENBLAS_CONST blasint incY, OPENBLAS_CONST double *P);

interface/Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ CCBLAS1OBJS = \
316316
cblas_cscal.$(SUFFIX) cblas_csscal.$(SUFFIX) \
317317
cblas_cswap.$(SUFFIX) cblas_scnrm2.$(SUFFIX) \
318318
cblas_caxpby.$(SUFFIX) \
319-
cblas_icmin.$(SUFFIX) cblas_icmax.$(SUFFIX) cblas_scsum.$(SUFFIX)
319+
cblas_icmin.$(SUFFIX) cblas_icmax.$(SUFFIX) cblas_scsum.$(SUFFIX) cblas_csrot.$(SUFFIX) cblas_crotg.$(SUFFIX)
320320

321321
CCBLAS2OBJS = \
322322
cblas_cgemv.$(SUFFIX) cblas_cgerc.$(SUFFIX) cblas_cgeru.$(SUFFIX) \
@@ -346,7 +346,7 @@ CZBLAS1OBJS = \
346346
cblas_zscal.$(SUFFIX) cblas_zdscal.$(SUFFIX) \
347347
cblas_zswap.$(SUFFIX) cblas_dznrm2.$(SUFFIX) \
348348
cblas_zaxpby.$(SUFFIX) \
349-
cblas_izmin.$(SUFFIX) cblas_izmax.$(SUFFIX) cblas_dzsum.$(SUFFIX)
349+
cblas_izmin.$(SUFFIX) cblas_izmax.$(SUFFIX) cblas_dzsum.$(SUFFIX) cblas_zdrot.$(SUFFIX) cblas_zrotg.$(SUFFIX)
350350

351351

352352
CZBLAS2OBJS = \
@@ -1634,6 +1634,12 @@ cblas_srotg.$(SUFFIX) cblas_srotg.$(PSUFFIX): rotg.c
16341634
cblas_drotg.$(SUFFIX) cblas_drotg.$(PSUFFIX): rotg.c
16351635
$(CC) $(CFLAGS) -DCBLAS -c $< -o $(@F)
16361636

1637+
cblas_crotg.$(SUFFIX) crotg.$(PSUFFIX): zrotg.c
1638+
$(CC) -c $(CFLAGS) -DCBLAS $< -o $(@F)
1639+
1640+
cblas_zrotg.$(SUFFIX) zrotg.$(PSUFFIX): zrotg.c
1641+
$(CC) -c $(CFLAGS) -DCBLAS $< -o $(@F)
1642+
16371643
cblas_srotm.$(SUFFIX) cblas_srotm.$(PSUFFIX): rotm.c
16381644
$(CC) $(CFLAGS) -DCBLAS -c $< -o $(@F)
16391645

@@ -1664,6 +1670,12 @@ cblas_csscal.$(SUFFIX) cblas_csscal.$(PSUFFIX) : zscal.c
16641670
cblas_zdscal.$(SUFFIX) cblas_zdscal.$(PSUFFIX) : zscal.c
16651671
$(CC) $(CFLAGS) -DCBLAS -c -DSSCAL $< -o $(@F)
16661672

1673+
cblas_csrot.$(SUFFIX) cblas_csrot.$(PSUFFIX) : zrot.c
1674+
$(CC) $(CFLAGS) -DCBLAS -c $< -o $(@F)
1675+
1676+
cblas_zdrot.$(SUFFIX) cblas_zdrot.$(PSUFFIX) : zrot.c
1677+
$(CC) $(CFLAGS) -DCBLAS -c $< -o $(@F)
1678+
16671679
ifeq ($(BUILD_BFLOAT16),1)
16681680
cblas_sbgemv.$(SUFFIX) cblas_sbgemv.$(PSUFFIX) : sbgemv.c
16691681
$(CC) -DCBLAS -c $(CFLAGS) $< -o $(@F)

0 commit comments

Comments
 (0)