diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-11-25 10:06:57 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-11-25 10:06:57 +0200 |
commit | 229fdc5b844e27cbe47e90518d6e78a4dd593b22 (patch) | |
tree | f8eb1b128ca6351c6d34b407048f12fd5952703a /linux/lib/xz | |
parent | 503dfd9bf0693e7dda58b07b34459e58418958ac (diff) | |
download | xz-embedded-229fdc5b844e27cbe47e90518d6e78a4dd593b22.tar.gz |
Make bcj_x86_test_msbyte() an inline function.
Thanks to Andrew Morton.
Diffstat (limited to 'linux/lib/xz')
-rw-r--r-- | linux/lib/xz/xz_dec_bcj.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/lib/xz/xz_dec_bcj.c b/linux/lib/xz/xz_dec_bcj.c index f104b20..6c33a09 100644 --- a/linux/lib/xz/xz_dec_bcj.c +++ b/linux/lib/xz/xz_dec_bcj.c @@ -77,10 +77,13 @@ struct xz_dec_bcj { #ifdef XZ_DEC_X86 /* - * This is macro used to test the most significant byte of a memory address + * This is used to test the most significant byte of a memory address * in an x86 instruction. */ -#define bcj_x86_test_msbyte(b) ((b) == 0x00 || (b) == 0xFF) +static inline int bcj_x86_test_msbyte(uint8_t b) +{ + return b == 0x00 || b == 0xFF; +} static noinline_for_stack size_t bcj_x86( struct xz_dec_bcj *s, uint8_t *buf, size_t size) |