]> git.pld-linux.org Git - packages/cpuid.git/blob - cpuid-x32.patch
- added x32 patch, build on x32 too; release 2
[packages/cpuid.git] / cpuid-x32.patch
1 --- cpuid-20150606/cpuid.c.orig 2015-06-07 02:03:14.000000000 +0200
2 +++ cpuid-20150606/cpuid.c      2015-06-26 23:16:36.966332168 +0200
3 @@ -3367,7 +3367,7 @@
4  static int bits_needed(unsigned long  v)
5  {
6     int  result;
7 -#ifdef __x86_64
8 +#if defined(__x86_64) && !defined(__ILP32__)
9     asm("movq %[v],%%rax;"
10         "movq $0,%%rcx;"
11         "movl $0,%[result];"
This page took 0.158455 seconds and 4 git commands to generate.