OCaml interface to GMP
164.98 KB
built 2026-10-16 13:13:55 GMT
Description
This library implements arithmetic and logical operations over
arbitrary-precision integers.
The module is simply named "Z". Its interface is similar to that of the
Int32, Int64 and Nativeint modules from the OCaml standard library, with some
additional functions. See the file z.mlip for documentation.
The implementation uses GMP (the GNU Multiple Precision arithmetic library) to
compute over big integers. However, small integers are represented as unboxed
Caml integers, to save space and improve performance. Big integers are
allocated in the Caml heap, bypassing GMP's memory management and achieving
better GC behavior than e.g. the MLGMP library. Computations on small
integers use a special, faster path (coded in assembly for some platforms and
functions) eschewing calls to GMP, while computations on large integers use
the low-level MPN functions from GMP.
Arbitrary-precision integers can be compared correctly using OCaml's
polymorphic comparison operators (=, <, >, etc.).
Additional features include:
- a module Q for rationals, built on top of Z (see q.mli)
- a compatibility layer Big_int_Z that implements the same API as Big_int, but
uses Z internally
Dependencies
46 totalRequires39
- ld-linux-riscv64-lp64d.so.1()(64bit)
- ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit)
- libc.so.6()(64bit)
- libc.so.6(GLIBC_2.27)(64bit)
- libgmp.so.10()(64bit)
- ocaml(CamlinternalFormatBasics) = 5cba8713ea434e43a50cd422bda47dda
- ocaml(CamlinternalLazy) = 39aa2e9bf7e25b383556f7748b45c72f
- ocaml(Stdlib) = 5debf066d2f080eabc33d8b71099252f
- ocaml(Stdlib__Buffer) = c0940caa52bfb8d306ed2ca69af87ed6
- ocaml(Stdlib__Bytes) = 6fa82d0a58c0eb4ca469f084a70f9a7e
- ocaml(Stdlib__Callback) = 42025ff5ce6207abf8a8d25ca781e771
- ocaml(Stdlib__Digest) = 2b70a92ff90913804cdc1343b1592e27
- ocaml(Stdlib__Domain) = d11ad689f3e35d9892101961a1201121
- ocaml(Stdlib__Either) = e4e548dbb128df23a9325d9cba39fc2f
- ocaml(Stdlib__Format) = 5b2f2a54d0831d599db87620d18b8ca1
- ocaml(Stdlib__Hashtbl) = 6df0309fbcf3f1661d9e3d07a603aa3e
- ocaml(Stdlib__Int32) = 6583ec691ad5b5d0403bb4dba14ff95a
- ocaml(Stdlib__Int64) = 6c1bd23e0da837071a98f3330e9f1242
- ocaml(Stdlib__Lazy) = 9888b2ba7f344f43c41116cffda5081a
- ocaml(Stdlib__Lexing) = 738e4c77ef59ce13f6f1eeecd20678b3
- ocaml(Stdlib__List) = 81a27a0a9af489e91fa1d99f325067c2
- ocaml(Stdlib__Map) = a9944feda56cab2432578db95de546a3
- ocaml(Stdlib__Nativeint) = 5a73f569861cc3c66639bcda63a82510
- ocaml(Stdlib__Obj) = 26b40efd5c9a30f8c9c87c6133b5adbf
- ocaml(Stdlib__Printf) = 3303d43852c2d96a670040b4fc4aefc6
- ocaml(Stdlib__Random) = 956621158e7602665cb7b17716307400
- ocaml(Stdlib__Result) = e05eccba6c8a9e6816ad890e6e983d48
- ocaml(Stdlib__Seq) = b55b17884ef0dff6295517debe21f111
- ocaml(Stdlib__Set) = 878d51b56f0f7be3121d17ee49b6ece5
- ocaml(Stdlib__String) = 10f6a338df78df4f5987192086ffa3c9
- ocaml(Stdlib__Sys) = fb4c43482366ca204eebf7f3838d5a55
- ocaml(Stdlib__Uchar) = ffc32f05aeea05f14986ec532040e8b1
- ocaml(Z) = 6f4dc1533ce2000c365adfd65d52b204
- ocaml(Zarith_version) = b0875ed467e4a4d172bd8d3ca6bb8d0b
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
- rtld(GNU_HASH)
Provides7
- ocaml(Big_int_Z) = 9da002110bfe02e98c8f142c6f7dcd50
- ocaml(Q) = 659754a9895bf87cdc992c6ffcc4b20a
- ocaml(Z) = 6f4dc1533ce2000c365adfd65d52b204
- ocaml(Zarith_top) = 2f1fface4bc5cdf527382b88e1e5fb12
- ocaml(Zarith_version) = b0875ed467e4a4d172bd8d3ca6bb8d0b
- ocaml-zarith = 1.14-14.fc45
- ocaml-zarith(riscv-64) = 1.14-14.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
21Name ![]() |
Size |
|---|---|
| /usr/lib/.build-id | 0.00 B |
| /usr/lib/.build-id/68 | 0.00 B |
| /usr/lib/.build-id/68/71c2308e7be5b311fbf806787024c4852b38ff | 49.00 B |
| /usr/lib/.build-id/b5 | 0.00 B |
| /usr/lib/.build-id/b5/6ba536dd8b387d471bdacc2bc5edbc6fb51a3f | 46.00 B |
| /usr/lib64/ocaml/stublibs/dllzarith.so | 55.72 KB |
| /usr/lib64/ocaml/stublibs/dllzarith.so.owner | 7.00 B |
| /usr/lib64/ocaml/zarith | 0.00 B |
| /usr/lib64/ocaml/zarith/META | 473.00 B |
| /usr/lib64/ocaml/zarith/big_int_Z.cmi | 2.60 KB |
| /usr/lib64/ocaml/zarith/q.cmi | 3.18 KB |
| /usr/lib64/ocaml/zarith/z.cmi | 6.72 KB |
| /usr/lib64/ocaml/zarith/zarith.cma | 84.49 KB |
| /usr/lib64/ocaml/zarith/zarith.cmxs | 170.98 KB |
| /usr/lib64/ocaml/zarith/zarith_top.cma | 4.27 KB |
| /usr/lib64/ocaml/zarith/zarith_top.cmi | 1.74 KB |
| /usr/lib64/ocaml/zarith/zarith_version.cmi | 266.00 B |
| /usr/share/doc/ocaml-zarith | 0.00 B |
| /usr/share/doc/ocaml-zarith/README.md | 4.31 KB |
| /usr/share/licenses/ocaml-zarith | 0.00 B |
| /usr/share/licenses/ocaml-zarith/LICENSE | 25.78 KB |
Files 1–21 of 21
Component of
buildroots that installed this RPMBuildroot ![]() |
Created | State |
|---|---|---|
| f45-build-39343-733 | 2026-10-18 07:56:14 | expired |
Buildroots 1–1 of 1

