Re: [libvirt] [PATCH v3 1/6] internal: add macro to round value to the next closest power of 2

2014-11-24 Thread Peter Krempa
On 11/20/14 20:21, Pavel Hrdina wrote: There are two special cases, if the input number is 0 or the number is larger then 2^31 (for 32bit unsigned int). For the special cases the return value is 0 because they cannot be rounded. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1076098

[libvirt] [PATCH v3 1/6] internal: add macro to round value to the next closest power of 2

2014-11-20 Thread Pavel Hrdina
There are two special cases, if the input number is 0 or the number is larger then 2^31 (for 32bit unsigned int). For the special cases the return value is 0 because they cannot be rounded. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1076098 Signed-off-by: Pavel Hrdina