This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
OSchip
/
OpenBLAS
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
66
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fix index variable
pull/4829/head
Martin Kroeker
GitHub
1 year ago
parent
bb992395f0
commit
3aab164f02
No known key found for this signature in database
GPG Key ID:
B5690EEEBB952194
1 changed files
with
18 additions
and
18 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+18
-18
kernel/zarch/dscal.c
+ 18
- 18
kernel/zarch/dscal.c
View File
@@ -96,28 +96,28 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da, FLOAT *x,
if (inc_x == 1) {
if (da == 0.0) {
if (dummy2 == 0) {
BLASLONG n1 = n & -16;
if (n1 > 0) {
dscal_kernel_16_zero(n1, x);
j = n1;
}
while (j < n) {
BLASLONG n1 = n & -16;
if (n1 > 0) {
dscal_kernel_16_zero(n1, x);
j = n1;
}
x[j] = 0.0;
j++;
}
} else {
while (j < n) {
if (!isnan(x[i])&& !isinf(x[i]))
x[i] = 0.0;
else
x[i] = NAN;
j++;
while (j < n) {
x[j] = 0.0;
j++;
}
} else {
while (j < n) {
if (isfinite(x[j]))
x[j] = 0.0;
else
x[j] = NAN;
j++;
}
}
} else {
BLASLONG n1 = n & -16;
Write
Preview
Loading…
Cancel
Save