YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
#include"gmp-impl.h"
int
mpz_cmpabs_ui (mpz_srcptr u, unsignedlongint v_digit) __GMP_NOTHROW
{
mp_ptr up;
mp_size_t un;
mp_limb_t ul;
up = PTR(u);
un = SIZ(u);
if (un == 0) return -(v_digit != 0);
un = ABS (un);
if (un == 1)
{
ul = up[0]; if (ul > v_digit) return1; if (ul < v_digit) return -1; return0;
}
#if GMP_NAIL_BITS != 0 if (v_digit > GMP_NUMB_MAX)
{ if (un == 2)
{
ul = up[0] + (up[1] << GMP_NUMB_BITS);
if (ul > v_digit) return1; if (ul < v_digit) return -1; return0;
}
} #endif
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.