Class LibGmp
- java.lang.Object
-
- it.unich.jgmp.nativelib.LibGmp
-
public class LibGmp extends java.lang.Object
This 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
FILE
type), have been omitted entirely.We strived to be type safe, by defining different subclasses of
com.sun.jna.PointerType
andcom.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
becomesMpfT
, whilemp_exp_t
isMpExpT
. The only exception isNativeUnsignedLong
which should be used for native unsigned longs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interface
LibGmp.LibGmpExtra
Interface for the native functions with a variable number of arguments.
-
Field Summary
Fields Modifier and Type Field Description static int
__GNU_MP_VERSION
The major GMP version.static int
__GNU_MP_VERSION_MINOR
The minor GMP version.static int
__GNU_MP_VERSION_PATCHLEVEL
The patch level GMP version.static java.lang.String
decimalSeparator
The system decimal separator.private static FreeFunc
gmp_deallocator
The native deallocator used by the GMP library.private static FreeFunc
gmp_default_deallocator
The default native deallocator used by the GMP library.private static com.sun.jna.Pointer
gmp_errno_pointer
Pointer to thegmp_errno
variable.static int
GMP_ERROR_DIVISION_BY_ZERO
static int
GMP_ERROR_INVALID_ARGUMENT
static int
GMP_ERROR_NONE
static int
GMP_ERROR_SQRT_OF_NEGATIVE
static int
GMP_ERROR_UNSUPPORTED_ARGUMENT
static int
GMP_RAND_ALG_DEFAULT
static int
GMP_RAND_ALG_LC
static java.lang.String
gmp_version
The native GMP version number, in the form “i.j.k”.private static LibGmp.LibGmpExtra
gmpextra
Instance of theLibGmpExtra
interface created at initialization time.private static java.lang.String
LIBNAME
The undecorated name of the GMP library.static int
mp_bits_per_limb
The number of bits per limb.private static MpfT
mpf_zero
The floating point 0 (assuming no one changes it)private static MpqT
mpq_zero
The rational 0 (assuming no one changes it)private static MpzT
mpz_zero
The integer 0 (assuming no one changes it)
-
Constructor Summary
Constructors Modifier Constructor Description private
LibGmp()
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 void
deallocate(com.sun.jna.Pointer p, SizeT size)
Call the native deallocator used by the GMP library.private static java.lang.String
getDecimalSeparator()
Return the system decimal separator.static int
gmp_asprintf(com.sun.jna.ptr.PointerByReference pp, java.lang.String fmt, java.lang.Object... args)
static int
gmp_errno()
Return the value of the global error variable, used by obsolete random number functions.static int
gmp_fprintf(com.sun.jna.Pointer fp, java.lang.String fmt, java.lang.Object... args)
static int
gmp_fscanf(com.sun.jna.Pointer fp, java.lang.String fmt, java.lang.Object... args)
static int
gmp_printf(java.lang.String fmt, java.lang.Object... args)
static void
gmp_randclear(GmpRandstateT state)
static void
gmp_randinit(GmpRandstateT state, int alg, com.sun.jna.NativeLong l)
static void
gmp_randinit_default(GmpRandstateT state)
static void
gmp_randinit_lc_2exp(GmpRandstateT state, MpzT a, NativeUnsignedLong c, MpBitcntT m2exp)
static int
gmp_randinit_lc_2exp_size(GmpRandstateT state, MpBitcntT m2exp)
static void
gmp_randinit_mt(GmpRandstateT state)
static void
gmp_randinit_set(GmpRandstateT rop, GmpRandstateT op)
static void
gmp_randseed(GmpRandstateT state, MpzT seed)
static void
gmp_randseed_ui(GmpRandstateT state, NativeUnsignedLong seed)
static int
gmp_scanf(java.lang.String fmt, java.lang.Object... args)
static int
gmp_snprintf(java.nio.ByteBuffer buf, SizeT size, java.lang.String fmt, java.lang.Object... args)
static int
gmp_sprintf(java.nio.ByteBuffer buf, java.lang.String fmt, java.lang.Object... args)
static int
gmp_sscanf(java.lang.String s, java.lang.String fmt, java.lang.Object... args)
static com.sun.jna.NativeLong
gmp_urandomb_ui(GmpRandstateT state, NativeUnsignedLong n)
static com.sun.jna.NativeLong
gmp_urandomm_ui(GmpRandstateT state, NativeUnsignedLong n)
static int
gmp_vasprintf(com.sun.jna.ptr.PointerByReference pp, java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vfprintf(com.sun.jna.Pointer fp, java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vfscanf(com.sun.jna.Pointer fp, java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vprintf(java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vscanf(java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vsnprintf(java.nio.ByteBuffer buf, SizeT size, java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vsprintf(java.nio.ByteBuffer buf, java.lang.String fmt, com.sun.jna.Pointer ap)
static int
gmp_vsscanf(java.lang.String s, java.lang.String fmt, com.sun.jna.Pointer ap)
static void
mp_get_memory_functions(AllocFuncByReference alloc_func_ptr, ReallocFuncByReference realloc_func_ptr, FreeFuncByReference free_func_ptr)
static void
mp_set_memory_functions(AllocFunc alloc_func_ptr, ReallocFunc realloc_func_ptr, FreeFunc free_func_ptr)
static void
mpf_abs(MpfT rop, MpfT op)
static void
mpf_add(MpfT rop, MpfT op1, MpfT op2)
static void
mpf_add_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
static void
mpf_ceil(MpfT rop, MpfT op)
static void
mpf_clear(MpfT x)
static void
mpf_clears(MpfT... xs)
static int
mpf_cmp(MpfT op1, MpfT op2)
static int
mpf_cmp_d(MpfT op1, double op2)
static int
mpf_cmp_si(MpfT op1, com.sun.jna.NativeLong op2)
static int
mpf_cmp_ui(MpfT op1, NativeUnsignedLong op2)
static int
mpf_cmp_z(MpfT op1, MpzT op2)
static void
mpf_div(MpfT rop, MpfT op1, MpfT op2)
static void
mpf_div_2exp(MpfT rop, MpfT op1, MpBitcntT op2)
static void
mpf_div_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
static boolean
mpf_eq(MpfT op1, MpfT op2, MpBitcntT op3)
static boolean
mpf_fits_sint_p(MpfT op)
static boolean
mpf_fits_slong_p(MpfT op)
static boolean
mpf_fits_sshort_p(MpfT op)
static boolean
mpf_fits_uint_p(MpfT op)
static boolean
mpf_fits_ulong_p(MpfT op)
static boolean
mpf_fits_ushort_p(MpfT op)
static void
mpf_floor(MpfT rop, MpfT op)
static double
mpf_get_d(MpfT op)
static double
mpf_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpfT op)
static MpBitcntT
mpf_get_default_prec()
static MpBitcntT
mpf_get_prec(MpfT op)
static com.sun.jna.NativeLong
mpf_get_si(MpfT op)
static com.sun.jna.Pointer
mpf_get_str(java.nio.ByteBuffer str, MpExpTByReference exp, int base, MpSizeT nDigits, MpfT op)
static NativeUnsignedLong
mpf_get_ui(MpfT op)
static void
mpf_init(MpfT x)
static void
mpf_init_set(MpfT rop, MpfT op)
static void
mpf_init_set_d(MpfT rop, double op)
static void
mpf_init_set_si(MpfT rop, com.sun.jna.NativeLong op)
static int
mpf_init_set_str(MpfT rop, java.lang.String str, int base)
static void
mpf_init_set_ui(MpfT rop, NativeUnsignedLong op)
static void
mpf_init2(MpfT x, MpBitcntT n)
static void
mpf_inits(MpfT... xs)
static SizeT
mpf_inp_str(MpqT rop, com.sun.jna.Pointer stream, int base)
static boolean
mpf_integer_p(MpfT op)
static void
mpf_mul(MpfT rop, MpfT op1, MpfT op2)
static void
mpf_mul_2exp(MpfT rop, MpfT op1, MpBitcntT op2)
static void
mpf_mul_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
static void
mpf_neg(MpfT rop, MpfT op)
static SizeT
mpf_out_str(com.sun.jna.Pointer stream, int base, SizeT nDigits, MpfT op)
static void
mpf_pow_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
static void
mpf_random2(MpfT rop, MpSizeT max_size, MpExpT exp)
static int
mpf_reldiff(MpfT rop, MpfT op1, MpfT op2)
static void
mpf_set(MpfT rop, MpfT op)
static void
mpf_set_d(MpfT rop, double op)
static void
mpf_set_default_prec(MpBitcntT prec)
static void
mpf_set_prec(MpfT rop, MpBitcntT prec)
static void
mpf_set_prec_raw(MpfT rop, MpBitcntT prec)
static void
mpf_set_q(MpfT rop, MpqT op)
static void
mpf_set_si(MpfT rop, com.sun.jna.NativeLong op)
static int
mpf_set_str(MpfT rop, java.lang.String str, int base)
static void
mpf_set_ui(MpfT rop, NativeUnsignedLong op)
static void
mpf_set_z(MpfT rop, MpzT op)
static int
mpf_sgn(MpfT op)
static void
mpf_sqrt(MpfT rop, MpfT op)
static void
mpf_sqrt_ui(MpfT rop, NativeUnsignedLong op)
static void
mpf_sub(MpfT rop, MpfT op1, MpfT op2)
static void
mpf_sub_ui(MpfT rop, MpfT op1, NativeUnsignedLong op2)
static void
mpf_swap(MpfT rop1, MpfT rop2)
static void
mpf_trunc(MpfT rop, MpfT op)
static void
mpf_ui_div(MpfT rop, NativeUnsignedLong op1, MpfT op2)
static void
mpf_ui_sub(MpfT rop, NativeUnsignedLong op1, MpfT op2)
static void
mpf_urandomb(MpfT rop, GmpRandstateT state, MpBitcntT n)
static void
mpq_abs(MpqT rop, MpqT operand)
static void
mpq_add(MpqT rop, MpqT addend1, MpqT addend2)
static void
mpq_canonicalize(MpqT x)
static void
mpq_clear(MpqT x)
static void
mpq_clears(MpqT... xs)
static int
mpq_cmp(MpqT op1, MpqT op2)
static int
mpq_cmp_si(MpqT op1, com.sun.jna.NativeLong op2, NativeUnsignedLong den2)
static int
mpq_cmp_ui(MpqT op1, NativeUnsignedLong num2, NativeUnsignedLong den2)
static int
mpq_cmp_z(MpqT op1, MpzT op2)
static MpzT
mpq_denref(MpqT op)
static void
mpq_div(MpqT rop, MpqT dividend, MpqT divisor)
static void
mpq_div_2exp(MpqT rop, MpqT op1, MpBitcntT op2)
static boolean
mpq_equal(MpqT op1, MpqT op2)
static double
mpq_get_d(MpqT op)
static void
mpq_get_den(MpzT denominator, MpqT rational)
static void
mpq_get_num(MpzT numerator, MpqT rational)
static com.sun.jna.Pointer
mpq_get_str(java.nio.ByteBuffer str, int base, MpqT op)
static void
mpq_init(MpqT x)
static void
mpq_inits(MpqT... xs)
static SizeT
mpq_inp_str(MpqT rop, com.sun.jna.Pointer stream, int base)
static void
mpq_inv(MpqT rop, MpqT number)
static void
mpq_mul(MpqT rop, MpqT multiplier, MpqT multiplicand)
static void
mpq_mul_2exp(MpqT rop, MpqT op1, MpBitcntT op2)
static void
mpq_neg(MpqT rop, MpqT operand)
static MpzT
mpq_numref(MpqT op)
static SizeT
mpq_out_str(com.sun.jna.Pointer stream, int base, MpqT op)
static void
mpq_set(MpqT rop, MpqT op)
static void
mpq_set_d(MpqT rop, double op)
static void
mpq_set_den(MpqT rational, MpzT denominator)
static void
mpq_set_f(MpqT rop, MpfT op)
static void
mpq_set_num(MpqT rational, MpzT numerator)
static void
mpq_set_si(MpqT rop, com.sun.jna.NativeLong op1, com.sun.jna.NativeLong op2)
static int
mpq_set_str(MpqT rop, java.lang.String str, int base)
static void
mpq_set_ui(MpqT rop, NativeUnsignedLong op1, NativeUnsignedLong op2)
static void
mpq_set_z(MpqT rop, MpzT op)
static int
mpq_sgn(MpqT op)
static void
mpq_sub(MpqT rop, MpqT minuend, MpqT subtrahend)
static void
mpq_swap(MpqT rop1, MpqT rop2)
static void
mpz_2fac_ui(MpzT rop, NativeUnsignedLong n)
static void
mpz_abs(MpzT rop, MpzT op)
static void
mpz_add(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_add_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static void
mpz_addmul(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_addmul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static void
mpz_and(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_bin_ui(MpzT rop, MpzT n, NativeUnsignedLong k)
static void
mpz_bin_uiui(MpzT rop, NativeUnsignedLong n, NativeUnsignedLong k)
static void
mpz_cdiv_q(MpzT q, MpzT n, MpzT d)
static void
mpz_cdiv_q_2exp(MpzT q, MpzT n, MpBitcntT b)
static NativeUnsignedLong
mpz_cdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d)
static void
mpz_cdiv_qr(MpzT q, MpzT r, MpzT n, MpzT d)
static NativeUnsignedLong
mpz_cdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d)
static void
mpz_cdiv_r(MpzT r, MpzT n, MpzT d)
static void
mpz_cdiv_r_2exp(MpzT r, MpzT n, MpBitcntT b)
static NativeUnsignedLong
mpz_cdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d)
static NativeUnsignedLong
mpz_cdiv_ui(MpzT n, NativeUnsignedLong d)
static void
mpz_clear(MpzT x)
static void
mpz_clears(MpzT... xs)
static MpBitcntT
mpz_clrbit(MpzT rop, MpBitcntT index)
static int
mpz_cmp(MpzT op1, MpzT op2)
static int
mpz_cmp_d(MpzT op1, double op2)
static int
mpz_cmp_si(MpzT op1, com.sun.jna.NativeLong op2)
static int
mpz_cmp_ui(MpzT op1, NativeUnsignedLong op2)
static int
mpz_cmpabs(MpzT op1, MpzT op2)
static int
mpz_cmpabs_d(MpzT op1, double op2)
static int
mpz_cmpabs_ui(MpzT op1, NativeUnsignedLong op2)
static void
mpz_com(MpzT rop, MpzT op)
static MpBitcntT
mpz_combit(MpzT rop, MpBitcntT index)
static boolean
mpz_congruent_2exp_p(MpzT n, MpzT c, MpBitcntT b)
static boolean
mpz_congruent_p(MpzT n, MpzT c, MpzT d)
static boolean
mpz_congruent_ui_p(MpzT n, NativeUnsignedLong c, NativeUnsignedLong d)
static void
mpz_divexact(MpzT r, MpzT n, MpzT d)
static void
mpz_divexact_ui(MpzT r, MpzT n, NativeUnsignedLong d)
static boolean
mpz_divisible_2exp_p(MpzT n, MpBitcntT b)
static boolean
mpz_divisible_p(MpzT n, MpzT d)
static boolean
mpz_divisible_ui_p(MpzT n, NativeUnsignedLong d)
static boolean
mpz_even_p(MpzT op)
static com.sun.jna.Pointer
mpz_export(java.nio.ByteBuffer rop, SizeTByReference count, int order, SizeT size, int endian, SizeT nails, MpzT op)
static void
mpz_fac_ui(MpzT rop, NativeUnsignedLong n)
static void
mpz_fdiv_q(MpzT q, MpzT n, MpzT d)
static void
mpz_fdiv_q_2exp(MpzT q, MpzT n, NativeUnsignedLong b)
static NativeUnsignedLong
mpz_fdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d)
static void
mpz_fdiv_qr(MpzT q, MpzT r, MpzT n, MpzT d)
static NativeUnsignedLong
mpz_fdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d)
static void
mpz_fdiv_r(MpzT r, MpzT n, MpzT d)
static void
mpz_fdiv_r_2exp(MpzT r, MpzT n, NativeUnsignedLong b)
static NativeUnsignedLong
mpz_fdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d)
static NativeUnsignedLong
mpz_fdiv_ui(MpzT n, NativeUnsignedLong d)
static void
mpz_fib_ui(MpzT fn, NativeUnsignedLong n)
static void
mpz_fib2_ui(MpzT fn, MpzT fnsub1, NativeUnsignedLong n)
static boolean
mpz_fits_sint_p(MpzT op)
static boolean
mpz_fits_slong_p(MpzT op)
static boolean
mpz_fits_sshort_p(MpzT op)
static boolean
mpz_fits_uint_p(MpzT op)
static boolean
mpz_fits_ulong_p(MpzT op)
static boolean
mpz_fits_ushort_p(MpzT op)
static void
mpz_gcd(MpzT rop, MpzT op1, MpzT op2)
static NativeUnsignedLong
mpz_gcd_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static void
mpz_gcdext(MpzT g, MpzT s, MpzT t, MpzT a, MpzT b)
static double
mpz_get_d(MpzT op)
static double
mpz_get_d_2exp(com.sun.jna.ptr.NativeLongByReference exp, MpzT op)
static com.sun.jna.NativeLong
mpz_get_si(MpzT op)
static com.sun.jna.Pointer
mpz_get_str(java.nio.ByteBuffer str, int base, MpzT op)
static NativeUnsignedLong
mpz_get_ui(MpzT op)
static MpBitcntT
mpz_hamdist(MpzT op1, MpzT op2)
static void
mpz_import(MpzT rop, SizeT count, int order, SizeT size, int endian, SizeT nails, java.nio.ByteBuffer op)
static void
mpz_init(MpzT x)
static void
mpz_init_set(MpzT rop, MpzT op)
static void
mpz_init_set_d(MpzT rop, double op)
static void
mpz_init_set_si(MpzT rop, com.sun.jna.NativeLong op)
static int
mpz_init_set_str(MpzT rop, java.lang.String str, int base)
static void
mpz_init_set_ui(MpzT rop, NativeUnsignedLong op)
static void
mpz_init2(MpzT x, MpBitcntT n)
static void
mpz_inits(MpzT... xs)
static SizeT
mpz_inp_raw(MpzT rop, com.sun.jna.Pointer stream)
static SizeT
mpz_inp_str(MpzT rop, com.sun.jna.Pointer stream, int base)
static boolean
mpz_invert(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_ior(MpzT rop, MpzT op1, MpzT op2)
static int
mpz_jacobi(MpzT a, MpzT b)
static int
mpz_kronecker_si(MpzT a, com.sun.jna.NativeLong b)
static int
mpz_kronecker_ui(MpzT a, NativeUnsignedLong b)
static void
mpz_lcm(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_lcm_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static int
mpz_legendre(MpzT a, MpzT b)
static void
mpz_lucnum_ui(MpzT ln, NativeUnsignedLong n)
static void
mpz_lucnum2_ui(MpzT ln, MpzT lnsub1, NativeUnsignedLong n)
static void
mpz_mfac_uiui(MpzT rop, NativeUnsignedLong n, NativeUnsignedLong m)
static void
mpz_mod(MpzT r, MpzT n, MpzT d)
static NativeUnsignedLong
mpz_mod_ui(MpzT r, MpzT n, NativeUnsignedLong d)
static void
mpz_mul(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_mul_2exp(MpzT rop, MpzT op1, MpBitcntT op2)
static void
mpz_mul_si(MpzT rop, MpzT op1, com.sun.jna.NativeLong op2)
static void
mpz_mul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static void
mpz_neg(MpzT rop, MpzT op)
static void
mpz_nextprime(MpzT rop, MpzT op)
static boolean
mpz_odd_p(MpzT op)
static SizeT
mpz_out_raw(com.sun.jna.Pointer stream, MpzT op)
static SizeT
mpz_out_str(com.sun.jna.Pointer stream, int base, MpzT op)
static boolean
mpz_perfect_power_p(MpzT op)
static boolean
mpz_perfect_square_p(MpzT op)
static MpBitcntT
mpz_popcount(MpzT op)
static void
mpz_pow_ui(MpzT rop, MpzT base, NativeUnsignedLong exp)
static void
mpz_powm(MpzT rop, MpzT base, MpzT exp, MpzT mod)
static void
mpz_powm_sec(MpzT rop, MpzT base, MpzT exp, MpzT mod)
static void
mpz_powm_ui(MpzT rop, MpzT base, NativeUnsignedLong exp, MpzT mod)
static void
mpz_primorial_ui(MpzT rop, NativeUnsignedLong n)
static int
mpz_probab_prime_p(MpzT op, int reps)
static void
mpz_random(MpzT rop, MpSizeT max_size)
static void
mpz_random2(MpzT rop, MpSizeT max_size)
static void
mpz_realloc2(MpzT x, MpBitcntT n)
static MpBitcntT
mpz_remove(MpzT rop, MpzT op, MpzT f)
static boolean
mpz_root(MpzT rop, MpzT op, NativeUnsignedLong n)
static void
mpz_rootrem(MpzT rop, MpzT rem, MpzT op, NativeUnsignedLong n)
static void
mpz_rrandomb(MpzT rop, GmpRandstateT state, MpBitcntT n)
static MpBitcntT
mpz_scan0(MpzT op, MpBitcntT starting_bit)
static MpBitcntT
mpz_scan1(MpzT op, MpBitcntT starting_bit)
static void
mpz_set(MpzT rop, MpzT op)
static void
mpz_set_d(MpzT rop, double op)
static void
mpz_set_f(MpzT rop, MpfT op)
static void
mpz_set_q(MpzT rop, MpqT op)
static void
mpz_set_si(MpzT rop, com.sun.jna.NativeLong op)
static int
mpz_set_str(MpzT rop, java.lang.String str, int base)
static void
mpz_set_ui(MpzT rop, NativeUnsignedLong op)
static MpBitcntT
mpz_setbit(MpzT rop, MpBitcntT index)
static int
mpz_sgn(MpzT op)
static int
mpz_si_kronecker(com.sun.jna.NativeLong a, MpzT b)
static SizeT
mpz_sizeinbase(MpzT op, int base)
static void
mpz_sqrt(MpzT rop, MpzT op)
static void
mpz_sqrtrem(MpzT rop, MpzT rem, MpzT op)
static void
mpz_sub(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_sub_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static void
mpz_submul(MpzT rop, MpzT op1, MpzT op2)
static void
mpz_submul_ui(MpzT rop, MpzT op1, NativeUnsignedLong op2)
static void
mpz_swap(MpzT rop1, MpzT rop2)
static void
mpz_tdiv_q(MpzT q, MpzT n, MpzT d)
static void
mpz_tdiv_q_2exp(MpzT q, MpzT n, NativeUnsignedLong b)
static NativeUnsignedLong
mpz_tdiv_q_ui(MpzT q, MpzT n, NativeUnsignedLong d)
static void
mpz_tdiv_qr(MpzT q, MpzT r, MpzT n, MpzT d)
static NativeUnsignedLong
mpz_tdiv_qr_ui(MpzT q, MpzT r, MpzT n, NativeUnsignedLong d)
static void
mpz_tdiv_r(MpzT r, MpzT n, MpzT d)
static void
mpz_tdiv_r_2exp(MpzT r, MpzT n, NativeUnsignedLong b)
static NativeUnsignedLong
mpz_tdiv_r_ui(MpzT r, MpzT n, NativeUnsignedLong d)
static NativeUnsignedLong
mpz_tdiv_ui(MpzT n, NativeUnsignedLong d)
static int
mpz_tstbit(MpzT rop, MpBitcntT index)
static int
mpz_ui_kronecker(NativeUnsignedLong a, MpzT b)
static void
mpz_ui_pow_ui(MpzT rop, NativeUnsignedLong base, NativeUnsignedLong exp)
static void
mpz_ui_sub(MpzT rop, NativeUnsignedLong op1, MpzT op2)
static void
mpz_urandomb(MpzT rop, GmpRandstateT state, MpBitcntT n)
static void
mpz_urandomm(MpzT rop, GmpRandstateT state, MpzT n)
static void
mpz_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_errno
variable.
-
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 theLibGmp
class is loaded, and we assume it is not changed later.
-
gmpextra
private static final LibGmp.LibGmpExtra gmpextra
Instance of theLibGmpExtra
interface 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_str
function) 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 thedecimalSeparator
field.
-
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)
-
-