diff options
author | acoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-09 13:28:57 +0000 |
---|---|---|
committer | acoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-09 13:28:57 +0000 |
commit | 980677d661dd9cd07ac5d9b53848079e5bd12cc9 (patch) | |
tree | ba2b873f52982a90780e6f008065c83163076d80 /tools/gmp/patches/000-OE-amd64.patch | |
parent | a747801bd225a63c6a37c1a156b7dba090890023 (diff) |
tools/gmp: update to version 5.0.1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24380 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/gmp/patches/000-OE-amd64.patch')
-rw-r--r-- | tools/gmp/patches/000-OE-amd64.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/gmp/patches/000-OE-amd64.patch b/tools/gmp/patches/000-OE-amd64.patch new file mode 100644 index 0000000000..957a7224ea --- /dev/null +++ b/tools/gmp/patches/000-OE-amd64.patch @@ -0,0 +1,16 @@ +Index: gmp-5.0.1/longlong.h +=================================================================== +--- gmp-5.0.1.orig/longlong.h ++++ gmp-5.0.1/longlong.h +@@ -849,8 +849,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ( + count is only an int. */ + #define count_trailing_zeros(count, x) \ + do { \ ++ UDItype __cbtmp; \ + ASSERT ((x) != 0); \ +- __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \ ++ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \ ++ (count) = __cbtmp; \ + } while (0) + #endif /* x86_64 */ + |