Upstream software project

ocaml-zarith

Arithmetic and logical operations over arbitrary-precision integers

About ocaml-zarith

Arithmetic and logical operations over arbitrary-precision integers

This project links 16 native package records across 7 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

ocaml-zarith repository preview from GitHub
Project repository preview, supplied by GitHub. Open source repository
Alpine Linux 3.21: 2 package records; Alpine Linux 3.22: 2 package records; Alpine Linux 3.23: 2 package records; Debian 12 (Bookworm): 3 package records; Debian 13 (Trixie): 3 package records; Fedora 43: 2 package records; Fedora 44: 2 package records. Catalog coverage diagram, not an application screenshot.ocaml-zarith: recorded package coverageAlpine Linux 3.212 recordsAlpine Linux 3.222 recordsAlpine Linux 3.232 recordsDebian 12 (Bookworm)3 recordsDebian 13 (Trixie)3 recordsFedora 432 recordsFedora 442 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
ocaml-zarith
Publisher
Not authoritatively mapped
Native package records
16
Operating systems
alpine-linux-3-21, alpine-linux-3-22, alpine-linux-3-23, debian-12, debian-13, fedora-43, fedora-44
License expression
LGPL-2.0-only WITH OCaml-LGPL-linking-exception
Source repository
Open source repository

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

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

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

Alpine Linux 3.21

  1. Package ocaml-zarith

    v3.21 (Alpine Linux 3.21): Arithmetic and logical operations over arbitrary-precision integers

    1.12-r5: aarch64 x86_64

    Source: ocaml-zarith

  2. Package ocaml-zarith-doc

    v3.21 (Alpine Linux 3.21): Arithmetic and logical operations over arbitrary-precision integers (documentation)

    1.12-r5: aarch64 x86_64

    Source: ocaml-zarith

Alpine Linux 3.22

  1. Package ocaml-zarith

    v3.22 (Alpine Linux 3.22): Arithmetic and logical operations over arbitrary-precision integers

    1.12-r5: aarch64 x86_64

    Source: ocaml-zarith

  2. Package ocaml-zarith-doc

    v3.22 (Alpine Linux 3.22): Arithmetic and logical operations over arbitrary-precision integers (documentation)

    1.12-r5: aarch64 x86_64

    Source: ocaml-zarith

Alpine Linux 3.23

  1. Package ocaml-zarith

    v3.23 (Alpine Linux 3.23): Arithmetic and logical operations over arbitrary-precision integers

    1.12-r5: aarch64 x86_64

    Source: ocaml-zarith

  2. Package ocaml-zarith-doc

    v3.23 (Alpine Linux 3.23): Arithmetic and logical operations over arbitrary-precision integers (documentation)

    1.12-r5: aarch64 x86_64

    Source: ocaml-zarith

Debian 12 (Bookworm)

  1. Package libzarith-ocaml

    bookworm (Debian 12 (Bookworm)) (ocaml): arithmetic and logical operations over arbitrary-precision integers (runtime)

    1.12-1+b1: amd64 arm64

    Source: ocaml-zarith

  2. Package libzarith-ocaml-dev

    bookworm (Debian 12 (Bookworm)) (ocaml): arithmetic and logical operations over arbitrary-precision integers (dev)

    1.12-1+b1: amd64 arm64

    Source: ocaml-zarith

  3. Package libzarith-ocaml-doc

    bookworm (Debian 12 (Bookworm)) (doc): arithmetic and logical operations over arbitrary-precision integers (doc)

    1.12-1: all

    Source: ocaml-zarith

Debian 13 (Trixie)

  1. Package libzarith-ocaml

    trixie (Debian 13 (Trixie)) (ocaml): arithmetic and logical operations over arbitrary-precision integers (runtime)

    1.14-1+b2: amd64 arm64

    Source: ocaml-zarith

  2. Package libzarith-ocaml-dev

    trixie (Debian 13 (Trixie)) (ocaml): arithmetic and logical operations over arbitrary-precision integers (dev)

    1.14-1+b2: amd64 arm64

    Source: ocaml-zarith

  3. Package libzarith-ocaml-doc

    trixie (Debian 13 (Trixie)) (doc): arithmetic and logical operations over arbitrary-precision integers (doc)

    1.14-1: all

    Source: ocaml-zarith

Fedora 43

  1. Package ocaml-zarith

    43 (Fedora 43) (Unspecified): OCaml interface to GMP

    1.14-8.fc43: aarch64 x86_64

    Source: ocaml-zarith

  2. Package ocaml-zarith-devel

    43 (Fedora 43) (Unspecified): Development files for ocaml-zarith

    1.14-8.fc43: aarch64 x86_64

    Source: ocaml-zarith

Fedora 44

  1. Package ocaml-zarith

    44 (Fedora 44) (Unspecified): OCaml interface to GMP

    1.14-11.fc44: aarch64 x86_64

    Source: ocaml-zarith

  2. Package ocaml-zarith-devel

    44 (Fedora 44) (Unspecified): Development files for ocaml-zarith

    1.14-11.fc44: aarch64 x86_64

    Source: ocaml-zarith

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.