Re: [ovs-dev] [PATCH] hash: Convert macros to inline functions.

2012-02-01 Thread Ethan Jackson
Looks good, Ethan On Wed, Jan 18, 2012 at 11:30, Ben Pfaff wrote: > I always assumed that macros would generate better code.  I was wrong.  The > generated code was identical with inline functions, with GCC version 4.4.5. > > Signed-off-by: Ben Pfaff > --- >  lib/hash.c |   12 ++-- >  l

[ovs-dev] [PATCH] hash: Convert macros to inline functions.

2012-01-18 Thread Ben Pfaff
I always assumed that macros would generate better code. I was wrong. The generated code was identical with inline functions, with GCC version 4.4.5. Signed-off-by: Ben Pfaff --- lib/hash.c | 12 ++-- lib/hash.h | 50 -- 2 files chang