Rizin
unix-like reverse engineering framework and cli tools
|
#include <ctype.h>
#include <sys/types.h>
#include <limits.h>
#include <stdbool.h>
#include "rz_types_overflow.h"
Go to the source code of this file.
Classes | |
union | utAny |
struct | _ut80 |
struct | _ut96 |
struct | _ut128 |
struct | _ut256 |
struct | _utX |
Macros | |
#define | cut8 const unsigned char |
#define | ut64 unsigned long long |
#define | st64 long long |
#define | ut32 unsigned int |
#define | st32 int |
#define | ut16 unsigned short |
#define | st16 short |
#define | ut8 unsigned char |
#define | st8 signed char |
#define | boolt int |
#define | RZ_ALIGNED(x) __attribute__((aligned(x))) |
#define | RZ_EMPTY { 0 } |
#define | RZ_EMPTY2 |
#define | ST64_MAX ((st64)0x7FFFFFFFFFFFFFFFULL) |
#define | ST64_MIN ((st64)(-ST64_MAX - 1)) |
#define | UT64_MAX 0xFFFFFFFFFFFFFFFFULL |
#define | UT64_GT0 0x8000000000000000ULL |
#define | UT64_LT0 0x7FFFFFFFFFFFFFFFULL |
#define | UT64_MIN 0ULL |
#define | UT64_32U 0xFFFFFFFF00000000ULL |
#define | UT64_16U 0xFFFFFFFFFFFF0000ULL |
#define | UT64_8U 0xFFFFFFFFFFFFFF00ULL |
#define | UT32_MIN 0U |
#define | UT16_MIN 0U |
#define | UT32_GT0 0x80000000U |
#define | UT32_LT0 0x7FFFFFFFU |
#define | ST32_MAX 0x7FFFFFFF |
#define | ST32_MIN (-ST32_MAX - 1) |
#define | UT32_MAX 0xFFFFFFFFU |
#define | ST16_MAX 0x7FFF |
#define | ST16_MIN (-ST16_MAX - 1) |
#define | UT16_GT0 0x8000U |
#define | UT16_MAX 0xFFFFU |
#define | ST8_MAX 0x7F |
#define | ST8_MIN (-ST8_MAX - 1) |
#define | UT8_GT0 0x80U |
#define | UT8_MAX 0xFFU |
#define | UT8_MIN 0x00U |
#define | ASCII_MIN 32 |
#define | ASCII_MAX 127 |
#define | SZT_MAX UT64_MAX |
#define | SZT_MIN UT64_MIN |
#define | SSZT_MAX ST64_MAX |
#define | SSZT_MIN ST64_MIN |
#define | UT64_ALIGN(x) (x + (x - (x % sizeof(ut64)))) |
#define | UT32_ALIGN(x) (x + (x - (x % sizeof(ut32)))) |
#define | UT16_ALIGN(x) (x + (x - (x % sizeof(ut16)))) |
#define | UT32_LO(x) ((ut32)((x)&UT32_MAX)) |
#define | UT32_HI(x) ((ut32)(((ut64)(x)) >> 32) & UT32_MAX) |
#define | RZ_BETWEEN(x, y, z) (((y) >= (x)) && ((y) <= (z))) |
#define | RZ_ROUND(x, y) ((x) % (y)) ? (x) + ((y) - ((x) % (y))) : (x) |
#define | RZ_DIM(x, y, z) |
#define | RZ_MAX(x, y) (((x) > (y)) ? (x) : (y)) |
#define | RZ_MAX_DEFINED |
#define | RZ_MIN(x, y) (((x) > (y)) ? (y) : (x)) |
#define | RZ_MIN_DEFINED |
#define | RZ_ABS(x) (((x) < 0) ? -(x) : (x)) |
#define | RZ_BTW(x, y, z) (((x) >= (y)) && ((y) <= (z))) ? y : x |
#define | B_IS_SET(x, n) (((x) & (1ULL << (n))) ? 1 : 0) |
#define | B_SET(x, n) ((x) |= (1ULL << (n))) |
#define | B_EVEN(x) (((x)&1) == 0) |
#define | B_ODD(x) (!B_EVEN((x))) |
#define | B_UNSET(x, n) ((x) &= ~(1ULL << (n))) |
#define | B_TOGGLE(x, n) ((x) ^= (1ULL << (n))) |
#define | B11111 31 |
#define | B11110 30 |
#define | B11101 29 |
#define | B11100 28 |
#define | B11011 27 |
#define | B11010 26 |
#define | B11001 25 |
#define | B11000 24 |
#define | B10111 23 |
#define | B10110 22 |
#define | B10101 21 |
#define | B10100 20 |
#define | B10011 19 |
#define | B10010 18 |
#define | B10001 17 |
#define | B10000 16 |
#define | B1111 15 |
#define | B1110 14 |
#define | B1101 13 |
#define | B1100 12 |
#define | B1011 11 |
#define | B1010 10 |
#define | B1001 9 |
#define | B1000 8 |
#define | B0111 7 |
#define | B0110 6 |
#define | B0101 5 |
#define | B0100 4 |
#define | B0011 3 |
#define | B0010 2 |
#define | B0001 1 |
#define | B0000 0 |
#define | B4(a, b, c, d) ((a << 12) | (b << 8) | (c << 4) | (d)) |
#define | INFINITY (1.0f / 0.0f) |
#define | NAN (0.0f / 0.0f) |
#define | HEAPTYPE(x) |
Typedefs | |
typedef struct _ut80 | ut80 |
typedef struct _ut96 | ut96 |
typedef struct _ut128 | ut128 |
typedef struct _ut256 | ut256 |
typedef struct _utX | utX |
Functions | |
typedef | RZ_ALIGNED (1) ut16 uut16 |
#define ASCII_MAX 127 |
Definition at line 110 of file rz_types_base.h.
#define ASCII_MIN 32 |
Definition at line 109 of file rz_types_base.h.
#define B0000 0 |
Definition at line 187 of file rz_types_base.h.
#define B0001 1 |
Definition at line 186 of file rz_types_base.h.
#define B0010 2 |
Definition at line 185 of file rz_types_base.h.
#define B0011 3 |
Definition at line 184 of file rz_types_base.h.
#define B0100 4 |
Definition at line 183 of file rz_types_base.h.
#define B0101 5 |
Definition at line 182 of file rz_types_base.h.
#define B0110 6 |
Definition at line 181 of file rz_types_base.h.
#define B0111 7 |
Definition at line 180 of file rz_types_base.h.
#define B1000 8 |
Definition at line 179 of file rz_types_base.h.
#define B10000 16 |
Definition at line 171 of file rz_types_base.h.
#define B10001 17 |
Definition at line 170 of file rz_types_base.h.
#define B1001 9 |
Definition at line 178 of file rz_types_base.h.
#define B10010 18 |
Definition at line 169 of file rz_types_base.h.
#define B10011 19 |
Definition at line 168 of file rz_types_base.h.
#define B1010 10 |
Definition at line 177 of file rz_types_base.h.
#define B10100 20 |
Definition at line 167 of file rz_types_base.h.
#define B10101 21 |
Definition at line 166 of file rz_types_base.h.
#define B1011 11 |
Definition at line 176 of file rz_types_base.h.
#define B10110 22 |
Definition at line 165 of file rz_types_base.h.
#define B10111 23 |
Definition at line 164 of file rz_types_base.h.
#define B1100 12 |
Definition at line 175 of file rz_types_base.h.
#define B11000 24 |
Definition at line 163 of file rz_types_base.h.
#define B11001 25 |
Definition at line 162 of file rz_types_base.h.
#define B1101 13 |
Definition at line 174 of file rz_types_base.h.
#define B11010 26 |
Definition at line 161 of file rz_types_base.h.
#define B11011 27 |
Definition at line 160 of file rz_types_base.h.
#define B1110 14 |
Definition at line 173 of file rz_types_base.h.
#define B11100 28 |
Definition at line 159 of file rz_types_base.h.
#define B11101 29 |
Definition at line 158 of file rz_types_base.h.
#define B1111 15 |
Definition at line 172 of file rz_types_base.h.
#define B11110 30 |
Definition at line 157 of file rz_types_base.h.
#define B11111 31 |
Definition at line 156 of file rz_types_base.h.
Definition at line 189 of file rz_types_base.h.
Definition at line 151 of file rz_types_base.h.
Definition at line 149 of file rz_types_base.h.
Definition at line 152 of file rz_types_base.h.
#define boolt int |
Definition at line 17 of file rz_types_base.h.
Definition at line 8 of file rz_types_base.h.
#define HEAPTYPE | ( | x | ) |
Definition at line 224 of file rz_types_base.h.
#define INFINITY (1.0f / 0.0f) |
Definition at line 193 of file rz_types_base.h.
#define NAN (0.0f / 0.0f) |
Definition at line 197 of file rz_types_base.h.
#define RZ_ALIGNED | ( | x | ) | __attribute__((aligned(x))) |
Definition at line 26 of file rz_types_base.h.
Definition at line 131 of file rz_types_base.h.
Definition at line 144 of file rz_types_base.h.
#define RZ_DIM | ( | x, | |
y, | |||
z | |||
) |
Definition at line 133 of file rz_types_base.h.
#define RZ_EMPTY { 0 } |
Definition at line 68 of file rz_types_base.h.
#define RZ_EMPTY2 |
Definition at line 70 of file rz_types_base.h.
Definition at line 136 of file rz_types_base.h.
#define RZ_MAX_DEFINED |
Definition at line 137 of file rz_types_base.h.
Definition at line 140 of file rz_types_base.h.
#define RZ_MIN_DEFINED |
Definition at line 141 of file rz_types_base.h.
Definition at line 132 of file rz_types_base.h.
#define SSZT_MAX ST64_MAX |
Definition at line 120 of file rz_types_base.h.
#define SSZT_MIN ST64_MIN |
Definition at line 121 of file rz_types_base.h.
#define st16 short |
Definition at line 14 of file rz_types_base.h.
#define ST16_MAX 0x7FFF |
Definition at line 100 of file rz_types_base.h.
#define ST16_MIN (-ST16_MAX - 1) |
Definition at line 101 of file rz_types_base.h.
#define st32 int |
Definition at line 12 of file rz_types_base.h.
#define ST32_MAX 0x7FFFFFFF |
Definition at line 97 of file rz_types_base.h.
#define ST32_MIN (-ST32_MAX - 1) |
Definition at line 98 of file rz_types_base.h.
Definition at line 10 of file rz_types_base.h.
#define ST64_MAX ((st64)0x7FFFFFFFFFFFFFFFULL) |
Definition at line 84 of file rz_types_base.h.
Definition at line 85 of file rz_types_base.h.
#define st8 signed char |
Definition at line 16 of file rz_types_base.h.
#define ST8_MAX 0x7F |
Definition at line 104 of file rz_types_base.h.
#define ST8_MIN (-ST8_MAX - 1) |
Definition at line 105 of file rz_types_base.h.
#define SZT_MAX UT64_MAX |
Definition at line 118 of file rz_types_base.h.
#define SZT_MIN UT64_MIN |
Definition at line 119 of file rz_types_base.h.
Definition at line 13 of file rz_types_base.h.
Definition at line 126 of file rz_types_base.h.
#define UT16_GT0 0x8000U |
Definition at line 102 of file rz_types_base.h.
#define UT16_MAX 0xFFFFU |
Definition at line 103 of file rz_types_base.h.
#define UT16_MIN 0U |
Definition at line 94 of file rz_types_base.h.
Definition at line 11 of file rz_types_base.h.
Definition at line 125 of file rz_types_base.h.
#define UT32_GT0 0x80000000U |
Definition at line 95 of file rz_types_base.h.
Definition at line 129 of file rz_types_base.h.
#define UT32_LT0 0x7FFFFFFFU |
Definition at line 96 of file rz_types_base.h.
#define UT32_MAX 0xFFFFFFFFU |
Definition at line 99 of file rz_types_base.h.
#define UT32_MIN 0U |
Definition at line 93 of file rz_types_base.h.
Definition at line 9 of file rz_types_base.h.
#define UT64_16U 0xFFFFFFFFFFFF0000ULL |
Definition at line 91 of file rz_types_base.h.
#define UT64_32U 0xFFFFFFFF00000000ULL |
Definition at line 90 of file rz_types_base.h.
#define UT64_8U 0xFFFFFFFFFFFFFF00ULL |
Definition at line 92 of file rz_types_base.h.
Definition at line 124 of file rz_types_base.h.
#define UT64_GT0 0x8000000000000000ULL |
Definition at line 87 of file rz_types_base.h.
#define UT64_LT0 0x7FFFFFFFFFFFFFFFULL |
Definition at line 88 of file rz_types_base.h.
#define UT64_MAX 0xFFFFFFFFFFFFFFFFULL |
Definition at line 86 of file rz_types_base.h.
#define UT64_MIN 0ULL |
Definition at line 89 of file rz_types_base.h.
Definition at line 15 of file rz_types_base.h.
#define UT8_GT0 0x80U |
Definition at line 106 of file rz_types_base.h.
#define UT8_MAX 0xFFU |
Definition at line 107 of file rz_types_base.h.
#define UT8_MIN 0x00U |
Definition at line 108 of file rz_types_base.h.
typedef RZ_ALIGNED | ( | 1 | ) |
Referenced by search_collisions().