Skip to content

Commit 9db0fb8

Browse files
committed
bugfix for sdsdot
1 parent 692b14c commit 9db0fb8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

common_s.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define SCOPY_K scopy_k
1818
#define SDOTU_K sdot_k
1919
#define SDOTC_K sdot_k
20-
#define SDSDOT_K sdot_k
20+
#define SDSDOT_K dsdot_k
2121
#define DSDOT_K dsdot_k
2222
#define SNRM2_K snrm2_k
2323
#define SSCAL_K sscal_k
@@ -162,7 +162,7 @@
162162
#define SCOPY_K gotoblas -> scopy_k
163163
#define SDOTU_K gotoblas -> sdot_k
164164
#define SDOTC_K gotoblas -> sdot_k
165-
#define SDSDOT_K gotoblas -> sdot_k
165+
#define SDSDOT_K gotoblas -> dsdot_k
166166
#define DSDOT_K gotoblas -> dsdot_k
167167
#define SNRM2_K gotoblas -> snrm2_k
168168
#define SSCAL_K gotoblas -> sscal_k

interface/sdsdot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ FLOATRET NAME(blasint *N, FLOAT *a, FLOAT *x, blasint *INCX, FLOAT *y, blasint *
5252
FLOATRET ret;
5353

5454
PRINT_DEBUG_NAME;
55-
56-
if (n <= 0) return 0.;
55+
56+
if (n <= 0) return(*a) ;
5757

5858
IDEBUG_START;
5959

@@ -80,7 +80,7 @@ FLOAT CNAME(blasint n, FLOAT alpha, FLOAT *x, blasint incx, FLOAT *y, blasint in
8080

8181
PRINT_DEBUG_CNAME;
8282

83-
if (n <= 0) return 0.;
83+
if (n <= 0) return (alpha);
8484

8585
IDEBUG_START;
8686

kernel/Makefile.L1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ $(KDIR)sdot_k$(TSUFFIX).$(SUFFIX) $(KDIR)sdot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNEL
674674
$(CC) -c $(CFLAGS) -UCOMPLEX -UDOUBLE $< -o $@
675675

676676
$(KDIR)sdsdot_k$(TSUFFIX).$(SUFFIX) $(KDIR)sdsdot_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(SDOTKERNEL)
677-
$(CC) -c $(CFLAGS) -UCOMPLEX -UDOUBLE $< -o $@
677+
$(CC) -c $(CFLAGS) -UCOMPLEX -UDOUBLE -DDSDOT $< -o $@
678678

679679
$(KDIR)zdotu_k$(TSUFFIX).$(SUFFIX) $(KDIR)zdotu_k$(TPSUFFIX).$(PSUFFIX) : $(KERNELDIR)/$(ZDOTKERNEL)
680680
$(CC) -c $(CFLAGS) -DCOMPLEX -DDOUBLE -UCONJ $< -o $@

0 commit comments

Comments
 (0)