This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: readelf and % of bits sets
- From: Roland McGrath <roland at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 11 Jan 2011 09:50:56 -0800
- Subject: Re: readelf and % of bits sets
> The formula taken is the following:
>
> %set = (nbits * 100 + 50) / (nb_bitmask_words * sizeof(bitmask_word) * 8);
>
> Do you have any hint on why there is this + 50 that corresponds to adding
> half a bit in the bit set ?
That sounds like rounding up to me.