YoushouldhavereceivedcopiesoftheGNUGeneralPublicLicenseandthe GNULesserGeneralPublicLicensealongwiththeGNUMPLibrary.Ifnot,
see https://www.gnu.org/licenses/. */
#include"gmp-impl.h"
/* Gets {pp,n} and (sign?-1:1)*{np,n}. Computes at once: {pp,n}<-({pp,n}+{np,n})/2^{ps+1} {pn,n}<-({pp,n}-{np,n})/2^{ns+1} Finallyrecomposethemobtaining: {pp,n+off}<-{pp,n}+{np,n}*2^{off*GMP_NUMB_BITS}
*/ void
mpn_toom_couple_handling (mp_ptr pp, mp_size_t n, mp_ptr np, int nsign, mp_size_t off, int ps, int ns)
{ if (nsign) { #ifdef HAVE_NATIVE_mpn_rsh1sub_n
mpn_rsh1sub_n (np, pp, np, n); #else
mpn_sub_n (np, pp, np, n);
mpn_rshift (np, np, n, 1); #endif
} else { #ifdef HAVE_NATIVE_mpn_rsh1add_n
mpn_rsh1add_n (np, pp, np, n); #else
mpn_add_n (np, pp, np, n);
mpn_rshift (np, np, n, 1); #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.