RE: [PATCH] bitops: improve power of 2 alignment function documentation

2025-07-22 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Tuesday, 22 July 2025 10.40 > > On Tue, Jul 22, 2025 at 09:53:21AM +0200, Mattias Rönnblom wrote: > > In the documentation, make clear > > rte_align(32|64)prevpow2() -> , provided is a power of 2. > > > > The original documentat

Re: [PATCH] bitops: improve power of 2 alignment function documentation

2025-07-22 Thread Bruce Richardson
On Tue, Jul 22, 2025 at 09:53:21AM +0200, Mattias Rönnblom wrote: > In the documentation, make clear > rte_align(32|64)prevpow2() -> , provided is a power of 2. > > The original documentation stated the "previous" power of 2 would be > returned, potentially leaving the user to erroneously conclud

[PATCH] bitops: improve power of 2 alignment function documentation

2025-07-22 Thread Mattias Rönnblom
In the documentation, make clear rte_align(32|64)prevpow2() -> , provided is a power of 2. The original documentation stated the "previous" power of 2 would be returned, potentially leaving the user to erroneously conclude that, for example, rte_align32prevpow2(32) -> 16. The rte_align(32|64)pow