This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
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
Avoid out-of-bounds reads from blas_quick_divide_table on big systems
tags/v0.3.0^2
Martin Kroeker
GitHub
7 years ago
parent
26ce518d46
commit
8145ecd70b
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
common_x86.h
+ 4
- 0
common_x86.h
View File
@@ -179,6 +179,10 @@ static __inline int blas_quickdivide(unsigned int x, unsigned int y){
return result;
#else
if ( y > 64) {
result = x/y;
return result;
}
y = blas_quick_divide_table[y];
__asm__ __volatile__ ("mull %0" :"=d" (result) :"a"(x), "0" (y));
Write
Preview
Loading…
Cancel
Save