[GHC] #7860: Add more bit fiddling functions to 'integer-gmp'

GHC ghc-devs at haskell.org
Sun Jun 9 22:15:03 CEST 2013


#7860: Add more bit fiddling functions to 'integer-gmp'
--------------------------------+-------------------------------------------
  Reporter:  lebedev            |          Owner:                  
      Type:  feature request    |         Status:  new             
  Priority:  normal             |      Milestone:                  
 Component:  libraries (other)  |        Version:  7.6.3           
Resolution:                     |       Keywords:  gmp             
        Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown       |     Difficulty:  Unknown         
  Testcase:                     |      Blockedby:                  
  Blocking:                     |        Related:  #3489           
--------------------------------+-------------------------------------------

Comment(by igloo):

 I suspect we'd want to refactor things so that
 {{{
 clearBitInteger (S# j) i = S# (clearBitInt j i)
 }}}
 (and similarly share code where possible for the other functions).

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



More information about the ghc-tickets mailing list