/[gentoo-x86]/net-libs/nativebiginteger/files/nativebiginteger-0.8.7-asmfix.patch
Gentoo

Contents of /net-libs/nativebiginteger/files/nativebiginteger-0.8.7-asmfix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Jul 31 18:20:59 2011 UTC (9 years, 3 months ago) by tommy
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Version bump, partly based on ebuilds by Dennis Schridde, fixes bug 376971

(Portage version: 2.2.0_alpha47-r1/cvs/Linux x86_64)

1 --- c/jcpuid/src/jcpuid.c 2008-10-06 09:44:53.000000000 -0400
2 +++ c/jcpuid/src/jcpuid.c.new2 2010-12-27 09:41:53.000000000 -0500
3 @@ -19,6 +19,7 @@
4 mov d, edx
5 }
6 #else
7 + #ifdef _LP64
8 //Use GCC assembler notation
9 asm
10 (
11 @@ -29,6 +30,20 @@
12 "=d"(d)
13 :"a"(iFunction)
14 );
15 + #elif defined(__i386__)
16 + asm
17 + (
18 + "pushl %%ebx\n\t"
19 + "cpuid\n\t"
20 + "movl %%ebx, %%edi\n\t"
21 + "popl %%ebx"
22 + : "=a" (a),
23 + "=D" (b),
24 + "=c" (c),
25 + "=d" (d)
26 + :"a"(iFunction)
27 + );
28 + #endif
29 #endif
30 return (*env)->NewObject(env, clsResult,constructor,a,b,c,d);
31 }

  ViewVC Help
Powered by ViewVC 1.1.20