diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-12-19 20:16:31 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-12-19 20:16:31 +0000 |
commit | 82d0e1f669c193d10a60d071f6cdf4d13b0ddc54 (patch) | |
tree | ac65c0da41f2513e27802e7d0fb1bc7d200fc1e9 /wsutil/sign_ext.h | |
parent | e2c5575e8090f03d3092905e6acd4500dee2940d (diff) |
Another try at marking the ws_sign_ext functions possibly-unused.
svn path=/trunk/; revision=54267
Diffstat (limited to 'wsutil/sign_ext.h')
-rw-r--r-- | wsutil/sign_ext.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/wsutil/sign_ext.h b/wsutil/sign_ext.h index 126d6d0f0a..1acd236f9d 100644 --- a/wsutil/sign_ext.h +++ b/wsutil/sign_ext.h @@ -29,23 +29,27 @@ /* sign extension routines */ -static inline guint32 +static inline guint32 ws_sign_ext32(guint32 val, int no_of_bits) _U_; + +guint32 ws_sign_ext32(guint32 val, int no_of_bits) { if (val & (1 << (no_of_bits-1))) val |= (-1 << no_of_bits); return val; -} _U_; +} -static inline guint64 +static inline guint64 ws_sign_ext64(guint64 val, int no_of_bits) _U_; + +guint64 ws_sign_ext64(guint64 val, int no_of_bits) { if (val & (G_GINT64_CONSTANT(1) << (no_of_bits-1))) val |= (G_GINT64_CONSTANT(-1) << no_of_bits); return val; -} _U_; +} /* static inline guint64 |