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.
-
Interface Summary Interface Description AllocFunc Custom allocator function callback.FreeFunc Custom deallocator function callback.LibGmp.LibGmpExtra Interface for the native functions with a variable number of arguments.ReallocFunc Custom reallocator function callback. -
Class Summary Class Description AllocFuncByReference A structure containing anAllocFunc
callback.FreeFuncByReference A structure containing anFreeFunc
callback.GmpFunctionMapper AFunctionMapper
which converts the official GMP function names (beginning withmpz
,mpq
,mpf
andgmp
) to the names used by the C library (beginning with__gmp
).GmpRandstateT Type representing an object of thegmp_randstate_t
native type.GmpTypeMapper GmpTypeMapper.MPFToNativeConverter A converter fromMPF
to the native pointer type.GmpTypeMapper.MPQToNativeConverter A converter fromMPQ
to the native pointer type.GmpTypeMapper.MPZToNativeConverter A converter fromMPZ
to the native pointer type.LibGmp This class contains the static native methods corresponding to GMP functions.MpBitcntT The nativemp_bitcnt_t
data type, which may be a 32 or 64 bit unsigned integer.MpExpT The nativemp_exp_t
data type, which may be a 32, 48 or 64 bit signed integer.MpExpTByReference A reference to the nativemp_exp_t
data type.MpfT Type representing an object of thempf_t
native type.MpqT Type representing an object of thempq_t
native type.MpSizeT The nativemp_size_t
data type, which may be a 32, 48 or 64 bit signed integer.MpzT Type representing an object of thempz_t
native type.NativeUnsignedLong The native unsigned long data type, which may be a 32 or 64 bit integer.ReallocFuncByReference A structure containing anReallocFunc
callback.SizeT The nativesize_t
data type, which may be a 32 or 64 bit unsigned integer.SizeTByReference A reference to the nativesize_t
data type.