[commit: containers] master: Improved the internal IntSet API and IntSet tests. (a7d29bd)

Ian Lynagh igloo at earth.li
Thu Feb 23 01:13:54 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a7d29bd7f934c30f5c089fe6a34b63cfdc292880

>---------------------------------------------------------------

commit a7d29bd7f934c30f5c089fe6a34b63cfdc292880
Author: Milan Straka <fox at ucw.cz>
Date:   Thu Nov 17 21:37:12 2011 +0100

    Improved the internal IntSet API and IntSet tests.
    
    * Changed internal functions lowTipBits and highTipBits to
      prefixOf, suffixOf and bitmapOf.
    
    * Use uncheckedShift[R]L# instead of Data.Bits.shift and
      Ghc.Exts shift[R]L# to achieve unchecked shifts.
    
    * Improve implementations if split, splitMember, minView, maxView.
    
    * Improved tests -- some properties and conditions were added.

 Data/IntSet.hs             |  342 +++++++++++++++++++-------------------------
 tests/intset-properties.hs |   36 ++++--
 2 files changed, 172 insertions(+), 206 deletions(-)


Diff suppressed because of size. To see it, use:

    git show a7d29bd7f934c30f5c089fe6a34b63cfdc292880



More information about the Cvs-libraries mailing list