[Haskell-cafe] Performance: MD5
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun May 18 07:56:52 EDT 2008
Hello Andrew,
Sunday, May 18, 2008, 3:42:23 PM, you wrote:
> Isn't there some function kicking around somewhere for acessing arrays
> without the bounds check? Similarly, I'm sure I remember the Data.Bits
> bounds check being mentioned before, and somebody saying they had [or
> were going to?] make an unsafe variant available. I've looked around the
> library documentation and I'm not seeing anything... any hints?
unsafeRead/Write
(I# a) <<# (I# b) = (I# (a `iShiftL#` b))
(I# a) >># (I# b) = (I# (a `uncheckedIShiftRL#` b))
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list