summaryrefslogtreecommitdiff
path: root/lib/count-one-bits.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-04-13 19:25:13 +0200
committerBruno Haible <bruno@clisp.org>2008-04-13 19:25:13 +0200
commitd8965b7823ae5167a60fa39ad91b9fdc26280513 (patch)
treebe3f33f08c6eac49864483f13059a3d71cefb82f /lib/count-one-bits.h
parentf2147a3f6a54c0b6134ad3d60472842726a50148 (diff)
downloadgnulib-d8965b7823ae5167a60fa39ad91b9fdc26280513.tar.gz
Work around a HP cc compiler bug.
Diffstat (limited to 'lib/count-one-bits.h')
-rw-r--r--lib/count-one-bits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/count-one-bits.h b/lib/count-one-bits.h
index b1087c3ea2..ae8a5a89bf 100644
--- a/lib/count-one-bits.h
+++ b/lib/count-one-bits.h
@@ -1,5 +1,5 @@
/* count-one-bits.h -- counts the number of 1-bits in a word.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@
return BUILTIN (x);
#else
#define COUNT_ONE_BITS(BUILTIN, TYPE) \
- verify ((TYPE) -1 >> 31 >> 31 <= 3); /* TYPE has at most 64 bits */ \
+ verify (((TYPE) -1 >> 31 >> 31 >> 2) == 0); /* TYPE has at most 64 bits */ \
int count = count_one_bits_32 (x); \
if (1 < (TYPE) -1 >> 31) /* TYPE has more than 32 bits? */ \
count += count_one_bits_32 (x >> 31 >> 1); \