
18 May
2008
18 May
'08
11:56 a.m.
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@gmail.com