YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
#include"gmp-impl.h" #include"longlong.h"
/* There's some explicit checks for c<d since it seems reasonably likely an applicationmightusethatinatest.
Hopefullythecompilercangeneratesomethinggoodforr==(c%d),though
if modexact is being used exclusively then that's not reached. */
int
mpz_congruent_ui_p (mpz_srcptr a, unsignedlong cu, unsignedlong du)
{
mp_srcptr ap;
mp_size_t asize;
mp_limb_t c, d, r;
asize = SIZ(a); if (asize == 0)
{ if (cu < du) return cu == 0; else return (cu % du) == 0;
}
/* For nails don't try to be clever if c or d is bigger than a limb, just
fake up some mpz_t's and go to the main mpz_congruent_p. */ if (du > GMP_NUMB_MAX || cu > GMP_NUMB_MAX)
{
mp_limb_t climbs[2], dlimbs[2];
mpz_t cz, dz;
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.