# x86 mpn_divrem_1 -- mpn by limb division extending to fractional quotient. # # cycles/limb # K7 42 # K6 20 # P6 40 # P5 44 # 486 approx 43 maybe # Copyright (C) 1999, 2000 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 the GNU Library General Public License as published by # the Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # # 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 Library General Public # License for more details. # # You should have received a copy of the GNU Library General Public License # along with the GNU MP Library; see the file COPYING.LIB. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, # MA 02111-1307, USA. include(`../config.m4') # mp_limb_t mpn_divrem_1 (mp_ptr dst, mp_size_t xsize, # mp_srcptr src, mp_size_t size, mp_limb_t divisor); # mp_limb_t mpn_divrem_1c (mp_ptr dst, mp_size_t xsize, # mp_srcptr src, mp_size_t size, mp_limb_t divisor); # # Divide src,size by divisor and store the quotient in dst+xsize,size. # Extend the division to fractional quotient limbs in dst,xsize. Return the # remainder. Either or both xsize and size can be 0. # # mpn_divrem_1c takes a carry parameter which is an initial high limb, # effectively one extra limb at the top of src,size. Must have # carry