projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49a8b8f
)
x86: Fix for VS2005
author
David Schleef
<ds@entropywave.com>
Sun, 27 Mar 2011 06:14:06 +0000
(06:14 +0000)
committer
David Schleef
<ds@entropywave.com>
Sun, 27 Mar 2011 06:14:06 +0000
(06:14 +0000)
orc/orccpu-x86.c
patch
|
blob
|
history
diff --git
a/orc/orccpu-x86.c
b/orc/orccpu-x86.c
index
d3fd9ed
..
2fdd29a
100644
(file)
--- a/
orc/orccpu-x86.c
+++ b/
orc/orccpu-x86.c
@@
-64,12
+64,19
@@
get_cpuid (orc_uint32 op, orc_uint32 *a, orc_uint32 *b, orc_uint32 *c, orc_uint3
static void
get_cpuid_ecx (orc_uint32 op, orc_uint32 init_ecx, orc_uint32 *a, orc_uint32 *b, orc_uint32 *c, orc_uint32 *d)
{
+#if _MSC_VER >= 1500
int tmp[4];
__cpuidex(tmp, op, init_ecx);
*a = tmp[0];
*b = tmp[1];
*c = tmp[2];
*d = tmp[3];
+#else
+ *a = 0;
+ *b = 0;
+ *c = 0;
+ *d = 0;
+#endif
}
#elif defined(__GNUC__) || defined (__SUNPRO_C)