Re: [ovs-dev] [PATCH] lib/util: More portable use of builtin popcnt.

2013-12-12 Thread Jarno Rajahalme
Thanks, pushed! Jarno On Dec 11, 2013, at 9:25 PM, Simon Horman wrote: > On Wed, Dec 11, 2013 at 03:41:19PM -0800, Jarno Rajahalme wrote: >> - Use the GCC predefined macro __POPCNT__ to detect the availability >> of fast __builtin_popcnt function. >> - Use portable preprocessor macros

Re: [ovs-dev] [PATCH] lib/util: More portable use of builtin popcnt.

2013-12-11 Thread Simon Horman
On Wed, Dec 11, 2013 at 03:41:19PM -0800, Jarno Rajahalme wrote: > - Use the GCC predefined macro __POPCNT__ to detect the availability > of fast __builtin_popcnt function. > - Use portable preprocessor macros to detect 64-bit build. > - Only define the 32-bit parts when needed and declare the >

[ovs-dev] [PATCH] lib/util: More portable use of builtin popcnt.

2013-12-11 Thread Jarno Rajahalme
- Use the GCC predefined macro __POPCNT__ to detect the availability of fast __builtin_popcnt function. - Use portable preprocessor macros to detect 64-bit build. - Only define the 32-bit parts when needed and declare the count_1bits_8 at file scope to silence a warning. This time I have teste