Re: Boundary calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux