# Crate creachadair_imath_sys[−][src]

## Structs

mpq_t | |

mpz_t |

## Constants

MP_MAX_RADIX | |

MP_MIN_RADIX | |

mp_round_mode_MP_ROUND_DOWN | |

mp_round_mode_MP_ROUND_HALF_DOWN | |

mp_round_mode_MP_ROUND_HALF_UP | |

mp_round_mode_MP_ROUND_UP |

## Statics

MP_BADARG | |

MP_FALSE | |

MP_MEMORY | |

MP_MINERR | |

MP_NEG | |

MP_OK | |

MP_RANGE | |

MP_TRUE | |

MP_TRUNC | |

MP_UNDEF | |

MP_ZPOS |

## Functions

mp_error_string^{⚠} | Returns a pointer to a brief, human-readable, zero-terminated string
describing |

mp_int_abs^{⚠} | Sets |

mp_int_add^{⚠} | Sets |

mp_int_add_value^{⚠} | Sets |

mp_int_alloc^{⚠} | Allocates a fresh zero-valued |

mp_int_binary_len^{⚠} | Returns the number of bytes to represent |

mp_int_clear^{⚠} | Releases the storage used by |

mp_int_compare^{⚠} | Returns the comparator of |

mp_int_compare_unsigned^{⚠} | Returns the comparator of the magnitudes of |

mp_int_compare_uvalue^{⚠} | Returns the comparator of |

mp_int_compare_value^{⚠} | Returns the comparator of |

mp_int_compare_zero^{⚠} | Returns the comparator of |

mp_int_copy^{⚠} | Replaces the value of |

mp_int_count_bits^{⚠} | Returns the number of significant bits in |

mp_int_default_precision^{⚠} | Sets the default number of digits allocated to an |

mp_int_div^{⚠} | Sets |

mp_int_div_pow2^{⚠} | Sets |

mp_int_div_value^{⚠} | Sets |

mp_int_divisible_value^{⚠} | Reports whether |

mp_int_egcd^{⚠} | Sets |

mp_int_expt^{⚠} | Sets |

mp_int_expt_full^{⚠} | Sets |

mp_int_expt_value^{⚠} | Sets |

mp_int_exptmod^{⚠} | Sets |

mp_int_exptmod_bvalue^{⚠} | Sets |

mp_int_exptmod_evalue^{⚠} | Sets |

mp_int_exptmod_known^{⚠} | Sets |

mp_int_find_prime^{⚠} | |

mp_int_free^{⚠} | Releases the storage used by |

mp_int_gcd^{⚠} | Sets |

mp_int_init^{⚠} | Initializes |

mp_int_init_copy^{⚠} | Initializes |

mp_int_init_size^{⚠} | Initializes |

mp_int_init_uvalue^{⚠} | Initializes |

mp_int_init_value^{⚠} | Initializes |

mp_int_invmod^{⚠} | Sets |

mp_int_is_pow2^{⚠} | Returns |

mp_int_is_prime^{⚠} | |

mp_int_lcm^{⚠} | Sets |

mp_int_mod^{⚠} | Sets |

mp_int_mul^{⚠} | Sets |

mp_int_mul_pow2^{⚠} | Sets |

mp_int_mul_value^{⚠} | Sets |

mp_int_multiply_threshold^{⚠} | Sets the number of digits below which multiplication will use the standard
quadratic “schoolbook” multiplication algorithm rather than Karatsuba-Ofman.
Requires |

mp_int_neg^{⚠} | Sets |

mp_int_read_binary^{⚠} | Reads a 2’s complement binary value from |

mp_int_read_cstring^{⚠} | Reads a string of ASCII digits in the specified |

mp_int_read_string^{⚠} | Reads a string of ASCII digits in the specified |

mp_int_read_unsigned^{⚠} | Reads an unsigned binary value from |

mp_int_redux_const^{⚠} | Sets |

mp_int_root^{⚠} | Sets |

mp_int_set_uvalue^{⚠} | Sets |

mp_int_set_value^{⚠} | Sets |

mp_int_sqr^{⚠} | Sets |

mp_int_string_len^{⚠} | Reports the minimum number of characters required to represent |

mp_int_sub^{⚠} | Sets |

mp_int_sub_value^{⚠} | Sets |

mp_int_swap^{⚠} | Swaps the values and storage between |

mp_int_to_binary^{⚠} | Converts |

mp_int_to_int^{⚠} | Returns |

mp_int_to_string^{⚠} | Converts |

mp_int_to_uint^{⚠} | Returns |

mp_int_to_unsigned^{⚠} | Converts the magnitude of |

mp_int_unsigned_len^{⚠} | Returns the number of bytes required to represent |

mp_int_zero^{⚠} | Sets |

mp_rat_abs^{⚠} | Sets |

mp_rat_add^{⚠} | Sets |

mp_rat_add_int^{⚠} | Sets |

mp_rat_alloc^{⚠} | Allocates a fresh zero-valued |

mp_rat_clear^{⚠} | Releases the storage used by |

mp_rat_compare^{⚠} | Returns the comparator of |

mp_rat_compare_unsigned^{⚠} | Returns the comparator of the magnitudes of |

mp_rat_compare_value^{⚠} | Returns the comparator of |

mp_rat_compare_zero^{⚠} | Returns the comparator of |

mp_rat_copy^{⚠} | Sets |

mp_rat_decimal_len^{⚠} | Reports the length in bytes of the buffer needed to convert |

mp_rat_denom^{⚠} | Sets |

mp_rat_denom_ref^{⚠} | Returns a pointer to the denominator of |

mp_rat_div^{⚠} | Sets |

mp_rat_div_int^{⚠} | Sets |

mp_rat_expt^{⚠} | Sets |

mp_rat_free^{⚠} | Releases the storage used by |

mp_rat_init^{⚠} | Initializes |

mp_rat_init_copy^{⚠} | Initializes |

mp_rat_init_size^{⚠} | Initializes |

mp_rat_is_integer^{⚠} | Reports whether |

mp_rat_mul^{⚠} | Sets |

mp_rat_mul_int^{⚠} | Sets |

mp_rat_neg^{⚠} | Sets |

mp_rat_numer^{⚠} | Sets |

mp_rat_numer_ref^{⚠} | Returns a pointer to the numerator of |

mp_rat_read_cdecimal^{⚠} | Sets |

mp_rat_read_cstring^{⚠} | Sets |

mp_rat_read_decimal^{⚠} | Sets |

mp_rat_read_string^{⚠} | Sets |

mp_rat_read_ustring^{⚠} | Sets |

mp_rat_recip^{⚠} | Sets |

mp_rat_reduce^{⚠} | Reduces |

mp_rat_set_uvalue^{⚠} | Sets the value of |

mp_rat_set_value^{⚠} | Sets the value of |

mp_rat_sign^{⚠} | Reports the sign of |

mp_rat_string_len^{⚠} | Reports the minimum number of characters required to represent |

mp_rat_sub^{⚠} | Sets |

mp_rat_sub_int^{⚠} | Sets |

mp_rat_to_decimal^{⚠} | Converts the value of |

mp_rat_to_ints^{⚠} | Reports whether the numerator and denominator of |

mp_rat_to_string^{⚠} | Converts |

mp_rat_zero^{⚠} | Sets |

## Type Definitions

__uint32_t | |

__uint64_t | |

mp_digit | |

mp_int | |

mp_rat | |

mp_result | |

mp_round_mode | |

mp_sign | |

mp_size | |

mp_small | |

mp_usmall | |

mp_word |