diff options
author | Niels M?ller <nisse@lysator.liu.se> | 2019-09-23 17:26:46 +0200 |
---|---|---|
committer | Niels M?ller <nisse@lysator.liu.se> | 2019-09-23 17:26:46 +0200 |
commit | 5149e9a3ff21e81edcf59825c3e31d2dbbef6a0a (patch) | |
tree | 944487c77dcfb17466fd11ff689f8897faaef978 /ChangeLog | |
parent | b4b615920b330e37aa4b806674bbeb7a5a284195 (diff) | |
download | gmp-5149e9a3ff21e81edcf59825c3e31d2dbbef6a0a.tar.gz |
Make tuning of hgcd and gcd take hgcd2 choice into account
* gmp-impl.h (hgcd2_func_t) [TUNE_PROGRAM_BUILD]: New typedef.
(hgcd2_func) [TUNE_PROGRAM_BUILD]: New function pointer.
* tune/hgcd2.c (mpn_hgcd2): New file, with a redefined function to
invoke an implementation via the hgcd2_func function pointer.
Initially points to the default implementation in
mpn/generic/hgcd2.c.
* tune/Makefile.am (tuneup_SOURCES): Add hgcd2.c.
* tune/tuneup.c (one_method): Return index of selected function.
(tune_hgcd2): Set hgcd2_func to point to selected function. So
that the later tuning of mpn_hgcd and mpn_gcd uses the right
implementation of hgcd2.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,19 @@ +2019-09-23 Niels Möller <nisse@lysator.liu.se> + + * gmp-impl.h (hgcd2_func_t) [TUNE_PROGRAM_BUILD]: New typedef. + (hgcd2_func) [TUNE_PROGRAM_BUILD]: New function pointer. + + * tune/hgcd2.c (mpn_hgcd2): New file, with a redefined function to + invoke an implementation via the hgcd2_func function pointer. + Initially points to the default implementation in + mpn/generic/hgcd2.c. + * tune/Makefile.am (tuneup_SOURCES): Add hgcd2.c. + + * tune/tuneup.c (one_method): Return index of selected function. + (tune_hgcd2): Set hgcd2_func to point to selected function. So + that the later tuning of mpn_hgcd and mpn_gcd uses the right + implementation of hgcd2. + 2019-09-18 Torbjörn Granlund <tg@gmplib.org> * mpn/generic/hgcd2.c (div1, div2): Rearrange things to allow for asm. |