diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2018-10-27 03:52:05 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-29 02:14:19 +0100 |
commit | 3a457a08f2cb7d2b3a7279bf2340486eb65c41e0 (patch) | |
tree | f79def2275e5e0a573cc552c586a3a168fdf8ef9 /ewah/ewok_rlw.h | |
parent | fetch-object.h: add missing declaration (hdr-check) (diff) | |
download | git-3a457a08f2cb7d2b3a7279bf2340486eb65c41e0.tar.xz git-3a457a08f2cb7d2b3a7279bf2340486eb65c41e0.zip |
ewok_rlw.h: add missing 'inline' to function definition
The 'ewok_rlw.h' header file contains the rlw_get_run_bit() function
definition, which is marked as 'static' but not 'inline'. At least when
compiled by gcc, with the default -O2 optimization level, the function
is actually inlined and leaves no static version in the ewah_bitmap.o
and ewah_rlw.o object files. Despite this, add the missing 'inline'
keyword to better describe the intended behaviour.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | ewah/ewok_rlw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ewah/ewok_rlw.h b/ewah/ewok_rlw.h index d487966935..bafa24f4c3 100644 --- a/ewah/ewok_rlw.h +++ b/ewah/ewok_rlw.h @@ -31,7 +31,7 @@ #define RLW_RUNNING_LEN_PLUS_BIT (((eword_t)1 << (RLW_RUNNING_BITS + 1)) - 1) -static int rlw_get_run_bit(const eword_t *word) +static inline int rlw_get_run_bit(const eword_t *word) { return *word & (eword_t)1; } |