X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/eaef5507fcebaafa7e713139bc7eb9910a6ab5de..4bfd5e4e5373627074d31ec2f15b2eb1947b8f5c:/lib/bitset_stats.c?ds=inline diff --git a/lib/bitset_stats.c b/lib/bitset_stats.c index e1692d88..70acd977 100644 --- a/lib/bitset_stats.c +++ b/lib/bitset_stats.c @@ -1,5 +1,5 @@ /* Bitset statistics. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Michael Hayes (m.hayes@elec.canterbury.ac.nz). This program is free software; you can redistribute it and/or modify @@ -39,12 +39,8 @@ #include #include -#ifdef HAVE_GETTEXT_H #include "gettext.h" #define _(Msgid) gettext (Msgid) -#else -#define _(Msgid) Msgid -#endif /* Configuration macros. */ #define BITSET_STATS_FILE "bitset.dat" @@ -164,8 +160,8 @@ bitset_log_histogram_print (FILE *file, const char *name, const char *msg, for (; i < n_bins; i++) fprintf (file, "%*lu-%lu\t%8u (%5.1f%%)\n", max_width - ((unsigned int) (0.30103 * (i) + 0.9999) + 1), - (unsigned long) 1 << (i - 1), - ((unsigned long) 1 << i) - 1, + 1UL << (i - 1), + (1UL << i) - 1, bins[i], (100.0 * bins[i]) / total); }