YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
#include"gmp-impl.h"
/* Notice this is equivalent to mpz_set_f + mpz_fits_u*_p. */
int
FUNCTION (mpf_srcptr f) __GMP_NOTHROW
{
mp_size_t fn;
mp_srcptr fp;
mp_exp_t exp;
mp_limb_t fl;
exp = EXP(f); if (exp < 1) return1; /* -1 < f < 1 truncates to zero, so fits */
fn = SIZ(f); if (fn < 0) /* zero catched by exp == 0 */ return0; /* negatives don't fit */
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.