Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow negative INC_X in arm64 ThunderX2T99 and Apple M ?NRM2 #4552

Merged
merged 2 commits into from
Mar 12, 2024
Merged
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
2 changes: 1 addition & 1 deletion kernel/arm64/dznrm2_thunderx2t99.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
#endif
FLOAT ssq, scale;

if (n <= 0 || inc_x <= 0) return 0.0;
if (n <= 0 || inc_x == 0) return 0.0;

#if defined(SMP)
if (n <= 10000)
Expand Down
2 changes: 1 addition & 1 deletion kernel/arm64/scnrm2_thunderx2t99.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
FLOAT nrm2 = 0.0;
double nrm2_double = 0.0;

if (n <= 0 || inc_x <= 0) return 0.0;
if (n <= 0 || inc_x == 0) return 0.0;

#if defined(SMP)
if (n <= 10000)
Expand Down
Loading