bit sets in IntSet vs. Integer

David Feuer david.feuer at gmail.com
Sun Jun 19 13:35:21 UTC 2016


I know that Sergei Lebedev did quite a bit of work (for the bitset package)
optimizing certain Integer bit operations. That code doesn't work with the
new Integer, but it can probably be adapted.

On Sat, 18 Jun 2016, Carter Schonwald wrote:

> Henning: I suggest you read the gmp source and tell us :)

I hoped you have already done so. :-)

Does GHC call GMP for bit operations on Integer?
Aha, yes, it calls integer_gmp_mpn_and_n for (.&.) :

https://hackage.haskell.org/package/integer-gmp-1.0.0.1/docs/src/GHC.Integer.Type.html#c_mpn_and_n
_______________________________________________
Libraries mailing list
Libraries at haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20160619/48cda8c0/attachment.html>


More information about the Libraries mailing list