Ricardo Biehl Pasquali wrote: > Clemens Ladisch wrote: >> 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