[GHC] #4442: Add unaligned version of indexWordArray#
GHC
cvs-ghc at haskell.org
Thu Oct 28 10:54:03 EDT 2010
#4442: Add unaligned version of indexWordArray#
----------------------------------+-----------------------------------------
Reporter: tibbe | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: libraries (other) | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
----------------------------------+-----------------------------------------
Comment(by tibbe):
Replying to [comment:1 simonmar]:
> As per discussion on glasgow-haskell-users, this can be done with a
combination of `byteArrayContents#`, `plusAddr#`, `indexWordOffAddr#`, and
`touch#`. Does that work well enough for your purposes?
That only works if the array is pinned.
Simon suggested that we could replace the current primops with ones that
take byte offsets and implement the current set of primops in terms of
these, new primops.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4442#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list