projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f1fb28
)
fix for -m32
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Fri, 23 Jan 2015 14:26:43 +0000
(17:26 +0300)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Fri, 23 Jan 2015 14:26:48 +0000
(17:26 +0300)
modules/core/src/system.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/system.cpp
b/modules/core/src/system.cpp
index
b6f3466
..
2590f21
100644
(file)
--- a/
modules/core/src/system.cpp
+++ b/
modules/core/src/system.cpp
@@
-293,14
+293,13
@@
struct HWFeatures
#else
asm volatile
(
- "pushl %%eax\n\t"
- "pushl %%edx\n\t"
+ "pushl %%ebx\n\t"
"movl $7,%%eax\n\t"
"movl $0,%%ecx\n\t"
"cpuid\n\t"
- "
popl %%edx
\n\t"
- "popl %%e
a
x\n\t"
- : "=
b
"(cpuid_data[1]), "=c"(cpuid_data[2])
+ "
movl %%ebx, %0
\n\t"
+ "popl %%e
b
x\n\t"
+ : "=
r
"(cpuid_data[1]), "=c"(cpuid_data[2])
:
: "cc"
);