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 <[email protected]> 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 _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
