diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-09 04:47:08 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-09 04:47:08 +0000 |
commit | 9297c9e7809e9116faf7b73dbb97a39ed75995bf (patch) | |
tree | 7f9b599c3cd5d1470276b43864d25e9a3e581eeb /epan | |
parent | 3aaf560877c6977aae0084f7f99944cc314791c3 (diff) | |
download | wireshark-9297c9e7809e9116faf7b73dbb97a39ed75995bf.tar.gz |
Rename swar_count_bits() to ws_count_ones()
Try to make ws_count_ones() inline function.
svn path=/trunk/; revision=53178
Diffstat (limited to 'epan')
-rw-r--r-- | epan/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c index 07c775bd01..d183aed107 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -31,7 +31,7 @@ #include <float.h> #include <wsutil/bits_ctz.h> -#include <wsutil/swar.h> +#include <wsutil/bits_count_ones.h> #include "packet.h" #include "ptvcursor.h" @@ -3127,7 +3127,7 @@ proto_tree_set_int(field_info *fi, gint32 value) /* Shift bits */ integer >>= hfinfo_bitshift(hfinfo); - no_of_bits = swar_count_bits(hfinfo->bitmask); + no_of_bits = ws_count_ones(hfinfo->bitmask); if (integer & (1 << (no_of_bits-1))) integer |= (-1 << no_of_bits); } |