[commit: base] master: Add unsafeShift to Data.Bits (de91de0)

Johan Tibell johan.tibell at gmail.com
Wed Nov 9 00:36:32 CET 2011


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

On branch  : master

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

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

commit de91de0fec8e5a5adda7e3005ad567821059e047
Author: Johan Tibell <johan.tibell at gmail.com>
Date:   Sun Aug 14 11:45:27 2011 +0100

    Add unsafeShift to Data.Bits
    
    This allows shifting by a non-statically known amount without
    introducing a branch (to check for "overflow").

 Data/Bits.hs     |   30 ++++++++++++++++++++++++++++--
 GHC/Int.hs       |   11 +++++++++++
 GHC/Word.hs      |   15 +++++++++++++++
 include/CTypes.h |    2 ++
 4 files changed, 56 insertions(+), 2 deletions(-)


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

    git show de91de0fec8e5a5adda7e3005ad567821059e047



More information about the Cvs-libraries mailing list