diff options
Diffstat (limited to 'libebl/libeblP.h')
-rw-r--r-- | libebl/libeblP.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libebl/libeblP.h b/libebl/libeblP.h index 7bfa650f..32a43728 100644 --- a/libebl/libeblP.h +++ b/libebl/libeblP.h @@ -1,5 +1,5 @@ /* Internal definitions for interface for libebl. - Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 Red Hat, Inc. + Copyright (C) 2000-2009 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -94,4 +94,10 @@ typedef const char *(*ebl_bhinit_t) (Elf *, GElf_Half, Ebl *, size_t); #undef _ #define _(Str) dgettext ("elfutils", Str) + +/* LEB128 constant helper macros. */ +#define ULEB128_7(x) (BUILD_BUG_ON_ZERO ((x) >= (1U << 7)) + (x)) + +#define BUILD_BUG_ON_ZERO(x) (sizeof (char [(x) ? -1 : 1]) - 1) + #endif /* libeblP.h */ |