Skip to content

Commit 3a457a0

Browse files
ramsay-jonesgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 813fc44 commit 3a457a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ewah/ewok_rlw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#define RLW_RUNNING_LEN_PLUS_BIT (((eword_t)1 << (RLW_RUNNING_BITS + 1)) - 1)
3333

34-
static int rlw_get_run_bit(const eword_t *word)
34+
static inline int rlw_get_run_bit(const eword_t *word)
3535
{
3636
return *word & (eword_t)1;
3737
}

0 commit comments

Comments
 (0)