Re: [ovs-dev] [PATCH] util: Use MSVC compiler intrinsic for clz and ctz.

2014-10-06 Thread Gurucharan Shetty
On Mon, Oct 6, 2014 at 3:51 PM, Ben Pfaff wrote: > On Mon, Oct 06, 2014 at 10:40:50AM -0700, Gurucharan Shetty wrote: >> Using the compiler intrinsic shows approximately around 25% speed >> up with some classifier specific unit tests. >> >> Signed-off-by: Gurucharan Shetty > > Nice! > > I don't t

Re: [ovs-dev] [PATCH] util: Use MSVC compiler intrinsic for clz and ctz.

2014-10-06 Thread Ben Pfaff
On Mon, Oct 06, 2014 at 10:40:50AM -0700, Gurucharan Shetty wrote: > Using the compiler intrinsic shows approximately around 25% speed > up with some classifier specific unit tests. > > Signed-off-by: Gurucharan Shetty Nice! I don't think that the "& 0x" operations are necessary

[ovs-dev] [PATCH] util: Use MSVC compiler intrinsic for clz and ctz.

2014-10-06 Thread Gurucharan Shetty
Using the compiler intrinsic shows approximately around 25% speed up with some classifier specific unit tests. Signed-off-by: Gurucharan Shetty --- lib/util.c |2 +- lib/util.h | 36 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/lib/uti