patch applied (packages/integer-gmp): Tweak the small integer case of gcdInteger for better optimisation

Ian Lynagh igloo at earth.li
Mon Jun 22 16:35:13 EDT 2009


Sat Jun 13 06:40:49 PDT 2009  Duncan Coutts <duncan at well-typed.com>
  * Tweak the small integer case of gcdInteger for better optimisation
  The gcdInt function in the base package now calls gcdInteger with
  two small integers. With this weak, the optimiser generates a base
  gcdInt that directly calls the gcdInt# primop from this package.
  This means there should be no additional overhead compared to when
  the base gcdInt called the gcdInt# primop directly.

    M ./GHC/Integer.lhs -7 +11

View patch online:
http://darcs.haskell.org/packages/integer-gmp/_darcs/patches/20090613134049-b0bbe-d950a41deea779b34fe7ba5cdb84b6f50d0baa85.gz


More information about the Cvs-libraries mailing list