[GHC] #8296: Patch: new primops for byte range copies ByteArray# <-> Addr#

GHC ghc-devs at haskell.org
Sat Sep 14 18:47:18 CEST 2013


#8296: Patch: new primops for byte range copies ByteArray# <-> Addr#
-------------------------------------+------------------------------------
        Reporter:  duncan            |            Owner:
            Type:  feature request   |           Status:  patch
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.6.3
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by rwbarton):

 It looks like the comments in `doCopyByteArrayToAddrOp` and
 `doCopyAddrToByteArrayOp` were copied from `doCopyByteArrayOp`. Actually,
 the reason it's okay to assume the memory ranges aren't overlapping in the
 former two functions is that that is a precondition of the primop.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8296#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list