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/

_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to