Class LibGmp
- java.lang.Object
-
- it.unich.jgmp.nativelib.LibGmp
-
public class LibGmp extends java.lang.ObjectThis class contains the static native methods corresponding to GMP functions. This class also contains constants for the size of native GMP structures and some global variables.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
FILEtype), have been omitted entirely.We strived to be type safe, by defining different subclasses of
com.sun.jna.PointerTypeandcom.sun.jna.IntegerTypefor different native types. Newly defined types have the same name of GMP native types but converted to camel case. For example,mpf_tbecomesMpfT, whilemp_exp_tisMpExpT. The only exception isNativeUnsignedLongwhich should be used for native unsigned longs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceLibGmp.LibGmpExtraInterface for the native functions with a variable number of arguments.
-
Field Summary
Fields Modifier and Type Field Description static int__GNU_MP_VERSIONThe major GMP version.static int__GNU_MP_VERSION_MINORThe minor GMP version.static int__GNU_MP_VERSION_PATCHLEVELThe patch level GMP version.static java.lang.StringdecimalSeparatorThe system decimal separator.private static FreeFuncgmp_deallocatorThe native deallocator used by the GMP library.private static FreeFuncgmp_default_deallocatorThe default native deallocator used by the GMP library.private static com.sun.jna.Pointergmp_errno_pointerPointer to thegmp_errnovariable.static intGMP_ERROR_DIVISION_BY_ZEROstatic intGMP_ERROR_INVALID_ARGUMENTstatic intGMP_ERROR_NONEstatic intGMP_ERROR_SQRT_OF_NEGATIVEstatic intGMP_ERROR_UNSUPPORTED_ARGUMENTstatic intGMP_RAND_ALG_DEFAULTstatic intGMP_RAND_ALG_LCstatic java.lang.Stringgmp_versionThe native GMP version number, in the form “i.j.k”.private static LibGmp.LibGmpExtragmpextraInstance of theLibGmpExtrainterface created at initialization time.private static java.lang.StringLIBNAMEThe undecorated name of the GMP library.static intmp_bits_per_limbThe number of bits per limb.private static MpfTmpf_zeroThe floating point 0 (assuming no one changes it)private static MpqTmpq_zeroThe rational 0 (assuming no one changes it)private static MpzTmpz_zeroThe integer 0 (assuming no one changes it)
-
Constructor Summary
Constructors Modifier Constructor Description privateLibGmp()A private constructor, since this class should never be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.lang.StringgetDecimalSeparator()Return the system decimal separator.static intgmp_asprintf(com.sun.jna.ptr.PointerByReference pp, java.lang.String fmt, java.lang.Object... args)static intgmp_errno()Return the value of the global error variable, used by obsolete random number functions.static intgmp_fprintf(com.sun.jna.Pointer fp, java.lang.String fmt, java.lang.Object... args)static intgmp_fscanf(com.sun.jna.Pointer fp, java.lang.String fmt, java.lang.Object... args)static intgmp_printf(java.lang.String fmt, java.lang.Object... args)static voidgmp_randclear(GmpRandstateT state)static voidgmp_randinit(GmpRandstateT state, int alg, com.sun.jna.NativeLong l)static voidgmp_randinit_default(GmpRandstateT state)static 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 intgmp_scanf(java.lang.String fmt, java.lang.Object... args)static intgmp_snprintf(java.nio.ByteBuffer buf, SizeT size, java.lang.String fmt, java.lang.Object... args)static intgmp_sprintf(java.nio.ByteBuffer buf, java.lang.String fmt, java.lang.Object... args)static intgmp_sscanf(java.lang.String s, java.lang.String fmt, java.lang.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, java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vfprintf(com.sun.jna.Pointer fp, java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vfscanf(com.sun.jna.Pointer fp, java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vprintf(java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vscanf(java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vsnprintf(java.nio.ByteBuffer buf, SizeT size, java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vsprintf(java.nio.ByteBuffer buf, java.lang.String fmt, com.sun.jna.Pointer ap)static intgmp_vsscanf(java.lang.String s, java.lang.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 voidmpf_abs(MpfT rop, MpfT op)static voidmpf_add(MpfT rop, MpfT op1, MpfT op2)static voidmpf_add_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)static voidmpf_ceil(MpfT rop, MpfT op)static voidmpf_clear(MpfT x)static voidmpf_clears(MpfT... xs)static intmpf_cmp(MpfT op1, MpfT op2)static intmpf_cmp_d(MpfT op1, double op2)static intmpf_cmp_si(MpfT op1, com.sun.jna.NativeLong op2)static intmpf_cmp_ui(MpfT op1, NativeUnsignedLong op2)static intmpf_cmp_z(MpfT op1, MpzT op2)static voidmpf_div(MpfT rop, MpfT op1, MpfT op2)static voidmpf_div_2exp(MpfT rop, MpfT op1, MpBitcntT op2)static voidmpf_div_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)static booleanmpf_eq(MpfT op1, MpfT op2, MpBitcntT op3)static booleanmpf_fits_sint_p(MpfT op)static booleanmpf_fits_slong_p(MpfT op)static booleanmpf_fits_sshort_p(MpfT op)static booleanmpf_fits_uint_p(MpfT op)static booleanmpf_fits_ulong_p(MpfT op)static booleanmpf_fits_ushort_p(MpfT op)static voidmpf_floor(MpfT rop, MpfT op)static doublempf_get_d(MpfT op)static doublempf_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpfT op)static MpBitcntTmpf_get_default_prec()static MpBitcntTmpf_get_prec(MpfT op)static com.sun.jna.NativeLongmpf_get_si(MpfT op)static com.sun.jna.Pointermpf_get_str(java.nio.ByteBuffer str, MpExpTByReference exp, int base, MpSizeT nDigits, MpfT op)static NativeUnsignedLongmpf_get_ui(MpfT op)static voidmpf_init(MpfT x)static 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, java.lang.String str, int base)static voidmpf_init_set_ui(MpfT rop, NativeUnsignedLong op)static voidmpf_init2(MpfT x, MpBitcntT n)static voidmpf_inits(MpfT... xs)static SizeTmpf_inp_str(MpqT rop, com.sun.jna.Pointer stream, int base)static booleanmpf_integer_p(MpfT op)static voidmpf_mul(MpfT rop, MpfT op1, MpfT op2)static voidmpf_mul_2exp(MpfT rop, MpfT op1, MpBitcntT op2)static voidmpf_mul_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)static voidmpf_neg(MpfT rop, MpfT op)static 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 voidmpf_set(MpfT rop, MpfT op)static voidmpf_set_d(MpfT rop, double op)static voidmpf_set_default_prec(MpBitcntT prec)static voidmpf_set_prec(MpfT rop, MpBitcntT prec)static voidmpf_set_prec_raw(MpfT rop, MpBitcntT prec)static voidmpf_set_q(MpfT rop, MpqT op)static voidmpf_set_si(MpfT rop, com.sun.jna.NativeLong op)static intmpf_set_str(MpfT rop, java.lang.String str, int base)static voidmpf_set_ui(MpfT rop, NativeUnsignedLong op)static voidmpf_set_z(MpfT rop, MpzT op)static intmpf_sgn(MpfT op)static voidmpf_sqrt(MpfT rop, MpfT op)static voidmpf_sqrt_ui(MpfT rop, NativeUnsignedLong op)static voidmpf_sub(MpfT rop, MpfT op1, MpfT op2)static voidmpf_sub_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)static voidmpf_swap(MpfT rop1, MpfT rop2)static voidmpf_trunc(MpfT rop, MpfT op)static 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 voidmpq_abs(MpqT rop, MpqT operand)static voidmpq_add(MpqT rop, MpqT addend1, MpqT addend2)static voidmpq_canonicalize(MpqT x)static voidmpq_clear(MpqT x)static voidmpq_clears(MpqT... xs)static intmpq_cmp(MpqT op1, MpqT op2)static intmpq_cmp_si(MpqT op1, com.sun.jna.NativeLong op2, NativeUnsignedLong den2)static intmpq_cmp_ui(MpqT op1, NativeUnsignedLong num2, NativeUnsignedLong den2)static intmpq_cmp_z(MpqT op1, MpzT op2)static MpzTmpq_denref(MpqT op)static voidmpq_div(MpqT rop, MpqT dividend, MpqT divisor)static voidmpq_div_2exp(MpqT rop, MpqT op1, MpBitcntT op2)static booleanmpq_equal(MpqT op1, MpqT op2)static doublempq_get_d(MpqT op)static voidmpq_get_den(MpzT denominator, MpqT rational)static voidmpq_get_num(MpzT numerator, MpqT rational)static com.sun.jna.Pointermpq_get_str(java.nio.ByteBuffer str, int base, MpqT op)static voidmpq_init(MpqT x)static voidmpq_inits(MpqT... xs)static SizeTmpq_inp_str(MpqT rop, com.sun.jna.Pointer stream, int base)static voidmpq_inv(MpqT rop, MpqT number)static voidmpq_mul(MpqT rop, MpqT multiplier, MpqT multiplicand)static voidmpq_mul_2exp(MpqT rop, MpqT op1, MpBitcntT op2)static voidmpq_neg(MpqT rop, MpqT operand)static MpzTmpq_numref(MpqT op)static SizeTmpq_out_str(com.sun.jna.Pointer stream, int base, MpqT op)static voidmpq_set(MpqT rop, MpqT op)static voidmpq_set_d(MpqT rop, double op)static voidmpq_set_den(MpqT rational, MpzT denominator)static voidmpq_set_f(MpqT rop, MpfT op)static 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, java.lang.String str, int base)static voidmpq_set_ui(MpqT rop, NativeUnsignedLong op1, NativeUnsignedLong op2)static voidmpq_set_z(MpqT rop, MpzT op)static intmpq_sgn(MpqT op)static voidmpq_sub(MpqT rop, MpqT minuend, MpqT subtrahend)static voidmpq_swap(MpqT rop1, MpqT rop2)static voidmpz_2fac_ui(MpzT rop, NativeUnsignedLong n)static voidmpz_abs(MpzT rop, MpzT op)static voidmpz_add(MpzT rop, MpzT op1, MpzT op2)static 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 voidmpz_and(MpzT rop, MpzT op1, MpzT op2)static 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 NativeUnsignedLongmpz_cdiv_ui(MpzT n, NativeUnsignedLong d)static voidmpz_clear(MpzT x)static voidmpz_clears(MpzT... xs)static MpBitcntTmpz_clrbit(MpzT rop, MpBitcntT index)static intmpz_cmp(MpzT op1, MpzT op2)static intmpz_cmp_d(MpzT op1, double op2)static 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 voidmpz_com(MpzT rop, MpzT op)static 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 booleanmpz_congruent_ui_p(MpzT n, NativeUnsignedLong c, NativeUnsignedLong d)static voidmpz_divexact(MpzT r, MpzT n, MpzT d)static voidmpz_divexact_ui(MpzT r, MpzT n, NativeUnsignedLong d)static booleanmpz_divisible_2exp_p(MpzT n, MpBitcntT b)static booleanmpz_divisible_p(MpzT n, MpzT d)static booleanmpz_divisible_ui_p(MpzT n, NativeUnsignedLong d)static booleanmpz_even_p(MpzT op)static com.sun.jna.Pointermpz_export(java.nio.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 NativeUnsignedLongmpz_fdiv_ui(MpzT n, NativeUnsignedLong d)static 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 booleanmpz_fits_sshort_p(MpzT op)static booleanmpz_fits_uint_p(MpzT op)static booleanmpz_fits_ulong_p(MpzT op)static booleanmpz_fits_ushort_p(MpzT op)static voidmpz_gcd(MpzT rop, MpzT op1, MpzT op2)static NativeUnsignedLongmpz_gcd_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)static voidmpz_gcdext(MpzT g, MpzT s, MpzT t, MpzT a, MpzT b)static doublempz_get_d(MpzT op)static 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(java.nio.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, java.nio.ByteBuffer op)static voidmpz_init(MpzT x)static 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, java.lang.String str, int base)static voidmpz_init_set_ui(MpzT rop, NativeUnsignedLong op)static voidmpz_init2(MpzT x, MpBitcntT n)static voidmpz_inits(MpzT... xs)static 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 voidmpz_ior(MpzT rop, MpzT op1, MpzT op2)static intmpz_jacobi(MpzT a, MpzT b)static intmpz_kronecker_si(MpzT a, com.sun.jna.NativeLong b)static intmpz_kronecker_ui(MpzT a, NativeUnsignedLong b)static voidmpz_lcm(MpzT rop, MpzT op1, MpzT op2)static 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 voidmpz_mod(MpzT r, MpzT n, MpzT d)static NativeUnsignedLongmpz_mod_ui(MpzT r, MpzT n, NativeUnsignedLong d)static voidmpz_mul(MpzT rop, MpzT op1, MpzT op2)static 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 voidmpz_neg(MpzT rop, MpzT op)static voidmpz_nextprime(MpzT rop, MpzT op)static booleanmpz_odd_p(MpzT op)static SizeTmpz_out_raw(com.sun.jna.Pointer stream, MpzT op)static SizeTmpz_out_str(com.sun.jna.Pointer stream, int base, MpzT op)static booleanmpz_perfect_power_p(MpzT op)static booleanmpz_perfect_square_p(MpzT op)static MpBitcntTmpz_popcount(MpzT op)static voidmpz_pow_ui(MpzT rop, MpzT base, NativeUnsignedLong exp)static voidmpz_powm(MpzT rop, MpzT base, MpzT exp, MpzT mod)static 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 MpBitcntTmpz_scan0(MpzT op, MpBitcntT starting_bit)static MpBitcntTmpz_scan1(MpzT op, MpBitcntT starting_bit)static voidmpz_set(MpzT rop, MpzT op)static voidmpz_set_d(MpzT rop, double op)static voidmpz_set_f(MpzT rop, MpfT op)static voidmpz_set_q(MpzT rop, MpqT op)static voidmpz_set_si(MpzT rop, com.sun.jna.NativeLong op)static intmpz_set_str(MpzT rop, java.lang.String str, int base)static voidmpz_set_ui(MpzT rop, NativeUnsignedLong op)static MpBitcntTmpz_setbit(MpzT rop, MpBitcntT index)static intmpz_sgn(MpzT op)static intmpz_si_kronecker(com.sun.jna.NativeLong a, MpzT b)static SizeTmpz_sizeinbase(MpzT op, int base)static voidmpz_sqrt(MpzT rop, MpzT op)static voidmpz_sqrtrem(MpzT rop, MpzT rem, MpzT op)static voidmpz_sub(MpzT rop, MpzT op1, MpzT op2)static 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 voidmpz_swap(MpzT rop1, MpzT rop2)static 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 NativeUnsignedLongmpz_tdiv_ui(MpzT n, NativeUnsignedLong d)static intmpz_tstbit(MpzT rop, MpBitcntT index)static intmpz_ui_kronecker(NativeUnsignedLong a, MpzT b)static 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 voidmpz_xor(MpzT rop, MpzT op1, MpzT op2)
-
-
-
Field Detail
-
LIBNAME
private static final java.lang.String LIBNAME
The undecorated name of the GMP library.- See Also:
- Constant Field Values
-
mp_bits_per_limb
public static final int mp_bits_per_limb
The number of bits per limb.
-
__GNU_MP_VERSION
public static final int __GNU_MP_VERSION
The major GMP version. It is the "i" component ingmp_version.
-
__GNU_MP_VERSION_MINOR
public static final int __GNU_MP_VERSION_MINOR
The minor GMP version. It is the "j" component ingmp_version.
-
__GNU_MP_VERSION_PATCHLEVEL
public static final int __GNU_MP_VERSION_PATCHLEVEL
The patch level GMP version. It is the "k" component ingmp_version.
-
gmp_version
public static final java.lang.String 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_pointer
Pointer to thegmp_errnovariable.
-
GMP_ERROR_NONE
public static final int GMP_ERROR_NONE
- See Also:
- Constant Field Values
-
GMP_ERROR_UNSUPPORTED_ARGUMENT
public static final int GMP_ERROR_UNSUPPORTED_ARGUMENT
- See Also:
- Constant Field Values
-
GMP_ERROR_DIVISION_BY_ZERO
public static final int GMP_ERROR_DIVISION_BY_ZERO
- See Also:
- Constant Field Values
-
GMP_ERROR_SQRT_OF_NEGATIVE
public static final int GMP_ERROR_SQRT_OF_NEGATIVE
- See Also:
- Constant Field Values
-
GMP_ERROR_INVALID_ARGUMENT
public static final int GMP_ERROR_INVALID_ARGUMENT
- See Also:
- Constant Field Values
-
GMP_RAND_ALG_DEFAULT
public static final int GMP_RAND_ALG_DEFAULT
- See Also:
- Constant Field Values
-
GMP_RAND_ALG_LC
public static final int GMP_RAND_ALG_LC
- See Also:
- Constant Field Values
-
mpz_zero
private static MpzT mpz_zero
The integer 0 (assuming no one changes it)
-
mpq_zero
private static MpqT mpq_zero
The rational 0 (assuming no one changes it)
-
mpf_zero
private static MpfT mpf_zero
The floating point 0 (assuming no one changes it)
-
gmp_deallocator
private static FreeFunc gmp_deallocator
The native deallocator used by the GMP library.
-
gmp_default_deallocator
private static FreeFunc gmp_default_deallocator
The default native deallocator used by the GMP library.
-
decimalSeparator
public static final java.lang.String decimalSeparator
The system decimal separator. We compute this value when theLibGmpclass is loaded, and we assume it is not changed later.
-
gmpextra
private static final LibGmp.LibGmpExtra gmpextra
Instance of theLibGmpExtrainterface created at initialization time.
-
-
Method Detail
-
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
public static void deallocate(com.sun.jna.Pointer p, SizeT size)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
private static java.lang.String getDecimalSeparator()
Return the system decimal separator. Just called one to initialize thedecimalSeparatorfield.
-
mpz_init
public static void mpz_init(MpzT x)
-
mpz_inits
public static void mpz_inits(MpzT... xs)
-
mpz_clear
public static void mpz_clear(MpzT x)
-
__gmpz_clear
public static void __gmpz_clear(com.sun.jna.Pointer x)
-
mpz_clears
public static void mpz_clears(MpzT... xs)
-
mpz_set_ui
public static void mpz_set_ui(MpzT rop, NativeUnsignedLong op)
-
mpz_set_si
public static void mpz_set_si(MpzT rop, com.sun.jna.NativeLong op)
-
mpz_set_d
public static void mpz_set_d(MpzT rop, double op)
-
mpz_set_str
public static int mpz_set_str(MpzT rop, java.lang.String str, int base)
-
mpz_init_set_ui
public static void mpz_init_set_ui(MpzT rop, NativeUnsignedLong op)
-
mpz_init_set_si
public static void mpz_init_set_si(MpzT rop, com.sun.jna.NativeLong op)
-
mpz_init_set_d
public static void mpz_init_set_d(MpzT rop, double op)
-
mpz_init_set_str
public static int mpz_init_set_str(MpzT rop, java.lang.String str, int base)
-
mpz_get_ui
public static NativeUnsignedLong mpz_get_ui(MpzT op)
-
mpz_get_si
public static com.sun.jna.NativeLong mpz_get_si(MpzT op)
-
mpz_get_d
public static double mpz_get_d(MpzT op)
-
mpz_get_d_2exp
public static double mpz_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpzT op)
-
mpz_get_str
public static com.sun.jna.Pointer mpz_get_str(java.nio.ByteBuffer str, int base, MpzT op)
-
mpz_add_ui
public static void mpz_add_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_sub_ui
public static void mpz_sub_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_ui_sub
public static void mpz_ui_sub(MpzT rop, NativeUnsignedLong op1, MpzT op2)
-
mpz_mul_ui
public static void mpz_mul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_addmul_ui
public static void mpz_addmul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_submul_ui
public static void mpz_submul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_cdiv_q_ui
public static NativeUnsignedLong mpz_cdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d)
-
mpz_cdiv_r_ui
public static NativeUnsignedLong mpz_cdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_cdiv_qr_ui
public static NativeUnsignedLong mpz_cdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_cdiv_ui
public static NativeUnsignedLong mpz_cdiv_ui(MpzT n, NativeUnsignedLong d)
-
mpz_fdiv_q_ui
public static NativeUnsignedLong mpz_fdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d)
-
mpz_fdiv_r_ui
public static NativeUnsignedLong mpz_fdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_fdiv_qr_ui
public static NativeUnsignedLong mpz_fdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_fdiv_ui
public static NativeUnsignedLong mpz_fdiv_ui(MpzT n, NativeUnsignedLong d)
-
mpz_fdiv_q_2exp
public static void mpz_fdiv_q_2exp(MpzT q, MpzT n, NativeUnsignedLong b)
-
mpz_fdiv_r_2exp
public static void mpz_fdiv_r_2exp(MpzT r, MpzT n, NativeUnsignedLong b)
-
mpz_tdiv_q_ui
public static NativeUnsignedLong mpz_tdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d)
-
mpz_tdiv_r_ui
public static NativeUnsignedLong mpz_tdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_tdiv_qr_ui
public static NativeUnsignedLong mpz_tdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_tdiv_ui
public static NativeUnsignedLong mpz_tdiv_ui(MpzT n, NativeUnsignedLong d)
-
mpz_tdiv_q_2exp
public static void mpz_tdiv_q_2exp(MpzT q, MpzT n, NativeUnsignedLong b)
-
mpz_tdiv_r_2exp
public static void mpz_tdiv_r_2exp(MpzT r, MpzT n, NativeUnsignedLong b)
-
mpz_mod_ui
public static NativeUnsignedLong mpz_mod_ui(MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_divexact_ui
public static void mpz_divexact_ui(MpzT r, MpzT n, NativeUnsignedLong d)
-
mpz_divisible_ui_p
public static boolean mpz_divisible_ui_p(MpzT n, NativeUnsignedLong d)
-
mpz_congruent_ui_p
public static boolean mpz_congruent_ui_p(MpzT n, NativeUnsignedLong c, NativeUnsignedLong d)
-
mpz_powm_ui
public static void mpz_powm_ui(MpzT rop, MpzT base, NativeUnsignedLong exp, MpzT mod)
-
mpz_pow_ui
public static void mpz_pow_ui(MpzT rop, MpzT base, NativeUnsignedLong exp)
-
mpz_ui_pow_ui
public static void mpz_ui_pow_ui(MpzT rop, NativeUnsignedLong base, NativeUnsignedLong exp)
-
mpz_root
public static boolean mpz_root(MpzT rop, MpzT op, NativeUnsignedLong n)
-
mpz_rootrem
public static void mpz_rootrem(MpzT rop, MpzT rem, MpzT op, NativeUnsignedLong n)
-
mpz_perfect_power_p
public static boolean mpz_perfect_power_p(MpzT op)
-
mpz_perfect_square_p
public static boolean mpz_perfect_square_p(MpzT op)
-
mpz_probab_prime_p
public static int mpz_probab_prime_p(MpzT op, int reps)
-
mpz_gcd_ui
public static NativeUnsignedLong mpz_gcd_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_lcm_ui
public static void mpz_lcm_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
-
mpz_kronecker_si
public static int mpz_kronecker_si(MpzT a, com.sun.jna.NativeLong b)
-
mpz_kronecker_ui
public static int mpz_kronecker_ui(MpzT a, NativeUnsignedLong b)
-
mpz_si_kronecker
public static int mpz_si_kronecker(com.sun.jna.NativeLong a, MpzT b)
-
mpz_ui_kronecker
public static int mpz_ui_kronecker(NativeUnsignedLong a, MpzT b)
-
mpz_fac_ui
public static void mpz_fac_ui(MpzT rop, NativeUnsignedLong n)
-
mpz_2fac_ui
public static void mpz_2fac_ui(MpzT rop, NativeUnsignedLong n)
-
mpz_mfac_uiui
public static void mpz_mfac_uiui(MpzT rop, NativeUnsignedLong n, NativeUnsignedLong m)
-
mpz_primorial_ui
public static void mpz_primorial_ui(MpzT rop, NativeUnsignedLong n)
-
mpz_bin_ui
public static void mpz_bin_ui(MpzT rop, MpzT n, NativeUnsignedLong k)
-
mpz_bin_uiui
public static void mpz_bin_uiui(MpzT rop, NativeUnsignedLong n, NativeUnsignedLong k)
-
mpz_fib_ui
public static void mpz_fib_ui(MpzT fn, NativeUnsignedLong n)
-
mpz_fib2_ui
public static void mpz_fib2_ui(MpzT fn, MpzT fnsub1, NativeUnsignedLong n)
-
mpz_lucnum_ui
public static void mpz_lucnum_ui(MpzT ln, NativeUnsignedLong n)
-
mpz_lucnum2_ui
public static void mpz_lucnum2_ui(MpzT ln, MpzT lnsub1, NativeUnsignedLong n)
-
mpz_cmp_d
public static int mpz_cmp_d(MpzT op1, double op2)
-
mpz_cmp_si
public static int mpz_cmp_si(MpzT op1, com.sun.jna.NativeLong op2)
-
mpz_cmp_ui
public static int mpz_cmp_ui(MpzT op1, NativeUnsignedLong op2)
-
mpz_cmpabs_d
public static int mpz_cmpabs_d(MpzT op1, double op2)
-
mpz_cmpabs_ui
public static int mpz_cmpabs_ui(MpzT op1, NativeUnsignedLong op2)
-
mpz_sgn
public static int mpz_sgn(MpzT op)
-
mpz_urandomb
public static void mpz_urandomb(MpzT rop, GmpRandstateT state, MpBitcntT n)
-
mpz_urandomm
public static void mpz_urandomm(MpzT rop, GmpRandstateT state, MpzT n)
-
mpz_rrandomb
public static void mpz_rrandomb(MpzT rop, GmpRandstateT state, MpBitcntT n)
-
mpz_import
public static void mpz_import(MpzT rop, SizeT count, int order, SizeT size, int endian, SizeT nails, java.nio.ByteBuffer op)
-
mpz_export
public static com.sun.jna.Pointer mpz_export(java.nio.ByteBuffer rop, SizeTByReference count, int order, SizeT size, int endian, SizeT nails, MpzT op)
-
mpz_fits_ulong_p
public static boolean mpz_fits_ulong_p(MpzT op)
-
mpz_fits_slong_p
public static boolean mpz_fits_slong_p(MpzT op)
-
mpz_fits_uint_p
public static boolean mpz_fits_uint_p(MpzT op)
-
mpz_fits_sint_p
public static boolean mpz_fits_sint_p(MpzT op)
-
mpz_fits_ushort_p
public static boolean mpz_fits_ushort_p(MpzT op)
-
mpz_fits_sshort_p
public static boolean mpz_fits_sshort_p(MpzT op)
-
mpz_odd_p
public static boolean mpz_odd_p(MpzT op)
-
mpz_even_p
public static boolean mpz_even_p(MpzT op)
-
mpq_canonicalize
public static void mpq_canonicalize(MpqT x)
-
mpq_init
public static void mpq_init(MpqT x)
-
mpq_inits
public static void mpq_inits(MpqT... xs)
-
mpq_clear
public static void mpq_clear(MpqT x)
-
__gmpq_clear
public static void __gmpq_clear(com.sun.jna.Pointer x)
-
mpq_clears
public static void mpq_clears(MpqT... xs)
-
mpq_set_ui
public static void mpq_set_ui(MpqT rop, NativeUnsignedLong op1, NativeUnsignedLong op2)
-
mpq_set_si
public static void mpq_set_si(MpqT rop, com.sun.jna.NativeLong op1, com.sun.jna.NativeLong op2)
-
mpq_set_str
public static int mpq_set_str(MpqT rop, java.lang.String str, int base)
-
mpq_get_d
public static double mpq_get_d(MpqT op)
-
mpq_set_d
public static void mpq_set_d(MpqT rop, double op)
-
mpq_get_str
public static com.sun.jna.Pointer mpq_get_str(java.nio.ByteBuffer str, int base, MpqT op)
-
mpq_cmp_ui
public static int mpq_cmp_ui(MpqT op1, NativeUnsignedLong num2, NativeUnsignedLong den2)
-
mpq_cmp_si
public static int mpq_cmp_si(MpqT op1, com.sun.jna.NativeLong op2, NativeUnsignedLong den2)
-
mpq_sgn
public static int mpq_sgn(MpqT op)
-
mpf_set_default_prec
public static void mpf_set_default_prec(MpBitcntT prec)
-
mpf_get_default_prec
public static MpBitcntT mpf_get_default_prec()
-
mpf_init
public static void mpf_init(MpfT x)
-
mpf_inits
public static void mpf_inits(MpfT... xs)
-
mpf_clear
public static void mpf_clear(MpfT x)
-
__gmpf_clear
public static void __gmpf_clear(com.sun.jna.Pointer x)
-
mpf_clears
public static void mpf_clears(MpfT... xs)
-
mpf_set_ui
public static void mpf_set_ui(MpfT rop, NativeUnsignedLong op)
-
mpf_set_si
public static void mpf_set_si(MpfT rop, com.sun.jna.NativeLong op)
-
mpf_set_d
public static void mpf_set_d(MpfT rop, double op)
-
mpf_set_str
public static int mpf_set_str(MpfT rop, java.lang.String str, int base)
-
mpf_init_set_ui
public static void mpf_init_set_ui(MpfT rop, NativeUnsignedLong op)
-
mpf_init_set_si
public static void mpf_init_set_si(MpfT rop, com.sun.jna.NativeLong op)
-
mpf_init_set_d
public static void mpf_init_set_d(MpfT rop, double op)
-
mpf_init_set_str
public static int mpf_init_set_str(MpfT rop, java.lang.String str, int base)
-
mpf_get_d
public static double mpf_get_d(MpfT op)
-
mpf_get_d_2exp
public static double mpf_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpfT op)
-
mpf_get_si
public static com.sun.jna.NativeLong mpf_get_si(MpfT op)
-
mpf_get_ui
public static NativeUnsignedLong mpf_get_ui(MpfT op)
-
mpf_get_str
public static com.sun.jna.Pointer mpf_get_str(java.nio.ByteBuffer str, MpExpTByReference exp, int base, MpSizeT nDigits, MpfT op)
-
mpf_add_ui
public static void mpf_add_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
-
mpf_sub_ui
public static void mpf_sub_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
-
mpf_ui_sub
public static void mpf_ui_sub(MpfT rop, NativeUnsignedLong op1, MpfT op2)
-
mpf_mul_ui
public static void mpf_mul_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
-
mpf_div_ui
public static void mpf_div_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
-
mpf_ui_div
public static void mpf_ui_div(MpfT rop, NativeUnsignedLong op1, MpfT op2)
-
mpf_sqrt_ui
public static void mpf_sqrt_ui(MpfT rop, NativeUnsignedLong op)
-
mpf_pow_ui
public static void mpf_pow_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
-
mpf_cmp_d
public static int mpf_cmp_d(MpfT op1, double op2)
-
mpf_cmp_ui
public static int mpf_cmp_ui(MpfT op1, NativeUnsignedLong op2)
-
mpf_cmp_si
public static int mpf_cmp_si(MpfT op1, com.sun.jna.NativeLong op2)
-
mpf_sgn
public static int mpf_sgn(MpfT op)
-
mpf_out_str
public static SizeT mpf_out_str(com.sun.jna.Pointer stream, int base, SizeT nDigits, MpfT op)
-
mpf_integer_p
public static boolean mpf_integer_p(MpfT op)
-
mpf_fits_ulong_p
public static boolean mpf_fits_ulong_p(MpfT op)
-
mpf_fits_slong_p
public static boolean mpf_fits_slong_p(MpfT op)
-
mpf_fits_uint_p
public static boolean mpf_fits_uint_p(MpfT op)
-
mpf_fits_sint_p
public static boolean mpf_fits_sint_p(MpfT op)
-
mpf_fits_ushort_p
public static boolean mpf_fits_ushort_p(MpfT op)
-
mpf_fits_sshort_p
public static boolean mpf_fits_sshort_p(MpfT op)
-
mpf_urandomb
public static void mpf_urandomb(MpfT rop, GmpRandstateT state, MpBitcntT n)
-
gmp_randinit_default
public static void gmp_randinit_default(GmpRandstateT state)
-
gmp_randinit_mt
public static void gmp_randinit_mt(GmpRandstateT state)
-
gmp_randinit_lc_2exp
public static void gmp_randinit_lc_2exp(GmpRandstateT state, MpzT a, NativeUnsignedLong c, MpBitcntT m2exp)
-
gmp_randinit_lc_2exp_size
public static int gmp_randinit_lc_2exp_size(GmpRandstateT state, MpBitcntT m2exp)
-
gmp_randinit_set
public static void gmp_randinit_set(GmpRandstateT rop, GmpRandstateT op)
-
gmp_randinit
public static void gmp_randinit(GmpRandstateT state, int alg, com.sun.jna.NativeLong l)
-
gmp_randclear
public static void gmp_randclear(GmpRandstateT state)
-
__gmp_randclear
public static void __gmp_randclear(com.sun.jna.Pointer x)
-
gmp_randseed
public static void gmp_randseed(GmpRandstateT state, MpzT seed)
-
gmp_randseed_ui
public static void gmp_randseed_ui(GmpRandstateT state, NativeUnsignedLong seed)
-
gmp_urandomb_ui
public static com.sun.jna.NativeLong gmp_urandomb_ui(GmpRandstateT state, NativeUnsignedLong n)
-
gmp_urandomm_ui
public static com.sun.jna.NativeLong gmp_urandomm_ui(GmpRandstateT state, NativeUnsignedLong n)
-
gmp_printf
public static int gmp_printf(java.lang.String fmt, java.lang.Object... args)
-
gmp_vprintf
public static int gmp_vprintf(java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_fprintf
public static int gmp_fprintf(com.sun.jna.Pointer fp, java.lang.String fmt, java.lang.Object... args)
-
gmp_vfprintf
public static int gmp_vfprintf(com.sun.jna.Pointer fp, java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_sprintf
public static int gmp_sprintf(java.nio.ByteBuffer buf, java.lang.String fmt, java.lang.Object... args)
-
gmp_vsprintf
public static int gmp_vsprintf(java.nio.ByteBuffer buf, java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_snprintf
public static int gmp_snprintf(java.nio.ByteBuffer buf, SizeT size, java.lang.String fmt, java.lang.Object... args)
-
gmp_vsnprintf
public static int gmp_vsnprintf(java.nio.ByteBuffer buf, SizeT size, java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_asprintf
public static int gmp_asprintf(com.sun.jna.ptr.PointerByReference pp, java.lang.String fmt, java.lang.Object... args)
-
gmp_vasprintf
public static int gmp_vasprintf(com.sun.jna.ptr.PointerByReference pp, java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_scanf
public static int gmp_scanf(java.lang.String fmt, java.lang.Object... args)
-
gmp_vscanf
public static int gmp_vscanf(java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_fscanf
public static int gmp_fscanf(com.sun.jna.Pointer fp, java.lang.String fmt, java.lang.Object... args)
-
gmp_vfscanf
public static int gmp_vfscanf(com.sun.jna.Pointer fp, java.lang.String fmt, com.sun.jna.Pointer ap)
-
gmp_sscanf
public static int gmp_sscanf(java.lang.String s, java.lang.String fmt, java.lang.Object... args)
-
gmp_vsscanf
public static int gmp_vsscanf(java.lang.String s, java.lang.String fmt, com.sun.jna.Pointer ap)
-
__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)
-
-