YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
struct gmp_primes_ptab {
mp_limb_t ppp; /* primes, multiplied together */
mp_limb_t cps[7]; /* ppp values pre-computed for mpn_mod_1s_4p */
gmp_uint_least32_t idx:24; /* index of first primes in dtab */
gmp_uint_least32_t np :8; /* number of primes related to this entry */
};
/* FIXME: We could optimize out one of the outer loop conditions if we
had a final ptab entry with a huge np field. */
mp_limb_t
mpn_trialdiv (mp_srcptr tp, mp_size_t tn, mp_size_t nprimes, int *where)
{
mp_limb_t ppp; const mp_limb_t *cps; conststruct gmp_primes_dtab *dp; long i, j, idx, np;
mp_limb_t r, q;
ASSERT (tn >= 1);
for (i = *where; i < PTAB_LINES; i++)
{
ppp = gmp_primes_ptab[i].ppp;
cps = gmp_primes_ptab[i].cps;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.