<p dir="ltr">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.<br></p>
<p dir="ltr">On Sat, 18 Jun 2016, Carter Schonwald wrote:</p>
<blockquote><p dir="ltr">> Henning: I suggest you read the gmp source and tell us :)<br>
</p>
</blockquote>
<p dir="ltr"></p>
<p dir="ltr">I hoped you have already done so. :-)</p>
<p dir="ltr">Does GHC call GMP for bit operations on Integer?<br>
Aha, yes, it calls integer_gmp_mpn_and_n for (.&.) :<br>
<a href="https://hackage.haskell.org/package/integer-gmp-1.0.0.1/docs/src/GHC.Integer.Type.html#c_mpn_and_n">https://hackage.haskell.org/package/integer-gmp-1.0.0.1/docs/src/GHC.Integer.Type.html#c_mpn_and_n</a><br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</p>