Class LibGmp
Direct mapping is used for almost all the functions, with the exception of a few ones with a variable number of arguments which require interface mapping.
Some documented GMP functions are actually macros: they have been
reimplemented here.
Low-level Function, as defined in the GMP documentation, as well
as those functions which depend on types provided by the C standard library
(such as the FILE type), have been omitted entirely.
We strived to be type safe, by defining different subclasses of
com.sun.jna.PointerType and com.sun.jna.IntegerType for
different native types. Newly defined types have the same name of GMP native
types but converted to camel case. For example, mpf_t becomes
MpfT, while mp_exp_t is MpExpT. The only exception is
NativeUnsignedLong which should be used for native unsigned longs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceInterface for the native functions with a variable number of arguments. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe major GMP version.static final intThe minor GMP version.static final intThe patch level GMP version.static final StringThe system decimal separator.private static FreeFuncThe native deallocator used by the GMP library.private static FreeFuncThe default native deallocator used by the GMP library.private static final com.sun.jna.PointerPointer to thegmp_errnovariable.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final StringThe native GMP version number, in the form “i.j.k”.private static final LibGmp.LibGmpExtraInstance of theLibGmpExtrainterface created at initialization time.private static final StringThe undecorated name of the GMP library.static final intThe number of bits per limb.private static MpfTThe floating point 0 (assuming no one changes it)private static MpqTThe rational 0 (assuming no one changes it)private static MpzTThe integer 0 (assuming no one changes it) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLibGmp()A private constructor, since this class should never be instantiated. -
Method Summary
Modifier and TypeMethodDescriptionstatic void__gmp_randclear(com.sun.jna.Pointer x) private static void__gmp_set_memory_functions(AllocFunc alloc_func_ptr, ReallocFunc realloc_func_ptr, FreeFunc free_func_ptr) static void__gmpf_clear(com.sun.jna.Pointer x) static void__gmpq_clear(com.sun.jna.Pointer x) static void__gmpz_clear(com.sun.jna.Pointer x) static voiddeallocate(com.sun.jna.Pointer p, SizeT size) Call the native deallocator used by the GMP library.private static StringReturn the system decimal separator.static intgmp_asprintf(com.sun.jna.ptr.PointerByReference pp, String fmt, Object... args) static intReturn the value of the global error variable, used by obsolete random number functions.static intgmp_fprintf(com.sun.jna.Pointer fp, String fmt, Object... args) static intgmp_fscanf(com.sun.jna.Pointer fp, String fmt, Object... args) static intgmp_printf(String fmt, Object... args) static voidgmp_randclear(GmpRandstateT state) static voidgmp_randinit(GmpRandstateT state, int alg, com.sun.jna.NativeLong l) static voidstatic voidgmp_randinit_lc_2exp(GmpRandstateT state, MpzT a, NativeUnsignedLong c, MpBitcntT m2exp) static intgmp_randinit_lc_2exp_size(GmpRandstateT state, MpBitcntT m2exp) static voidgmp_randinit_mt(GmpRandstateT state) static voidgmp_randinit_set(GmpRandstateT rop, GmpRandstateT op) static voidgmp_randseed(GmpRandstateT state, MpzT seed) static voidgmp_randseed_ui(GmpRandstateT state, NativeUnsignedLong seed) static intstatic intgmp_snprintf(ByteBuffer buf, SizeT size, String fmt, Object... args) static intgmp_sprintf(ByteBuffer buf, String fmt, Object... args) static intgmp_sscanf(String s, String fmt, Object... args) static com.sun.jna.NativeLonggmp_urandomb_ui(GmpRandstateT state, NativeUnsignedLong n) static com.sun.jna.NativeLonggmp_urandomm_ui(GmpRandstateT state, NativeUnsignedLong n) static intgmp_vasprintf(com.sun.jna.ptr.PointerByReference pp, String fmt, com.sun.jna.Pointer ap) static intgmp_vfprintf(com.sun.jna.Pointer fp, String fmt, com.sun.jna.Pointer ap) static intgmp_vfscanf(com.sun.jna.Pointer fp, String fmt, com.sun.jna.Pointer ap) static intgmp_vprintf(String fmt, com.sun.jna.Pointer ap) static intgmp_vscanf(String fmt, com.sun.jna.Pointer ap) static intgmp_vsnprintf(ByteBuffer buf, SizeT size, String fmt, com.sun.jna.Pointer ap) static intgmp_vsprintf(ByteBuffer buf, String fmt, com.sun.jna.Pointer ap) static intgmp_vsscanf(String s, String fmt, com.sun.jna.Pointer ap) static voidmp_get_memory_functions(AllocFuncByReference alloc_func_ptr, ReallocFuncByReference realloc_func_ptr, FreeFuncByReference free_func_ptr) static voidmp_set_memory_functions(AllocFunc alloc_func_ptr, ReallocFunc realloc_func_ptr, FreeFunc free_func_ptr) static voidstatic voidstatic voidmpf_add_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2) static voidstatic voidstatic voidmpf_clears(MpfT... xs) static intstatic intstatic intmpf_cmp_si(MpfT op1, com.sun.jna.NativeLong op2) static intmpf_cmp_ui(MpfT op1, NativeUnsignedLong op2) static intstatic voidstatic voidmpf_div_2exp(MpfT rop, MpfT op1, MpBitcntT op2) static voidmpf_div_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2) static booleanstatic booleanmpf_fits_sint_p(MpfT op) static booleanmpf_fits_slong_p(MpfT op) static booleanstatic booleanmpf_fits_uint_p(MpfT op) static booleanmpf_fits_ulong_p(MpfT op) static booleanstatic voidstatic doublestatic doublempf_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpfT op) static MpBitcntTstatic MpBitcntTmpf_get_prec(MpfT op) static com.sun.jna.NativeLongmpf_get_si(MpfT op) static com.sun.jna.Pointermpf_get_str(ByteBuffer str, MpExpTByReference exp, int base, MpSizeT nDigits, MpfT op) static NativeUnsignedLongmpf_get_ui(MpfT op) static voidstatic voidmpf_init_set(MpfT rop, MpfT op) static voidmpf_init_set_d(MpfT rop, double op) static voidmpf_init_set_si(MpfT rop, com.sun.jna.NativeLong op) static intmpf_init_set_str(MpfT rop, String str, int base) static voidmpf_init_set_ui(MpfT rop, NativeUnsignedLong op) static voidstatic voidstatic SizeTmpf_inp_str(MpqT rop, com.sun.jna.Pointer stream, int base) static booleanmpf_integer_p(MpfT op) static voidstatic voidmpf_mul_2exp(MpfT rop, MpfT op1, MpBitcntT op2) static voidmpf_mul_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2) static voidstatic SizeTmpf_out_str(com.sun.jna.Pointer stream, int base, SizeT nDigits, MpfT op) static voidmpf_pow_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2) static voidmpf_random2(MpfT rop, MpSizeT max_size, MpExpT exp) static intmpf_reldiff(MpfT rop, MpfT op1, MpfT op2) static voidstatic voidstatic voidstatic voidmpf_set_prec(MpfT rop, MpBitcntT prec) static voidmpf_set_prec_raw(MpfT rop, MpBitcntT prec) static voidstatic voidmpf_set_si(MpfT rop, com.sun.jna.NativeLong op) static intmpf_set_str(MpfT rop, String str, int base) static voidmpf_set_ui(MpfT rop, NativeUnsignedLong op) static voidstatic intstatic voidstatic voidmpf_sqrt_ui(MpfT rop, NativeUnsignedLong op) static voidstatic voidmpf_sub_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2) static voidstatic voidstatic voidmpf_ui_div(MpfT rop, NativeUnsignedLong op1, MpfT op2) static voidmpf_ui_sub(MpfT rop, NativeUnsignedLong op1, MpfT op2) static voidmpf_urandomb(MpfT rop, GmpRandstateT state, MpBitcntT n) static voidstatic voidstatic voidstatic voidstatic voidmpq_clears(MpqT... xs) static intstatic intmpq_cmp_si(MpqT op1, com.sun.jna.NativeLong op2, NativeUnsignedLong den2) static intmpq_cmp_ui(MpqT op1, NativeUnsignedLong num2, NativeUnsignedLong den2) static intstatic MpzTmpq_denref(MpqT op) static voidstatic voidmpq_div_2exp(MpqT rop, MpqT op1, MpBitcntT op2) static booleanstatic doublestatic voidmpq_get_den(MpzT denominator, MpqT rational) static voidmpq_get_num(MpzT numerator, MpqT rational) static com.sun.jna.Pointermpq_get_str(ByteBuffer str, int base, MpqT op) static voidstatic voidstatic SizeTmpq_inp_str(MpqT rop, com.sun.jna.Pointer stream, int base) static voidstatic voidstatic voidmpq_mul_2exp(MpqT rop, MpqT op1, MpBitcntT op2) static voidstatic MpzTmpq_numref(MpqT op) static SizeTmpq_out_str(com.sun.jna.Pointer stream, int base, MpqT op) static voidstatic voidstatic voidmpq_set_den(MpqT rational, MpzT denominator) static voidstatic voidmpq_set_num(MpqT rational, MpzT numerator) static voidmpq_set_si(MpqT rop, com.sun.jna.NativeLong op1, com.sun.jna.NativeLong op2) static intmpq_set_str(MpqT rop, String str, int base) static voidmpq_set_ui(MpqT rop, NativeUnsignedLong op1, NativeUnsignedLong op2) static voidstatic intstatic voidstatic voidstatic voidmpz_2fac_ui(MpzT rop, NativeUnsignedLong n) static voidstatic voidstatic voidmpz_add_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static voidmpz_addmul(MpzT rop, MpzT op1, MpzT op2) static voidmpz_addmul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static voidstatic voidmpz_bin_ui(MpzT rop, MpzT n, NativeUnsignedLong k) static voidmpz_bin_uiui(MpzT rop, NativeUnsignedLong n, NativeUnsignedLong k) static voidmpz_cdiv_q(MpzT q, MpzT n, MpzT d) static voidmpz_cdiv_q_2exp(MpzT q, MpzT n, MpBitcntT b) static NativeUnsignedLongmpz_cdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d) static voidmpz_cdiv_qr(MpzT q, MpzT r, MpzT n, MpzT d) static NativeUnsignedLongmpz_cdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d) static voidmpz_cdiv_r(MpzT r, MpzT n, MpzT d) static voidmpz_cdiv_r_2exp(MpzT r, MpzT n, MpBitcntT b) static NativeUnsignedLongmpz_cdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d) static NativeUnsignedLongstatic voidstatic voidmpz_clears(MpzT... xs) static MpBitcntTmpz_clrbit(MpzT rop, MpBitcntT index) static intstatic intstatic intmpz_cmp_si(MpzT op1, com.sun.jna.NativeLong op2) static intmpz_cmp_ui(MpzT op1, NativeUnsignedLong op2) static intmpz_cmpabs(MpzT op1, MpzT op2) static intmpz_cmpabs_d(MpzT op1, double op2) static intmpz_cmpabs_ui(MpzT op1, NativeUnsignedLong op2) static voidstatic MpBitcntTmpz_combit(MpzT rop, MpBitcntT index) static booleanmpz_congruent_2exp_p(MpzT n, MpzT c, MpBitcntT b) static booleanmpz_congruent_p(MpzT n, MpzT c, MpzT d) static booleanstatic voidmpz_divexact(MpzT r, MpzT n, MpzT d) static voidmpz_divexact_ui(MpzT r, MpzT n, NativeUnsignedLong d) static booleanstatic booleanmpz_divisible_p(MpzT n, MpzT d) static booleanstatic booleanmpz_even_p(MpzT op) static com.sun.jna.Pointermpz_export(ByteBuffer rop, SizeTByReference count, int order, SizeT size, int endian, SizeT nails, MpzT op) static voidmpz_fac_ui(MpzT rop, NativeUnsignedLong n) static voidmpz_fdiv_q(MpzT q, MpzT n, MpzT d) static voidmpz_fdiv_q_2exp(MpzT q, MpzT n, NativeUnsignedLong b) static NativeUnsignedLongmpz_fdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d) static voidmpz_fdiv_qr(MpzT q, MpzT r, MpzT n, MpzT d) static NativeUnsignedLongmpz_fdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d) static voidmpz_fdiv_r(MpzT r, MpzT n, MpzT d) static voidmpz_fdiv_r_2exp(MpzT r, MpzT n, NativeUnsignedLong b) static NativeUnsignedLongmpz_fdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d) static NativeUnsignedLongstatic voidmpz_fib_ui(MpzT fn, NativeUnsignedLong n) static voidmpz_fib2_ui(MpzT fn, MpzT fnsub1, NativeUnsignedLong n) static booleanmpz_fits_sint_p(MpzT op) static booleanmpz_fits_slong_p(MpzT op) static booleanstatic booleanmpz_fits_uint_p(MpzT op) static booleanmpz_fits_ulong_p(MpzT op) static booleanstatic voidstatic NativeUnsignedLongmpz_gcd_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static voidstatic doublestatic doublempz_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpzT op) static com.sun.jna.NativeLongmpz_get_si(MpzT op) static com.sun.jna.Pointermpz_get_str(ByteBuffer str, int base, MpzT op) static NativeUnsignedLongmpz_get_ui(MpzT op) static MpBitcntTmpz_hamdist(MpzT op1, MpzT op2) static voidmpz_import(MpzT rop, SizeT count, int order, SizeT size, int endian, SizeT nails, ByteBuffer op) static voidstatic voidmpz_init_set(MpzT rop, MpzT op) static voidmpz_init_set_d(MpzT rop, double op) static voidmpz_init_set_si(MpzT rop, com.sun.jna.NativeLong op) static intmpz_init_set_str(MpzT rop, String str, int base) static voidmpz_init_set_ui(MpzT rop, NativeUnsignedLong op) static voidstatic voidstatic SizeTmpz_inp_raw(MpzT rop, com.sun.jna.Pointer stream) static SizeTmpz_inp_str(MpzT rop, com.sun.jna.Pointer stream, int base) static booleanmpz_invert(MpzT rop, MpzT op1, MpzT op2) static voidstatic intmpz_jacobi(MpzT a, MpzT b) static intmpz_kronecker_si(MpzT a, com.sun.jna.NativeLong b) static intstatic voidstatic voidmpz_lcm_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static intmpz_legendre(MpzT a, MpzT b) static voidmpz_lucnum_ui(MpzT ln, NativeUnsignedLong n) static voidmpz_lucnum2_ui(MpzT ln, MpzT lnsub1, NativeUnsignedLong n) static voidmpz_mfac_uiui(MpzT rop, NativeUnsignedLong n, NativeUnsignedLong m) static voidstatic NativeUnsignedLongmpz_mod_ui(MpzT r, MpzT n, NativeUnsignedLong d) static voidstatic voidmpz_mul_2exp(MpzT rop, MpzT op1, MpBitcntT op2) static voidmpz_mul_si(MpzT rop, MpzT op1, com.sun.jna.NativeLong op2) static voidmpz_mul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static voidstatic voidmpz_nextprime(MpzT rop, MpzT op) static booleanstatic SizeTmpz_out_raw(com.sun.jna.Pointer stream, MpzT op) static SizeTmpz_out_str(com.sun.jna.Pointer stream, int base, MpzT op) static booleanstatic booleanstatic MpBitcntTmpz_popcount(MpzT op) static voidmpz_pow_ui(MpzT rop, MpzT base, NativeUnsignedLong exp) static voidstatic voidmpz_powm_sec(MpzT rop, MpzT base, MpzT exp, MpzT mod) static voidmpz_powm_ui(MpzT rop, MpzT base, NativeUnsignedLong exp, MpzT mod) static voidmpz_primorial_ui(MpzT rop, NativeUnsignedLong n) static intmpz_probab_prime_p(MpzT op, int reps) static voidmpz_random(MpzT rop, MpSizeT max_size) static voidmpz_random2(MpzT rop, MpSizeT max_size) static voidmpz_realloc2(MpzT x, MpBitcntT n) static MpBitcntTmpz_remove(MpzT rop, MpzT op, MpzT f) static booleanmpz_root(MpzT rop, MpzT op, NativeUnsignedLong n) static voidmpz_rootrem(MpzT rop, MpzT rem, MpzT op, NativeUnsignedLong n) static voidmpz_rrandomb(MpzT rop, GmpRandstateT state, MpBitcntT n) static MpBitcntTstatic MpBitcntTstatic voidstatic voidstatic voidstatic voidstatic voidmpz_set_si(MpzT rop, com.sun.jna.NativeLong op) static intmpz_set_str(MpzT rop, String str, int base) static voidmpz_set_ui(MpzT rop, NativeUnsignedLong op) static MpBitcntTmpz_setbit(MpzT rop, MpBitcntT index) static intstatic intmpz_si_kronecker(com.sun.jna.NativeLong a, MpzT b) static SizeTmpz_sizeinbase(MpzT op, int base) static voidstatic voidmpz_sqrtrem(MpzT rop, MpzT rem, MpzT op) static voidstatic voidmpz_sub_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static voidmpz_submul(MpzT rop, MpzT op1, MpzT op2) static voidmpz_submul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2) static voidstatic voidmpz_tdiv_q(MpzT q, MpzT n, MpzT d) static voidmpz_tdiv_q_2exp(MpzT q, MpzT n, NativeUnsignedLong b) static NativeUnsignedLongmpz_tdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d) static voidmpz_tdiv_qr(MpzT q, MpzT r, MpzT n, MpzT d) static NativeUnsignedLongmpz_tdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d) static voidmpz_tdiv_r(MpzT r, MpzT n, MpzT d) static voidmpz_tdiv_r_2exp(MpzT r, MpzT n, NativeUnsignedLong b) static NativeUnsignedLongmpz_tdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d) static NativeUnsignedLongstatic intmpz_tstbit(MpzT rop, MpBitcntT index) static intstatic voidmpz_ui_pow_ui(MpzT rop, NativeUnsignedLong base, NativeUnsignedLong exp) static voidmpz_ui_sub(MpzT rop, NativeUnsignedLong op1, MpzT op2) static voidmpz_urandomb(MpzT rop, GmpRandstateT state, MpBitcntT n) static voidmpz_urandomm(MpzT rop, GmpRandstateT state, MpzT n) static void
-
Field Details
-
LIBNAME
-
mp_bits_per_limb
public static final int mp_bits_per_limbThe number of bits per limb. -
__GNU_MP_VERSION
public static final int __GNU_MP_VERSIONThe major GMP version. It is the "i" component ingmp_version. -
__GNU_MP_VERSION_MINOR
public static final int __GNU_MP_VERSION_MINORThe minor GMP version. It is the "j" component ingmp_version. -
__GNU_MP_VERSION_PATCHLEVEL
public static final int __GNU_MP_VERSION_PATCHLEVELThe patch level GMP version. It is the "k" component ingmp_version. -
gmp_version
The native GMP version number, in the form “i.j.k”. -
gmp_errno_pointer
private static final com.sun.jna.Pointer gmp_errno_pointerPointer to thegmp_errnovariable. -
GMP_ERROR_NONE
public static final int GMP_ERROR_NONE- See Also:
-
GMP_ERROR_UNSUPPORTED_ARGUMENT
public static final int GMP_ERROR_UNSUPPORTED_ARGUMENT- See Also:
-
GMP_ERROR_DIVISION_BY_ZERO
public static final int GMP_ERROR_DIVISION_BY_ZERO- See Also:
-
GMP_ERROR_SQRT_OF_NEGATIVE
public static final int GMP_ERROR_SQRT_OF_NEGATIVE- See Also:
-
GMP_ERROR_INVALID_ARGUMENT
public static final int GMP_ERROR_INVALID_ARGUMENT- See Also:
-
GMP_RAND_ALG_DEFAULT
public static final int GMP_RAND_ALG_DEFAULT- See Also:
-
GMP_RAND_ALG_LC
public static final int GMP_RAND_ALG_LC- See Also:
-
mpz_zero
The integer 0 (assuming no one changes it) -
mpq_zero
The rational 0 (assuming no one changes it) -
mpf_zero
The floating point 0 (assuming no one changes it) -
gmp_deallocator
The native deallocator used by the GMP library. -
gmp_default_deallocator
The default native deallocator used by the GMP library. -
decimalSeparator
-
gmpextra
Instance of theLibGmpExtrainterface created at initialization time.
-
-
Constructor Details
-
LibGmp
private LibGmp()A private constructor, since this class should never be instantiated.
-
-
Method Details
-
gmp_errno
public static int gmp_errno()Return the value of the global error variable, used by obsolete random number functions. Every bit of this variable has a different meaning, encoded by theGMP_ERROR_xx -
deallocate
Call the native deallocator used by the GMP library. In general, it is not possible to deallocate memory allocated by GMP (such as from thempz_get_strfunction) usingNative.free, since in some environments (e.g., Windows) GMP runs using a Unix compatibility layer which uses a non-standard allocation methods. -
getDecimalSeparator
Return the system decimal separator. Just called one to initialize thedecimalSeparatorfield. -
mpz_init
-
mpz_inits
-
mpz_init2
-
mpz_clear
-
__gmpz_clear
public static void __gmpz_clear(com.sun.jna.Pointer x) -
mpz_clears
-
mpz_realloc2
-
mpz_set
-
mpz_set_ui
-
mpz_set_si
-
mpz_set_d
-
mpz_set_q
-
mpz_set_f
-
mpz_set_str
-
mpz_swap
-
mpz_init_set
-
mpz_init_set_ui
-
mpz_init_set_si
-
mpz_init_set_d
-
mpz_init_set_str
-
mpz_get_ui
-
mpz_get_si
-
mpz_get_d
-
mpz_get_d_2exp
-
mpz_get_str
-
mpz_add
-
mpz_add_ui
-
mpz_sub
-
mpz_sub_ui
-
mpz_ui_sub
-
mpz_mul
-
mpz_mul_si
-
mpz_mul_ui
-
mpz_addmul
-
mpz_addmul_ui
-
mpz_submul
-
mpz_submul_ui
-
mpz_mul_2exp
-
mpz_neg
-
mpz_abs
-
mpz_cdiv_q
-
mpz_cdiv_r
-
mpz_cdiv_qr
-
mpz_cdiv_q_ui
-
mpz_cdiv_r_ui
-
mpz_cdiv_qr_ui
-
mpz_cdiv_ui
-
mpz_cdiv_q_2exp
-
mpz_cdiv_r_2exp
-
mpz_fdiv_q
-
mpz_fdiv_r
-
mpz_fdiv_qr
-
mpz_fdiv_q_ui
-
mpz_fdiv_r_ui
-
mpz_fdiv_qr_ui
-
mpz_fdiv_ui
-
mpz_fdiv_q_2exp
-
mpz_fdiv_r_2exp
-
mpz_tdiv_q
-
mpz_tdiv_r
-
mpz_tdiv_qr
-
mpz_tdiv_q_ui
-
mpz_tdiv_r_ui
-
mpz_tdiv_qr_ui
-
mpz_tdiv_ui
-
mpz_tdiv_q_2exp
-
mpz_tdiv_r_2exp
-
mpz_mod
-
mpz_mod_ui
-
mpz_divexact
-
mpz_divexact_ui
-
mpz_divisible_p
-
mpz_divisible_ui_p
-
mpz_divisible_2exp_p
-
mpz_congruent_p
-
mpz_congruent_ui_p
-
mpz_congruent_2exp_p
-
mpz_powm
-
mpz_powm_ui
-
mpz_powm_sec
-
mpz_pow_ui
-
mpz_ui_pow_ui
-
mpz_root
-
mpz_rootrem
-
mpz_sqrt
-
mpz_sqrtrem
-
mpz_perfect_power_p
-
mpz_perfect_square_p
-
mpz_probab_prime_p
-
mpz_nextprime
-
mpz_gcd
-
mpz_gcd_ui
-
mpz_gcdext
-
mpz_lcm
-
mpz_lcm_ui
-
mpz_invert
-
mpz_jacobi
-
mpz_legendre
-
mpz_kronecker_si
-
mpz_kronecker_ui
-
mpz_si_kronecker
-
mpz_ui_kronecker
-
mpz_remove
-
mpz_fac_ui
-
mpz_2fac_ui
-
mpz_mfac_uiui
-
mpz_primorial_ui
-
mpz_bin_ui
-
mpz_bin_uiui
-
mpz_fib_ui
-
mpz_fib2_ui
-
mpz_lucnum_ui
-
mpz_lucnum2_ui
-
mpz_cmp
-
mpz_cmp_d
-
mpz_cmp_si
-
mpz_cmp_ui
-
mpz_cmpabs
-
mpz_cmpabs_d
-
mpz_cmpabs_ui
-
mpz_sgn
-
mpz_and
-
mpz_ior
-
mpz_xor
-
mpz_com
-
mpz_popcount
-
mpz_hamdist
-
mpz_scan0
-
mpz_scan1
-
mpz_setbit
-
mpz_clrbit
-
mpz_combit
-
mpz_tstbit
-
mpz_out_str
-
mpz_inp_str
-
mpz_out_raw
-
mpz_inp_raw
-
mpz_urandomb
-
mpz_urandomm
-
mpz_rrandomb
-
mpz_random
-
mpz_random2
-
mpz_import
public static void mpz_import(MpzT rop, SizeT count, int order, SizeT size, int endian, SizeT nails, ByteBuffer op) -
mpz_export
public static com.sun.jna.Pointer mpz_export(ByteBuffer rop, SizeTByReference count, int order, SizeT size, int endian, SizeT nails, MpzT op) -
mpz_fits_ulong_p
-
mpz_fits_slong_p
-
mpz_fits_uint_p
-
mpz_fits_sint_p
-
mpz_fits_ushort_p
-
mpz_fits_sshort_p
-
mpz_odd_p
-
mpz_even_p
-
mpz_sizeinbase
-
mpq_canonicalize
-
mpq_init
-
mpq_inits
-
mpq_clear
-
__gmpq_clear
public static void __gmpq_clear(com.sun.jna.Pointer x) -
mpq_clears
-
mpq_set
-
mpq_set_z
-
mpq_set_ui
-
mpq_set_si
-
mpq_set_str
-
mpq_swap
-
mpq_get_d
-
mpq_set_d
-
mpq_set_f
-
mpq_get_str
-
mpq_add
-
mpq_sub
-
mpq_mul
-
mpq_mul_2exp
-
mpq_div
-
mpq_div_2exp
-
mpq_neg
-
mpq_abs
-
mpq_inv
-
mpq_cmp
-
mpq_cmp_z
-
mpq_cmp_ui
-
mpq_cmp_si
-
mpq_sgn
-
mpq_equal
-
mpq_numref
-
mpq_denref
-
mpq_get_num
-
mpq_get_den
-
mpq_set_num
-
mpq_set_den
-
mpq_out_str
-
mpq_inp_str
-
mpf_set_default_prec
-
mpf_get_default_prec
-
mpf_init
-
mpf_init2
-
mpf_inits
-
mpf_clear
-
__gmpf_clear
public static void __gmpf_clear(com.sun.jna.Pointer x) -
mpf_clears
-
mpf_get_prec
-
mpf_set_prec
-
mpf_set_prec_raw
-
mpf_set
-
mpf_set_ui
-
mpf_set_si
-
mpf_set_d
-
mpf_set_z
-
mpf_set_q
-
mpf_set_str
-
mpf_swap
-
mpf_init_set
-
mpf_init_set_ui
-
mpf_init_set_si
-
mpf_init_set_d
-
mpf_init_set_str
-
mpf_get_d
-
mpf_get_d_2exp
-
mpf_get_si
-
mpf_get_ui
-
mpf_get_str
public static com.sun.jna.Pointer mpf_get_str(ByteBuffer str, MpExpTByReference exp, int base, MpSizeT nDigits, MpfT op) -
mpf_add
-
mpf_add_ui
-
mpf_sub
-
mpf_sub_ui
-
mpf_ui_sub
-
mpf_mul
-
mpf_mul_ui
-
mpf_div
-
mpf_div_ui
-
mpf_ui_div
-
mpf_sqrt
-
mpf_sqrt_ui
-
mpf_pow_ui
-
mpf_neg
-
mpf_abs
-
mpf_mul_2exp
-
mpf_div_2exp
-
mpf_cmp
-
mpf_cmp_z
-
mpf_cmp_d
-
mpf_cmp_ui
-
mpf_cmp_si
-
mpf_eq
-
mpf_reldiff
-
mpf_sgn
-
mpf_out_str
-
mpf_inp_str
-
mpf_ceil
-
mpf_floor
-
mpf_trunc
-
mpf_integer_p
-
mpf_fits_ulong_p
-
mpf_fits_slong_p
-
mpf_fits_uint_p
-
mpf_fits_sint_p
-
mpf_fits_ushort_p
-
mpf_fits_sshort_p
-
mpf_urandomb
-
mpf_random2
-
gmp_randinit_default
-
gmp_randinit_mt
-
gmp_randinit_lc_2exp
public static void gmp_randinit_lc_2exp(GmpRandstateT state, MpzT a, NativeUnsignedLong c, MpBitcntT m2exp) -
gmp_randinit_lc_2exp_size
-
gmp_randinit_set
-
gmp_randinit
-
gmp_randclear
-
__gmp_randclear
public static void __gmp_randclear(com.sun.jna.Pointer x) -
gmp_randseed
-
gmp_randseed_ui
-
gmp_urandomb_ui
-
gmp_urandomm_ui
-
gmp_printf
-
gmp_vprintf
-
gmp_fprintf
-
gmp_vfprintf
-
gmp_sprintf
-
gmp_vsprintf
-
gmp_snprintf
-
gmp_vsnprintf
-
gmp_asprintf
-
gmp_vasprintf
public static int gmp_vasprintf(com.sun.jna.ptr.PointerByReference pp, String fmt, com.sun.jna.Pointer ap) -
gmp_scanf
-
gmp_vscanf
-
gmp_fscanf
-
gmp_vfscanf
-
gmp_sscanf
-
gmp_vsscanf
-
__gmp_set_memory_functions
private static void __gmp_set_memory_functions(AllocFunc alloc_func_ptr, ReallocFunc realloc_func_ptr, FreeFunc free_func_ptr) -
mp_get_memory_functions
public static void mp_get_memory_functions(AllocFuncByReference alloc_func_ptr, ReallocFuncByReference realloc_func_ptr, FreeFuncByReference free_func_ptr) -
mp_set_memory_functions
public static void mp_set_memory_functions(AllocFunc alloc_func_ptr, ReallocFunc realloc_func_ptr, FreeFunc free_func_ptr)
-