/[bison]/bison/lib/hash.c
ViewVC logotype

Diff of /bison/lib/hash.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by eggert, Wed Mar 12 23:08:06 2003 UTC revision 1.12 by eggert, Mon Jun 16 19:41:06 2003 UTC
# Line 31  Line 31 
31  # include <stdlib.h>  # include <stdlib.h>
32  #endif  #endif
33    
34    #include <limits.h>
35  #include <stdbool.h>  #include <stdbool.h>
36  #include <stdio.h>  #include <stdio.h>
37    
# Line 403  hash_do_for_each (const Hash_table *tabl Line 404  hash_do_for_each (const Hash_table *tabl
404  unsigned  unsigned
405  hash_string (const char *string, unsigned n_buckets)  hash_string (const char *string, unsigned n_buckets)
406  {  {
 # ifndef CHAR_BIT  
 #  define CHAR_BIT 8  
 # endif  
407  # define ROTATE_LEFT(Value, Shift) \  # define ROTATE_LEFT(Value, Shift) \
408    ((Value) << (Shift) | (Value) >> ((sizeof (unsigned) * CHAR_BIT) - (Shift)))    ((Value) << (Shift) | (Value) >> ((sizeof (unsigned) * CHAR_BIT) - (Shift)))
409  # define HASH_ONE_CHAR(Value, Byte) \  # define HASH_ONE_CHAR(Value, Byte) \

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26