mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 19:28:26 +02:00
957731ef89
Signed-off-by: Luka Perkov <openwrt@lukaperkov.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31169 3c298f89-4303-0410-b956-a3cf2f4a3e73
15 lines
459 B
Diff
15 lines
459 B
Diff
--- a/longlong.h
|
|
+++ b/longlong.h
|
|
@@ -994,8 +994,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 */
|
|
|