YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
#include <stdlib.h>
#include <signal.h>
#include"gmp-impl.h"
int gmp_errno = 0;
/* Use SIGFPE on systems which have it. Otherwise, deliberate divide byzero,whichtriggersanexceptiononmostsystems.Onthose
where it doesn't, for example power and powerpc, use abort instead. */ void
__gmp_exception (int error_bit)
{
gmp_errno |= error_bit; #ifdef SIGFPE
raise (SIGFPE); #else
__gmp_junk = 10 / __gmp_0; #endif
abort ();
}
/* These functions minimize the amount of code required in functions raising exceptions.Sincethey're"noreturn"anddon'ttakeanyparameters,a
test and call might even come out as a simple conditional jump. */ void
__gmp_sqrt_of_negative (void)
{
__gmp_exception (GMP_ERROR_SQRT_OF_NEGATIVE);
} void
__gmp_divide_by_zero (void)
{
__gmp_exception (GMP_ERROR_DIVISION_BY_ZERO);
} void
__gmp_overflow_in_mpz (void)
{
__gmp_exception (GMP_ERROR_MPZ_OVERFLOW);
}
Messung V0.5 in Prozent
¤ 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.0.13Bemerkung:
(vorverarbeitet am 2026-09-29)
¤
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.