Restore function powModSecInteger
authorOlivier Chéron <olivier.cheron@gmail.com>
Tue, 19 Sep 2017 20:58:01 +0000 (16:58 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 19 Sep 2017 20:58:14 +0000 (16:58 -0400)
commit0aba999f60babe6878a1fd2cc8410139358cad16
treef0983d05ea492a924fdb6130a9a7c720f80e7d0b
parent7920a7d9c53083b234e060a3e72f00b601a46808
Restore function powModSecInteger

The function existed in integer-gmp-0.5.1.0 but was removed as
part of integer-gmp2 rewrite in #9281.  This is to bring it back.

Test Plan: Case integerGmpInternals, with GMP 4.3.2 and GMP 6.1.2

Reviewers: austin, hvr, goldfire, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3947
libraries/integer-gmp/cbits/wrappers.c
libraries/integer-gmp/include/HsIntegerGmp.h.in
libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs
libraries/integer-gmp/src/GHC/Integer/Type.hs
testsuite/tests/lib/integer/integerGmpInternals.hs