[project @ 1999-12-08 14:21:52 by simonmar]
Add Marc Van Dongen's Integer improvements. Specifically: - new primops: gcdInt#, gcdIntegerInt#, divExact#, quotInteger#, remInteger#. - new definitions of quot and rem for Integer in PrelNum (using the new quotInteger# and remInteger# primops instead of quotRemInteger#). Should be slightly faster than before. div & mod aren't likewise optimised (yet). - specialisations of gcd for Int and Integer, and lcm for Integer in PrelNum.
Showing
- ghc/compiler/prelude/PrimOp.lhs 230 additions, 221 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/includes/PrimOps.h 18 additions, 1 deletionghc/includes/PrimOps.h
- ghc/lib/std/PrelGHC.hi-boot 6 additions, 0 deletionsghc/lib/std/PrelGHC.hi-boot
- ghc/lib/std/PrelNum.lhs 97 additions, 22 deletionsghc/lib/std/PrelNum.lhs
- ghc/rts/PrimOps.hc 8 additions, 5 deletionsghc/rts/PrimOps.hc
Loading
Please register or sign in to comment