Boundary calculation
Have you addressed your reply to pasqualirb at gmail.com? I have not received in my mail neither yours nor Takashi's reply. I had to copy manually the headers and the message.
Thanks!
Quoted 1 line · Clemens Ladisch
To ensure that the factor is a power of two.
Ok, but why LONG_MAX - buffer_size?
Quoted 4 lines · Ricardo Biehl Pasquali
Quoted 1 line · Clemens Ladisch
To ensure that the factor is a power of two.
Ok, but why
LONG_MAX-buffer_size?
To ensure that adding the position in the buffer to the current pointer will not overflow.
Regards,
Clemens