YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
#include"gmp-impl.h" #include"longlong.h"
/* If n is a power of 2 then the test ret<n is always true and the loop is unnecessary,butthere'snoneedtoaddspecialcodeforthis.Justget the"bits"calculationcorrectandletitgothroughnormally.
Ifnis1thenwillhavebits==0and_gmp_randwillproducenooutputand wealwaysreturn0.Againthereseemsnoneedforaspecialcase,just
initialize a[0]=0 and let it go through normally. */
/* start with zeros, since if bits==0 then _gmp_rand will store nothing at all(bits==0ariseswhenn==1),orifbits<=GMP_NUMB_BITSthenit
will store only a[0]. */
a[0] = 0; #if LIMBS_PER_ULONG > 1
a[1] = 0; #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.