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 anAllocFunccallback.FreeFuncByReference A structure containing anFreeFunccallback.GmpFunctionMapper AFunctionMapperwhich converts the official GMP function names (beginning withmpz,mpq,mpfandgmp) to the names used by the C library (beginning with__gmp).GmpRandstateT Type representing an object of thegmp_randstate_tnative type.GmpTypeMapper GmpTypeMapper.MPFToNativeConverter A converter fromMPFto the native pointer type.GmpTypeMapper.MPQToNativeConverter A converter fromMPQto the native pointer type.GmpTypeMapper.MPZToNativeConverter A converter fromMPZto the native pointer type.LibGmp This class contains the static native methods corresponding to GMP functions.MpBitcntT The nativemp_bitcnt_tdata type, which may be a 32 or 64 bit unsigned integer.MpExpT The nativemp_exp_tdata type, which may be a 32, 48 or 64 bit signed integer.MpExpTByReference A reference to the nativemp_exp_tdata type.MpfT Type representing an object of thempf_tnative type.MpqT Type representing an object of thempq_tnative type.MpSizeT The nativemp_size_tdata type, which may be a 32, 48 or 64 bit signed integer.MpzT Type representing an object of thempz_tnative type.NativeUnsignedLong The native unsigned long data type, which may be a 32 or 64 bit integer.ReallocFuncByReference A structure containing anReallocFunccallback.SizeT The nativesize_tdata type, which may be a 32 or 64 bit unsigned integer.SizeTByReference A reference to the nativesize_tdata type.