fixed

Pure Haskell large fixed-width integers and Montgomery arithmetic.
git clone git://git.ppad.tech/fixed.git
Log | Files | Refs | README | LICENSE

commit f0c1e3348b3192c1f62003caa8b9eb6ecbaf1f5f
parent d46e5dd868f4e35b819c6817312d5b670fe82238
Author: Jared Tobin <jared@jtobin.io>
Date:   Tue, 23 Dec 2025 12:44:55 -0330

lib: more llvm

Diffstat:
MREADME.md | 14++++++++------
Mppad-fixed.cabal | 6++++++
2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -50,16 +50,18 @@ Current benchmark figures on my M4 Silicon MacBook Air look like: ``` benchmarking add/curve: M(1) + M(2 ^ 255 - 19) -time 6.890 ns (6.882 ns .. 6.906 ns) +time 5.399 ns (5.359 ns .. 5.442 ns) 1.000 R² (1.000 R² .. 1.000 R²) -mean 6.889 ns (6.885 ns .. 6.897 ns) -std dev 16.73 ps (8.753 ps .. 30.75 ps) +mean 5.389 ns (5.371 ns .. 5.426 ns) +std dev 82.34 ps (54.62 ps .. 128.7 ps) +variance introduced by outliers: 21% (moderately inflated) benchmarking sub/curve: M(2 ^ 255 - 1) - M(2 ^ 255 - 19) -time 6.876 ns (6.872 ns .. 6.883 ns) +time 5.226 ns (5.217 ns .. 5.241 ns) 1.000 R² (1.000 R² .. 1.000 R²) -mean 6.877 ns (6.874 ns .. 6.881 ns) -std dev 11.60 ps (7.865 ps .. 18.34 ps) +mean 5.249 ns (5.230 ns .. 5.287 ns) +std dev 84.60 ps (54.00 ps .. 126.7 ps) +variance introduced by outliers: 23% (moderately inflated) benchmarking mul/curve: M(2) * M(2 ^ 255 - 19) time 14.78 ns (14.75 ns .. 14.81 ns) diff --git a/ppad-fixed.cabal b/ppad-fixed.cabal @@ -56,6 +56,8 @@ test-suite fixed-tests ghc-options: -rtsopts -Wall -O2 + if flag(llvm) + ghc-options: -fllvm build-depends: base @@ -72,6 +74,8 @@ benchmark fixed-bench ghc-options: -rtsopts -O2 -Wall -fno-warn-orphans + if flag(llvm) + ghc-options: -fllvm build-depends: base @@ -86,6 +90,8 @@ benchmark fixed-weigh ghc-options: -rtsopts -O2 -Wall -fno-warn-orphans + if flag(llvm) + ghc-options: -fllvm build-depends: base