atrophy: Faster integer division and modulus operations

[ library, math, mit ] [ Propose Tags ]

Fast div/mod via arithmetic strength reduction. Good compilers already perform this optimization for divisors that are known at compile time; this library enables this optimization for divisors that are only known at runtime.


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Change log
Dependencies base (>= && <5), contiguous (>=, wide-word [details]
License MIT
Copyright 2022 Zachary Churchill
Author Zachary Churchill <>
Maintainer Zachary Churchill <>
Category Math
Source repo head: git clone
Uploaded by goolord at 2022-08-21T20:51:02Z
Distributions NixOS:
Downloads 56 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-08-21 [all 1 reports]