diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2013-02-27 16:34:06 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-27 16:34:06 +0100 |
commit | b967e42b772841fad6c0d4678811efcad218cadd (patch) | |
tree | 7545fb85e4d648d3eee0d04a50cca43c8b03098e | |
parent | 18714d8460f800476011d83bb956f4457f332acf (diff) | |
download | busybox-w32-b967e42b772841fad6c0d4678811efcad218cadd.tar.gz busybox-w32-b967e42b772841fad6c0d4678811efcad218cadd.tar.bz2 busybox-w32-b967e42b772841fad6c0d4678811efcad218cadd.zip |
xz: make bcj_x86_test_msbyte() an inline function
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/libarchive/unxz/xz_dec_bcj.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/archival/libarchive/unxz/xz_dec_bcj.c b/archival/libarchive/unxz/xz_dec_bcj.c index 09162b51f..a01a4cdcf 100644 --- a/archival/libarchive/unxz/xz_dec_bcj.c +++ b/archival/libarchive/unxz/xz_dec_bcj.c | |||
@@ -77,10 +77,13 @@ struct xz_dec_bcj { | |||
77 | 77 | ||
78 | #ifdef XZ_DEC_X86 | 78 | #ifdef XZ_DEC_X86 |
79 | /* | 79 | /* |
80 | * This is macro used to test the most significant byte of a memory address | 80 | * This is used to test the most significant byte of a memory address |
81 | * in an x86 instruction. | 81 | * in an x86 instruction. |
82 | */ | 82 | */ |
83 | #define bcj_x86_test_msbyte(b) ((b) == 0x00 || (b) == 0xFF) | 83 | static inline int bcj_x86_test_msbyte(uint8_t b) |
84 | { | ||
85 | return b == 0x00 || b == 0xFF; | ||
86 | } | ||
84 | 87 | ||
85 | static noinline_for_stack size_t XZ_FUNC bcj_x86( | 88 | static noinline_for_stack size_t XZ_FUNC bcj_x86( |
86 | struct xz_dec_bcj *s, uint8_t *buf, size_t size) | 89 | struct xz_dec_bcj *s, uint8_t *buf, size_t size) |