Definition in gmp-param.h

Vy Bui 01bui at
Wed Jan 2 17:56:55 CET 2013

Dear all,
I found these parameters were defined in gmp-mparam.h in
#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,

More information about the gmp-discuss mailing list