/* mpn_remove -- divide out all multiples of odd mpn number from another mpn number.
Contributed to the GNU project by Torbjorn Granlund.
THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A FUTURE GMP RELEASE.
Copyright 2009, 2012-2014, 2017 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
or
* the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
or both in parallel, as here.
The GNU MP Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received copies of the GNU General Public License and the GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */
/* Input: U = {up,un}, V = {vp,vn} must be odd, cap Ouput W = {wp,*wn} allocation need is exactly *wn
Set W = U / V^k, where k is the largest integer <= cap such that the division yields an integer.
FIXME: We currently allow any operand overlap. This is quite non mpn-ish and might be changed, since it cost significant temporary space. * If we require W to have space for un + 1 limbs, we could save qp or qp2 (but we will still need to copy things into wp 50% of the time). * If we allow ourselves to clobber U, we could save the other of qp and qp2, and the initial COPY (but also here we would need un + 1 limbs).
*/
/* FIXME: We need to wrap mpn_bdiv_qr due to the itch interface. This need indicates a flaw in the current itch mechanism: Which operands not greater than un,un will incur the worst itch? We need a parallel foo_maxitch set
of functions. */ staticvoid
mpn_bdiv_qr_wrap (mp_ptr qp, mp_ptr rp,
mp_srcptr np, mp_size_t nn,
mp_srcptr dp, mp_size_t dn)
{
mp_ptr scratch_out;
TMP_DECL;
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.