New function mpn_gcd_22.
* mpn/generic/gcd.c (gcd_2): Moved to gcd_22.c below. (mpn_gcd): Adapt for calling gcd_22. * mpn/generic/gcd_22.c (mpn_gcd_22): New file and function. * gmp-impl.h (mp_double_limb_t): New (typedef) struct. * configure.ac (gmp_mpn_functions): Added gcd_22. * tests/mpn/t-gcd_22.c: New test. * tests/mpn/Makefile.am (check_PROGRAMS): Add t-gcd_22. * tests/refmpz.c (refmpz_gcd): New function (plain binary gcd).
Showing
- ChangeLog 12 additions, 0 deletionsChangeLog
- configure.ac 1 addition, 1 deletionconfigure.ac
- gmp-impl.h 8 additions, 0 deletionsgmp-impl.h
- mpn/generic/gcd.c 6 additions, 57 deletionsmpn/generic/gcd.c
- mpn/generic/gcd_22.c 81 additions, 0 deletionsmpn/generic/gcd_22.c
- tests/mpn/Makefile.am 1 addition, 1 deletiontests/mpn/Makefile.am
- tests/mpn/t-gcd_22.c 83 additions, 0 deletionstests/mpn/t-gcd_22.c
- tests/refmpz.c 46 additions, 0 deletionstests/refmpz.c
- tests/tests.h 1 addition, 0 deletionstests/tests.h
Loading
Please register or sign in to comment