diff options
Diffstat (limited to 'meta/recipes-support/gmp/gmp-6.0.0/amd64.patch')
-rw-r--r-- | meta/recipes-support/gmp/gmp-6.0.0/amd64.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp-6.0.0/amd64.patch b/meta/recipes-support/gmp/gmp-6.0.0/amd64.patch new file mode 100644 index 0000000000..564d12d42b --- /dev/null +++ b/meta/recipes-support/gmp/gmp-6.0.0/amd64.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Index: gmp-5.0.3/longlong.h | ||
4 | =================================================================== | ||
5 | --- gmp-5.0.3.orig/longlong.h | ||
6 | +++ gmp-5.0.3/longlong.h | ||
7 | @@ -994,8 +994,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( | ||
8 | count is only an int. */ | ||
9 | #define count_trailing_zeros(count, x) \ | ||
10 | do { \ | ||
11 | + UDItype __cbtmp; \ | ||
12 | ASSERT ((x) != 0); \ | ||
13 | - __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ | ||
14 | + __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ | ||
15 | + (count) = __cbtmp; \ | ||
16 | } while (0) | ||
17 | #endif /* x86_64 */ | ||
18 | |||