[git commit] xz: make bcj_x86_test_msbyte() an inline function
Denys Vlasenko
vda.linux at googlemail.com
Wed Feb 27 15:34:06 UTC 2013
commit: http://git.busybox.net/busybox/commit/?id=b967e42b772841fad6c0d4678811efcad218cadd
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Lasse Collin <lasse.collin at tukaani.org>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
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 09162b5..a01a4cd 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 {
#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 XZ_FUNC bcj_x86(
struct xz_dec_bcj *s, uint8_t *buf, size_t size)
More information about the busybox-cvs
mailing list