Package it.unich.jgmp.nativelib
package it.unich.jgmp.nativelib
This package contains all the low-level classes of JGMP.
All the code interfacing with the native C library is part of this package.
In case one wants to replace JNA with another library, the changes to the
JGMP would be almost entirely limited to this package.
The most important class is LibGmp
, which contains the Java bindings
for the functions in the GMP C library. Other classes are Java proxies for the
parameter and return types used by these functions.
-
ClassDescriptionCustom allocator function callback.A structure containing an
AllocFunc
callback.Custom deallocator function callback.A structure containing anFreeFunc
callback.AFunctionMapper
which converts the official GMP function names (beginning withmpz
,mpq
,mpf
andgmp
) to the names used by the C library (beginning with__gmp
).Type representing an object of thegmp_randstate_t
native type.A converter fromMPF
to the native pointer type.A converter fromMPQ
to the native pointer type.A converter fromMPZ
to the native pointer type.This class contains the static native methods corresponding to GMP functions.Interface for the native functions with a variable number of arguments.The nativemp_bitcnt_t
data type, which may be a 32 or 64 bit unsigned integer.The nativemp_exp_t
data type, which may be a 32, 48 or 64 bit signed integer.A reference to the nativemp_exp_t
data type.Type representing an object of thempf_t
native type.Type representing an object of thempq_t
native type.The nativemp_size_t
data type, which may be a 32, 48 or 64 bit signed integer.Type representing an object of thempz_t
native type.The native unsigned long data type, which may be a 32 or 64 bit integer.Custom reallocator function callback.A structure containing anReallocFunc
callback.The nativesize_t
data type, which may be a 32 or 64 bit unsigned integer.A reference to the nativesize_t
data type.