Re: Unaligned word-sized reads on ByteArray#

2010-10-27 Thread Simon Marlow
On 26/10/10 07:10, Antoine Latter wrote: On Tue, Oct 26, 2010 at 12:21 AM, Johan Tibell wrote: On Sun, Oct 24, 2010 at 2:02 AM, Johan Tibell wrote: I noticed that indexWordArray# only allows for aligned reads (by forcing the offset to be in words, rather than in bytes.) Is it possible to perf

Re: Unaligned word-sized reads on ByteArray#

2010-10-25 Thread Antoine Latter
On Tue, Oct 26, 2010 at 12:21 AM, Johan Tibell wrote: > On Sun, Oct 24, 2010 at 2:02 AM, Johan Tibell wrote: >> I noticed that indexWordArray# only allows for aligned reads (by >> forcing the offset to be in words, rather than in bytes.) Is it >> possible to perform unaligned reads on a ByteArray

Re: Unaligned word-sized reads on ByteArray#

2010-10-25 Thread Johan Tibell
On Sun, Oct 24, 2010 at 2:02 AM, Johan Tibell wrote: > I noticed that indexWordArray# only allows for aligned reads (by > forcing the offset to be in words, rather than in bytes.) Is it > possible to perform unaligned reads on a ByteArray# e.g. going via > Addr#? There's the byteArrayContent# prim