Rizin
unix-like reverse engineering framework and cli tools
|
#include "../rz_types.h"
Go to the source code of this file.
Classes | |
struct | rz_num_big_t |
Macros | |
#define | RZ_BIG_WORD_SIZE 4 |
#define | RZ_BIG_ARRAY_SIZE (512 / RZ_BIG_WORD_SIZE) |
#define | RZ_BIG_DTYPE ut32 |
#define | RZ_BIG_DTYPE_TMP ut64 |
#define | RZ_BIG_SPRINTF_FORMAT_STR "%.08x" |
#define | RZ_BIG_FORMAT_STR_LEN 9 |
#define | RZ_BIG_SSCANF_FORMAT_STR "%8x" |
#define | RZ_BIG_MAX_VAL (RZ_BIG_DTYPE_TMP) UT32_MAX |
Typedefs | |
typedef struct rz_num_big_t | RzNumBig |
#define RZ_BIG_ARRAY_SIZE (512 / RZ_BIG_WORD_SIZE) |
#define RZ_BIG_MAX_VAL (RZ_BIG_DTYPE_TMP) UT32_MAX |
typedef struct rz_num_big_t RzNumBig |
Definition at line 63 of file big-gmp.c.
References a, b, c, rz_big_add_inner(), rz_big_sub_inner(), and rz_return_if_fail.
Referenced by rz_big_and(), rz_big_inc(), rz_big_isqrt(), rz_big_mul(), rz_big_or(), and rz_big_xor().
Definition at line 87 of file big-gmp.c.
References a, A, b, B, c, C, i, rz_big_add(), RZ_BIG_ARRAY_SIZE, rz_big_assign(), rz_big_free(), rz_big_from_int(), rz_big_is_zero(), rz_big_lshift(), rz_big_new(), rz_big_rshift(), rz_big_to_int(), rz_return_if_fail, step(), and autogen_x86imm::tmp.
Definition at line 59 of file big-gmp.c.
References dst, memcpy(), rz_return_if_fail, and src.
Referenced by rz_big_and(), rz_big_div(), rz_big_isqrt(), rz_big_lshift(), rz_big_mul(), rz_big_or(), rz_big_powm(), rz_big_rshift(), rz_big_to_int(), and rz_big_xor().
Definition at line 107 of file big-gmp.c.
References a, b, i, RZ_BIG_ARRAY_SIZE, and rz_return_val_if_fail.
Referenced by rz_big_div(), rz_big_isqrt(), and rz_big_sub_inner().
Definition at line 128 of file big-gmp.c.
References a, rz_big_free(), rz_big_from_int(), rz_big_new(), rz_big_sub(), rz_return_if_fail, and autogen_x86imm::tmp.
Referenced by rz_big_isqrt().
Definition at line 75 of file big-gmp.c.
References _lshift_one_bit(), _r_big_zero_out(), _rshift_one_bit(), a, rz_num_big_t::array, b, c, NULL, RZ_BIG_ARRAY_SIZE, rz_big_assign(), rz_big_cmp(), rz_big_free(), rz_big_from_int(), rz_big_is_zero(), rz_big_new(), rz_big_or(), rz_big_sub(), RZ_BIG_WORD_SIZE, rz_return_if_fail, rz_num_big_t::sign, and autogen_x86imm::tmp.
Referenced by rz_big_divmod().
Definition at line 83 of file big-gmp.c.
References a, b, c, d, rz_big_div(), rz_big_free(), rz_big_is_zero(), rz_big_mul(), rz_big_new(), rz_big_sub(), rz_return_if_fail, and autogen_x86imm::tmp.
Referenced by rz_big_mod().
Definition at line 24 of file big-gmp.c.
References _r_big_zero_out(), and b.
Definition at line 15 of file big-gmp.c.
Referenced by rz_big_and(), rz_big_dec(), rz_big_div(), rz_big_divmod(), rz_big_inc(), rz_big_isqrt(), rz_big_mod(), rz_big_mul(), rz_big_or(), rz_big_powm(), rz_big_to_int(), and rz_big_xor().
Definition at line 36 of file big-gmp.c.
References _r_big_zero_out(), b, i, memset(), n, nbytes, RZ_BIG_DTYPE, RZ_BIG_SSCANF_FORMAT_STR, RZ_BIG_WORD_SIZE, rz_return_if_fail, rz_str_startswith(), cmd_descs_generate::str, and autogen_x86imm::tmp.
Definition at line 28 of file big-gmp.c.
References _r_big_zero_out(), b, n, RZ_BIG_DTYPE_TMP, rz_return_if_fail, autogen_x86imm::tmp, and v.
Referenced by rz_big_and(), rz_big_dec(), rz_big_div(), rz_big_inc(), rz_big_or(), rz_big_powm(), and rz_big_xor().
Definition at line 122 of file big-gmp.c.
References a, rz_big_add(), rz_big_free(), rz_big_from_int(), rz_big_new(), rz_return_if_fail, and autogen_x86imm::tmp.
Referenced by rz_big_isqrt().
Definition at line 20 of file big-gmp.c.
References _r_big_zero_out(), and b.
Definition at line 118 of file big-gmp.c.
References a, i, RZ_BIG_ARRAY_SIZE, and rz_return_val_if_fail.
Referenced by rz_big_and(), rz_big_div(), rz_big_divmod(), rz_big_mod(), rz_big_mul(), rz_big_or(), rz_big_powm(), and rz_big_xor().
Definition at line 138 of file big-gmp.c.
References _rshift_one_bit(), a, b, c, rz_big_add(), rz_big_assign(), rz_big_cmp(), rz_big_dec(), rz_big_free(), rz_big_inc(), rz_big_mul(), rz_big_new(), rz_big_rshift(), rz_big_sub(), rz_return_if_fail, and autogen_x86imm::tmp.
Definition at line 99 of file big-gmp.c.
References _lshift_word(), a, b, c, i, RZ_BIG_ARRAY_SIZE, rz_big_assign(), RZ_BIG_WORD_SIZE, and rz_return_if_fail.
Referenced by rz_big_and(), rz_big_or(), and rz_big_xor().
Definition at line 79 of file big-gmp.c.
References a, b, c, rz_big_divmod(), rz_big_free(), rz_big_is_zero(), rz_big_new(), rz_return_if_fail, and autogen_x86imm::tmp.
Referenced by rz_big_powm().
Definition at line 71 of file big-gmp.c.
References _lshift_word(), _r_big_zero_out(), a, b, c, i, rz_big_add(), RZ_BIG_ARRAY_SIZE, rz_big_assign(), RZ_BIG_DTYPE_TMP, rz_big_free(), rz_big_from_unsigned(), rz_big_is_zero(), rz_big_new(), rz_return_if_fail, rz_num_big_t::sign, and autogen_x86imm::tmp.
Referenced by rz_big_divmod(), rz_big_isqrt(), and rz_big_powm().
Definition at line 7 of file big-gmp.c.
References _r_big_zero_out(), n, and RZ_NEW.
Referenced by rz_big_and(), rz_big_dec(), rz_big_div(), rz_big_divmod(), rz_big_inc(), rz_big_isqrt(), rz_big_mod(), rz_big_mul(), rz_big_or(), rz_big_powm(), rz_big_to_int(), and rz_big_xor().
Definition at line 91 of file big-gmp.c.
References a, A, b, B, c, C, i, rz_big_add(), RZ_BIG_ARRAY_SIZE, rz_big_assign(), rz_big_free(), rz_big_from_int(), rz_big_is_zero(), rz_big_lshift(), rz_big_new(), rz_big_rshift(), rz_big_to_int(), rz_return_if_fail, step(), and autogen_x86imm::tmp.
Referenced by rz_big_div().
Definition at line 134 of file big-gmp.c.
References _rshift_one_bit(), a, b, c, regress::m, rz_big_assign(), rz_big_free(), rz_big_from_int(), rz_big_is_zero(), rz_big_mod(), rz_big_mul(), rz_big_new(), rz_big_to_int(), and rz_return_if_fail.
Definition at line 103 of file big-gmp.c.
References _rshift_word(), a, b, c, i, RZ_BIG_ARRAY_SIZE, rz_big_assign(), RZ_BIG_WORD_SIZE, and rz_return_if_fail.
Referenced by rz_big_and(), rz_big_isqrt(), rz_big_or(), and rz_big_xor().
Definition at line 67 of file big-gmp.c.
References a, b, c, rz_big_add_inner(), rz_big_sub_inner(), and rz_return_if_fail.
Referenced by rz_big_dec(), rz_big_div(), rz_big_divmod(), and rz_big_isqrt().
Definition at line 47 of file big-gmp.c.
References b, calloc(), free(), i, k, NULL, RZ_BIG_ARRAY_SIZE, RZ_BIG_FORMAT_STR_LEN, RZ_BIG_SPRINTF_FORMAT_STR, RZ_BIG_WORD_SIZE, rz_return_val_if_fail, rz_snprintf(), rz_str_newf(), autogen_x86imm::tmp, and tolower.
Definition at line 32 of file big-gmp.c.
References b, B, rz_big_assign(), RZ_BIG_DTYPE_TMP, rz_big_free(), rz_big_new(), and rz_return_val_if_fail.
Referenced by rz_big_and(), rz_big_or(), rz_big_powm(), and rz_big_xor().
Definition at line 95 of file big-gmp.c.
References a, A, b, B, c, C, i, rz_big_add(), RZ_BIG_ARRAY_SIZE, rz_big_assign(), rz_big_free(), rz_big_from_int(), rz_big_is_zero(), rz_big_lshift(), rz_big_new(), rz_big_rshift(), rz_big_to_int(), rz_return_if_fail, step(), and autogen_x86imm::tmp.