new fns lshift1,rshift1,addadd,addsub,sumdiff,divexactbyff,redc_basecase not visible to user only internally

This commit is contained in:
jasonmoxham 2009-02-24 01:51:11 +00:00
parent f86e86473b
commit f75309176a
3 changed files with 4 additions and 16 deletions

14
TODO
View File

@ -1,22 +1,10 @@
some of the new fns are only visible internally , to get them visible to the user we
need to put the stuff thats in gmp-impl.h into gmp-h.in and get it to work ,
need to bugger about with configure.in etc
should addsub return int or limb ? should addsub return int or limb ?
Test everything for alignment and speed on K10 Test everything for alignment and speed on K10
should the new function be entered in the fat structure? should the new function be entered in the fat structure?
some of the new fn's are visible to the user , or do we want them internal?
need proper speed tuning for redc_basecase and powm , not the hack that we
have at the mo
for K10 , check tests/try does the different alignments for the shifts for K10 , check tests/try does the different alignments for the shifts
tune params tune params on K8,K10,core2,Pentium D
test on core2
go thru our changes list see what merge did

View File

@ -1503,9 +1503,6 @@ __GMP_DECLSPEC int mpn_cmp __GMP_PROTO ((mp_srcptr, mp_srcptr, mp_size_t)) __GMP
#define mpn_divexact_by3c __MPN(divexact_by3c) #define mpn_divexact_by3c __MPN(divexact_by3c)
__GMP_DECLSPEC mp_limb_t mpn_divexact_by3c __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)); __GMP_DECLSPEC mp_limb_t mpn_divexact_by3c __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, mp_limb_t));
#define mpn_divexact_byff __MPN(divexact_byff)
__GMP_DECLSPEC mp_limb_t mpn_divexact_byff __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t));
#define mpn_divmod_1(qp,np,nsize,dlimb) \ #define mpn_divmod_1(qp,np,nsize,dlimb) \
mpn_divrem_1 (qp, __GMP_CAST (mp_size_t, 0), np, nsize, dlimb) mpn_divrem_1 (qp, __GMP_CAST (mp_size_t, 0), np, nsize, dlimb)

View File

@ -841,6 +841,9 @@ __GMP_DECLSPEC mp_limb_t mpn_sumdiff_n __GMP_PROTO ((mp_ptr, mp_ptr, mp_srcptr,
#define mpn_sumdiff_nc __MPN(sumdiff_nc) #define mpn_sumdiff_nc __MPN(sumdiff_nc)
__GMP_DECLSPEC mp_limb_t mpn_sumdiff_nc __GMP_PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t)); __GMP_DECLSPEC mp_limb_t mpn_sumdiff_nc __GMP_PROTO ((mp_ptr, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t));
#define mpn_divexact_byff __MPN(divexact_byff)
__GMP_DECLSPEC mp_limb_t mpn_divexact_byff __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t));
#define mpn_divrem_1c __MPN(divrem_1c) #define mpn_divrem_1c __MPN(divrem_1c)
__GMP_DECLSPEC mp_limb_t mpn_divrem_1c __GMP_PROTO ((mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t)); __GMP_DECLSPEC mp_limb_t mpn_divrem_1c __GMP_PROTO ((mp_ptr, mp_size_t, mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t));