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
Zero ecx with a mov instruction
PGI assembler does not like the initialization in the constraints.
tags/v0.3.7
Martin Kroeker
GitHub
6 years ago
parent
6d3efb2b58
commit
bbd4bb0154
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
3 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-2
common_x86_64.h
+ 3
- 2
common_x86_64.h
View File
@@ -129,12 +129,13 @@ static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){
*ecx=cpuinfo[2];
*ecx=cpuinfo[2];
*edx=cpuinfo[3];
*edx=cpuinfo[3];
#else
#else
__asm__ __volatile__("cpuid"
__asm__ __volatile__("mov %%ecx, 0;"
"cpuid"
: "=a" (*eax),
: "=a" (*eax),
"=b" (*ebx),
"=b" (*ebx),
"=c" (*ecx),
"=c" (*ecx),
"=d" (*edx)
"=d" (*edx)
: "0" (op)
, "c"(0)
);
: "0" (op));
#endif
#endif
}
}
Write
Preview
Loading…
Cancel
Save