diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-11-19 21:26:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-11-19 21:26:51 (GMT) |
commit | 5a70286f7f56cc72a0249fcaf404afabfb033956 (patch) | |
tree | ef2b94b04a3e84b93832749ccf6cd9b9cc370d3c /src/common | |
parent | 760e2e7346518dd1264126c1696f9ad88884d64c (diff) |
Handled Dalvik exception handlers in the graphic view.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@285 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/leb128.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/leb128.h b/src/common/leb128.h index 0364cf7..398785f 100644 --- a/src/common/leb128.h +++ b/src/common/leb128.h @@ -26,6 +26,7 @@ #include <stdbool.h> +#include <stdlib.h> #include "../arch/archbase.h" @@ -37,6 +38,16 @@ typedef uint64_t uleb128_t; typedef int64_t leb128_t; +/* Récupération de la valeur absolue */ +#define leb128_abs(v) llabs(v) + + +/* Valeurs minimales et maximales */ +#define ULEB128_MIN UINT64_MIN +#define ULEB128_MAX UINT64_MAX +#define LEB128_MIN INT64_MIN +#define LEB128_MAX INT64_MAX + /* Lit un nombre non signé encodé au format LEB128. */ bool read_uleb128(uleb128_t *, const bin_t *, off_t *, off_t); |