You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.2 KiB

25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
  1. Tips for performance tuning on a specific architecture:
  2. 1a. Choose the optimal digit size (intDsize). This is fundamental. On 32-bit
  3. platforms intDsize=32 is best. On 64-bit platforms intDsize=64 may be
  4. better, especially if there is a 64x64-bit multiplication in hardware.
  5. 1b. Alternatively, tune GMP. When GMP is used, CLN's digit size (intDsize) has
  6. to match GMP's limb size (sizeof(mp_limb_t)). There is nothing to do at the
  7. CLN side: The configure script will take care of intDsize automatically.
  8. 2. The break-even points between several algorithms for the same task
  9. have to be determined experimentally, in the order given below:
  10. multiplication:
  11. cl_DS_mul.cc karatsuba_threshold
  12. cl_DS_mul.cc function cl_fftm_suitable
  13. division:
  14. cl_DS_div.cc function cl_recip_suitable
  15. 2-adic reciprocal:
  16. cl_2DS_recip.cc recip2adic_threshold
  17. 2-adic division:
  18. cl_2DS_div.cc function cl_recip_suitable
  19. square root:
  20. cl_DS_sqrt.cc function cl_recipsqrt_suitable
  21. cl_LF_sqrt.cc "if (len > ...)"
  22. gcd:
  23. cl_I_gcd.cc cl_gcd_double_threshold
  24. binary->decimal conversion:
  25. cl_I_to_digits.cc cl_digits_div_threshold
  26. pi:
  27. cl_LF_pi.cc best of 4 algorithms
  28. exp, log:
  29. cl_F_expx.cc factor limit_slope of isqrt(d)
  30. cl_R_exp.cc inside function exp
  31. cl_R_ln.cc inside function ln
  32. eulerconst:
  33. cl_LF_eulerconst.cc function compute_eulerconst
  34. sin, cos, sinh, cosh:
  35. cl_F_sinx.cc factor limit_slope of isqrt(d)
  36. cl_R_sin.cc inside function sin
  37. cl_R_cos.cc inside function cos
  38. cl_R_cossin.cc inside function cl_cos_sin
  39. cl_F_sinhx.cc factor limit_slope of isqrt(d)
  40. cl_R_sinh.cc inside function sinh
  41. cl_R_cosh.cc inside function cosh
  42. cl_R_coshsinh.cc inside function cl_cosh_sinh
  43. cl_F_atanx.cc factor limit_slope of isqrt(d)
  44. cl_F_atanx.cc inside function atanx
  45. cl_F_atanhx.cc factor limit_slope of isqrt(d)
  46. cl_F_atanhx.cc inside function atanhx