Tuneup support for HGCD2_METHOD, controlling div1 usage in mpn_hgcd2.
* mpn/generic/hgcd2.c (HGCD2_METHOD): New parameter. (DIV1): New macro, using either the div1 function or plain division, depending on the value of HGCD2_METHOD. (mpn_hgcd2): Use DIV1. * tune/speed.c, tune/speed.h, tune/common.c, tune/Makefile.am: Add measuring of mpn_hgcd2 methods. * tune/hgcd2-1.c, tune/hgcd2-2.c: New files. * tune/tuneup.c: Tune HGCD2_METHOD.
Showing
- ChangeLog 9 additions, 0 deletionsChangeLog
- mpn/generic/hgcd2.c 28 additions, 16 deletionsmpn/generic/hgcd2.c
- tune/Makefile.am 1 addition, 0 deletionstune/Makefile.am
- tune/common.c 10 additions, 0 deletionstune/common.c
- tune/hgcd2-1.c 39 additions, 0 deletionstune/hgcd2-1.c
- tune/hgcd2-2.c 39 additions, 0 deletionstune/hgcd2-2.c
- tune/speed.c 2 additions, 0 deletionstune/speed.c
- tune/speed.h 7 additions, 0 deletionstune/speed.h
- tune/tuneup.c 27 additions, 0 deletionstune/tuneup.c
Loading
Please register or sign in to comment