49# define MP_DIGIT_MAX (UINT16_MAX * 1UL)
50# define MP_WORD_MAX (UINT32_MAX * 1UL)
54# define MP_DIGIT_MAX (UINT32_MAX * UINT64_C(1))
55# define MP_WORD_MAX (UINT64_MAX)
81#define MP_DIGIT_BIT (sizeof(mp_digit) * CHAR_BIT)
82#define MP_WORD_BIT (sizeof(mp_word) * CHAR_BIT)
83#define MP_SMALL_MIN LONG_MIN
84#define MP_SMALL_MAX LONG_MAX
85#define MP_USMALL_MAX ULONG_MAX
88#define MP_MAX_RADIX 36
static bool mp_int_is_odd(mp_int z)
Reports whether z is odd, having remainder 1 when divided by 2.
const mp_result MP_BADARG
static mp_result mp_int_sqrt(mp_int a, mp_int c)
Sets c to the greatest integer not less than the square root of a.
static mp_digit * MP_DIGITS(mp_int Z)
const mp_sign MP_ZPOS
A sign indicating a zero or positive value.
static mp_size MP_ALLOC(mp_int Z)
void mp_int_default_precision(mp_size ndigits)
Sets the default number of digits allocated to an mp_int constructed by mp_int_init_size() with prec ...
void mp_int_multiply_threshold(mp_size ndigits)
Sets the number of digits below which multiplication will use the standard quadratic "schoolbook" mul...
static mp_size MP_USED(mp_int Z)
const mp_result MP_MINERR
const mp_result MP_MEMORY
mp_int mp_int_alloc(void)
Allocates a fresh zero-valued mpz_t on the heap, returning NULL in case of error.
static bool mp_int_is_even(mp_int z)
Reports whether z is even, having remainder 0 when divided by 2.
static mp_sign MP_SIGN(mp_int Z)
const mp_sign MP_NEG
A sign indicating a (strictly) negative value.
static mp_result mp_int_mod_value(mp_int a, mp_small value, mp_small *r)
Sets *r to the remainder of a / value.
#define mp_int_divisible_value
#define mp_int_read_cstring
#define mp_int_read_binary
#define mp_int_compare_zero
#define mp_int_string_len
#define mp_int_compare_unsigned
#define mp_int_unsigned_len
#define mp_int_compare_uvalue
#define mp_int_to_unsigned
#define mp_int_exptmod_evalue
#define mp_int_read_string
#define mp_int_count_bits
#define mp_int_init_value
#define mp_int_read_unsigned
#define mp_int_exptmod_known
#define mp_int_expt_value
#define mp_int_set_uvalue
#define mp_int_compare_value
#define mp_int_exptmod_bvalue
#define mp_int_init_uvalue
#define mp_int_binary_len
#define mp_int_redux_const