[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: base64
From: |
Paul Eggert |
Subject: |
Re: [bug-gnulib] Re: base64 |
Date: |
Sat, 27 Nov 2004 21:41:55 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Simon Josefsson <address@hidden> writes:
> does your proof require that SIZE_MAX is a power of two? (For the
> "we lost at least half of the correct value".)
C99 guarantees that SIZE_MAX is one less than a power of two, and
I don't know of any pre-C99 implementations where it wasn't.
One other fairly subtle point: his proof also relies on the fact that
either (A) INT_MAX < SIZE_MAX, or (B) signed integer arithmetic is
two's complement, without runtime overflow checking. But you needn't
worry about this, as (B) is already listed as a gnulib assumption.
- Re: [bug-gnulib] Re: base64, (continued)
- Re: [bug-gnulib] Re: base64, Paul Eggert, 2004/11/27
- Re: [bug-gnulib] Re: base64, Stepan Kasal, 2004/11/27
- [bug-gnulib] Re: base64, Simon Josefsson, 2004/11/27
- Re: [bug-gnulib] Re: base64, Paul Eggert, 2004/11/27
- [bug-gnulib] Re: base64, Simon Josefsson, 2004/11/27
- Re: [bug-gnulib] Re: base64, Stepan Kasal, 2004/11/27
- [bug-gnulib] Re: base64, Simon Josefsson, 2004/11/27
- Re: [bug-gnulib] Re: base64,
Paul Eggert <=