You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted previously in #1 the default FFT selected for small exponents may be accurate but it misses the mark for Fermat exponents which have a limited range of possible FFTs that may be used. At Teal’s suggestion I’ve tested modifications to Mlucas.c, firstly at line 1261:
The added condition in the second clause ensures the 9 > 8 rule for selecting the next FFT doesn’t clobber Fermat exponents and retains the same behaviour for Mersennes. The more extensive modification at lines 1304 ff. or thereabouts prevent Mlucas running the self-test when Mlucas selects a wrong default FFT in spite of a user-supplied FFT.
SETUP_FFT: /* CXC: addition by Teal D inserted at line 1308 to printf the preferred FFT length; also line 1310 if statement *//* Look for a best-FFT-radix-set entry in the .cfg file: */dum=get_preferred_fft_radix(kblocks);
if(!dum) { // Need to run a timing self-test at this FFT length before proceeding:sprintf(cbuf,"INFO: FFT length %d = %d K not found in the '%s' file.\n", n, kblocks, CONFIGFILE);
fprintf(stderr,"%s", cbuf);
if (!fft_length) returnERR_RUN_SELFTEST_FORLENGTH+ (kblocks << 8);
}
The text was updated successfully, but these errors were encountered:
As noted previously in #1 the default FFT selected for small exponents may be accurate but it misses the mark for Fermat exponents which have a limited range of possible FFTs that may be used. At Teal’s suggestion I’ve tested modifications to
Mlucas.c
, firstly at line 1261:The added condition in the second clause ensures the 9 > 8 rule for selecting the next FFT doesn’t clobber Fermat exponents and retains the same behaviour for Mersennes. The more extensive modification at lines 1304 ff. or thereabouts prevent Mlucas running the self-test when Mlucas selects a wrong default FFT in spite of a user-supplied FFT.
The text was updated successfully, but these errors were encountered: