numeric-logarithms: Integral and rational log2 algorithms

[ apache, library, numeric ] [ Propose Tags ]

This provides a user-facing API for the GHC primitive integerLog2#, in the form of functions computing the floor, ceiling, or other rounded form of the base-2 logarithm of Integral or Rational types.

Versions [RSS] [faq]
Change log
Dependencies base (>=4.9 && <4.17), integer-gmp (>=0.5 && <1.2) [details]
License Apache-2.0
Copyright 2018-2021 Google LLC
Author Andrew Pritchard <>
Maintainer Andrew Pritchard <>
Revised Revision 3 made by AndrewPritchard at 2021-11-03T07:33:34Z
Category Numeric
Home page
Bug tracker
Source repo head: git clone
Uploaded by AndrewPritchard at 2021-09-03T20:41:07Z
Distributions NixOS:
Downloads 78 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]


[Index] [Quick Jump]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees