Re: [dpdk-dev] [PATCH v4] eal: add API to align integer to previous power of 2

2018-04-04 Thread Thomas Monjalon
04/04/2018 15:20, Pavan Nikhilesh: > Add 32b and 64b API's to align the given integer to the previous power > of 2. Update common auto test to include test for previous power of 2 for > both 32 and 64bit integers. > > Signed-off-by: Pavan Nikhilesh Applied, thanks

[dpdk-dev] [PATCH v4] eal: add API to align integer to previous power of 2

2018-04-04 Thread Pavan Nikhilesh
Add 32b and 64b API's to align the given integer to the previous power of 2. Update common auto test to include test for previous power of 2 for both 32 and 64bit integers. Signed-off-by: Pavan Nikhilesh --- v4 Changes: - Squash patchset into a single patch. - Use %PRIu64 instead of %lu lib/