./math/ocaml-zarith [arbitrary precision integer and rational arithmetic]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 1.11, Package name: ocaml-zarith-1.11
Maintained by: Christopher Zimmermann
Master sites:
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 intergers use the low-level
MPN functions from GMP.

Arbitrary-precision integers can be compared correctly using OCaml's
polymorphic comparison operators (=, <, >, etc.). This requires OCaml version
3.12.1 or later, though.

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 from
the legacy Num library, but uses Z internally


Filesize: 96.591 KB
Version History (View Complete History)
  • (2020-11-23) Updated to version: ocaml-zarith-1.11
  • (2018-07-11) Package added to openports.se, version ocaml-zarith-1.7 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2020-11-22 14:30:43 by Daniel Dickman | Files touched by this commit (5)
Log message:
update to ocaml-zarith 1.11
ok chrisz@
   2020-06-09 11:34:15 by Christopher Zimmermann | Files touched by this commit (36)
Log message:
Update lang/ocaml to 4.10.0
tested on sparc64, update to lang/camlp4 and ok by jca@
ok daniel@
thanks.
   2019-09-26 03:46:11 by Christopher Zimmermann | Files touched by this commit (43)
Log message:
Update OCaml to 4.09
reviewed ports wise and help with @pkgpath, ok by sthen@
reviewed and help with bytecode-only plists, minor nits and ok by jca@
tested on sparc 64 by @jca
tested on aarch64 by Kurt Miller
tested on amd64 by me
Thanks for reviews and testing!
   2019-09-18 11:49:37 by Christopher Zimmermann | Files touched by this commit (42)
Log message:
Upgrade lang/ocaml to 4.08.1
* net unison needed some patchign to avoid deprecated library functions.
* all ports depending on the exact version of OCaml need revision bumps.
* net/unison needed some help to avoid deprecated library functions.
ok krw@, testing on i386 and ok daniel@
   2019-07-12 14:47:59 by Stuart Henderson | Files touched by this commit (874)
Log message:
replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes
   2019-03-04 05:51:17 by Christopher Zimmermann | Files touched by this commit (133)
Log message:
Upgrade OCaml and dependent ports
testing and OKs by avsm@, jca@, krw@ Thanks a lot !
   2018-11-02 12:48:39 by Christian Weisgerber | Files touched by this commit (43)
Log message:
bump for package path change devel/gmp -> devel/gmp,-main