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

GHC ghc-devs at haskell.org
Sun Sep 15 17:28:49 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 duncan):

 Replying to [comment:3 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.

 Fair point. Updated those two comments.

 Replying to [comment:4 thoughtpolice]:
 > This patch looks quite straightforward to me. If nobody has any other
 objections, I'll put it on my patch queue and merge it later tonight.

 Ta!

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



More information about the ghc-tickets mailing list