Definition in gmp-param.h

Vy Bui 01bui at cardinalmail.cua.edu
Wed Jan 2 17:56:55 CET 2013


Dear all,
I found these parameters were defined in gmp-mparam.h in
\mpn\x86\pentium4\sse2\
#define DC_DIV_QR_THRESHOLD                 38
#define DC_DIVAPPR_Q_THRESHOLD            77
#define DC_BDIV_QR_THRESHOLD               54
#define DC_BDIV_Q_THRESHOLD                 97
I found they are different for different CPU types, they are the thresholds
for division to choose the most efficient division algorithms. What these
numbers mean?

Best regards,
Bui


More information about the gmp-discuss mailing list