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

GHC cvs-ghc at haskell.org
Wed Apr 24 00:20:33 CEST 2013


#7860: Add more bit fiddling functions to 'integer-gmp'
-----------------------------+----------------------------------------------
Reporter:  lebedev           |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  7.6.3             |       Keywords:  gmp             
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:  3489            
-----------------------------+----------------------------------------------
 Current implementation of 'integer-gmp' uses only a subset of "bit
 fiddling" features, [http://gmplib.org/manual/Integer-Logic-and-Bit-
 Fiddling.html provided] by the GMP library. The ones missing are:

 {{{
 * mpz_popcount
 * mpz_setbit
 * mpz_clrbit
 }}}

 I think it would be nice to add these functions in addition to
 'testBitInteger'. Would you accept a patch?

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



More information about the ghc-tickets mailing list