summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2000-10-04 00:12:59 +0200
committertege <tege@gmplib.org>2000-10-04 00:12:59 +0200
commit43a0551f93f09de2fbaba87c42352cee816fb241 (patch)
tree182bf6ee14a908c482d9607ea849e013326beaa4 /longlong.h
parentfb1d327ea0abdc2d703d1687ebfbf15404528e33 (diff)
downloadgmp-43a0551f93f09de2fbaba87c42352cee816fb241.tar.gz
(count_leading_zeros): Fix typo in last change.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/longlong.h b/longlong.h
index 21852f795..a6f7ab4bf 100644
--- a/longlong.h
+++ b/longlong.h
@@ -1356,7 +1356,7 @@ unsigned char __clz_tab[128];
++__a; \
} \
\
- (count) = W_TYPE_SIZE - __a - __clz_tab[__xr >> __a]; \
+ (count) = W_TYPE_SIZE + 1 - __a - __clz_tab[__xr >> __a]; \
} while (0)
/* This version gives a well-defined value for zero. */
#define COUNT_LEADING_ZEROS_0 (W_TYPE_SIZE - 1)