mini-gmp

Marco Bodrato bodrato at mail.dm.unipi.it
Tue Dec 25 08:05:23 UTC 2018


Ciao,

Il Ven, 21 Dicembre 2018 11:36 pm, Marco Bodrato ha scritto:
> Il Ven, 21 Dicembre 2018 7:13 pm, Niels Möller ha scritto:

> Before my changes, lcov (
> https://gmplib.org/devel/lcov/shell/gmp/mini-gmp/ ) reported for the file
> mini-gmp.c:

>Line Coverage:	98.4 % 	2029 / 2061
> Functions:	99.0 % 	196 / 198
> Branches:	87.4 % 	1107 / 1267

>> 2. Reduce the number of places that depend on mp_limb_t == unsigned
>>    long, where that also makes code simpler. E.g, using init_set_ui or
>>    roinit_ui in more of the _ui functions.

After pushing the simplified functions using init_set_ui:

Line Coverage:	98.4 % 	1972 / 2004
Functions:	99.0 % 	195 / 197
Branches:	87.3 % 	1043 / 1195

This means (more than) fifty lines and fifty branches removed from the
normal code.

I pushed the code this morning, so that the test suite can exercise it
while we have holly-days!

Ĝis,
m

-- 
http://bodrato.it/



More information about the gmp-devel mailing list