Skip to contentSkip to conversation

Boundary calculation

DISCUSSION Ricardo Biehl Pasquali 2 participants 2 messages Jul 17, 2018

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
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