dnl Contributed to the GNU project by Niels Möller
dnl Copyright 2009, 2011, 2015 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles (approx) div
C P5 ?
C P6 model0-8,10-12 ?
C P6 model9 (Banias) ?
C P6 model13 (Dothan) ?
C P4 model0 (Willamette) ?
C P4 model1 (?) ?
C P4 model2 (Northwood) ?
C P4 model3 (Prescott) ?
C P4 model4 (Nocona) ?
C AMD K6 ?
C AMD K7 4153
C AMD K8 ?
C TODO
C * These c/l numbers are for a non-PIC build. Consider falling back to using
C the 'div' instruction for PIC builds.
C * Perhaps use this file--or at least the algorithm--for more machines than k7.
C Register usage:
C Input D in %edi
C Current approximation is in %eaxand/or %ecx
C %ebx and %edx are temporaries
C %esiand %ebp are unused
defframe(PARAM_DIVISOR,4)
ASM_START()
C Make approx_tab global to work around Apple relocation bug. ifdef(`DARWIN',`
deflit(`approx_tab', MPN(invert_limb_tab))
GLOBL approx_tab')
TEXT ALIGN(16)
PROLOGUE(mpn_invert_limb)
deflit(`FRAME', 0) mov PARAM_DIVISOR, %eax
C Avoid push/pop on k7. sub $8, %esp FRAME_subl_esp(8) mov %ebx, (%esp) mov %edi, 4(%esp)
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.