[GHC] #10962: Improved arithmetic primops

GHC ghc-devs at haskell.org
Tue Mar 1 08:58:44 UTC 2016


#10962: Improved arithmetic primops
-------------------------------------+-------------------------------------
        Reporter:  nkaretnikov       |                Owner:  nkaretnikov
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
  wiki:ImprovedArithmeticPrimops     |
-------------------------------------+-------------------------------------

Comment (by erikd):

 Sorry, to bring this up so late in the release cycle, but I have soem
 concerns about both the name and the type signature of this new function.

 Before this was added we had:

 {{{
 plusWord2# :: Word# -> Word# -> (# Word#, Word# #)
 timesWord2# :: Word# -> Word# -> (# Word#, Word# #)
 quotRemWord#" :: Word# -> Word# -> (# Word#, Word# #)

 }}}

 and now we have added:

 {{{
 subWordC# :: Word# -> Word# -> (# Word#, Int# #)
 }}}

 which has a name and a type signature that is wildly out of whack with the
 others.

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


More information about the ghc-tickets mailing list