[NLUUG]   Welcome to ftp.nluug.nl
Current directory: /pub/os/NetBSD/NetBSD-current/src/external/lgpl3/gmp/dist/mpn/x86_64/
 
Current bandwidth utilization 51.23 Mbit/s
Bandwidth utilization bar
Contents of README:
Copyright 2003, 2004, 2006, 2008 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/.





			AMD64 MPN SUBROUTINES


This directory contains mpn functions for AMD64 chips.  It is also useful
for 64-bit Pentiums, and "Core 2".


		     RELEVANT OPTIMIZATION ISSUES

The Opteron and Athlon64 can sustain up to 3 instructions per cycle, but in
practice that is only possible for integer instructions.  But almost any
three integer instructions can issue simultaneously, including any 3 ALU
operations, including shifts.  Up to two memory operations can issue each
cycle.

Scheduling typically requires that load-use instructions are split into
separate load and use instructions.  That requires more decode resources,
and it is rarely a win.  Opteron/Athlon64 have deep out-of-order core.


Optimizing for 64-bit Pentium4 is probably a waste of time, as the most
critical instructions are very poorly implemented here.  Perhaps we could
save a cycle or two, but the most common loops now run at between 10 and 22
cycles, so a saved cycle isn't too exciting.


The new spin of the venerable P6 core, the "Core 2" is much better than the
Pentium4 for the GMP loops.  Its integer pipeline is somewhat similar to to
the Opteron/Athlon64 pipeline, except that the GMP favourites ADC/SBB and
MUL are slower.  Furthermore, an INC/DEC followed by ADC/SBB incur a
pipeline stall of around 10 cycles.  The default mpn_add_n and mpn_sub_n
code suffers badly from the stall.  The code in the core2 subdirectory uses
the almost forgotten instruction JRCXZ for loop control, and updates the
induction variable using LEA.



REFERENCES

"System V Application Binary Interface AMD64 Architecture Processor
Supplement", draft version 0.99, December 2007.
http://www.x86-64.org/documentation/abi.pdf

Icon  Name                                                           Last modified      Size  
[DIR] Parent Directory - [DIR] CVS/ 01-Nov-2024 04:01 - [DIR] atom/ 27-Sep-2020 05:01 - [DIR] bd1/ 12-Jul-2021 05:01 - [DIR] bd2/ 12-Jul-2021 05:01 - [DIR] bd4/ 27-Sep-2020 05:01 - [DIR] bt1/ 27-Sep-2020 05:01 - [DIR] bt2/ 27-Sep-2020 05:01 - [DIR] core2/ 12-Jul-2021 05:01 - [DIR] coreibwl/ 27-Sep-2020 05:01 - [DIR] coreihwl/ 27-Sep-2020 05:01 - [DIR] coreinhm/ 27-Sep-2020 05:01 - [DIR] coreisbr/ 12-Jul-2021 05:01 - [DIR] fastavx/ 23-Aug-2017 05:01 - [DIR] fastsse/ 27-Sep-2020 05:01 - [DIR] fat/ 12-Jul-2021 05:01 - [DIR] goldmont/ 27-Sep-2020 05:01 - [DIR] k8/ 27-Sep-2020 05:01 - [DIR] k10/ 12-Jul-2021 05:01 - [DIR] mulx/ 12-Jul-2021 05:01 - [DIR] nano/ 12-Jul-2021 05:01 - [DIR] pentium4/ 27-Sep-2020 05:01 - [DIR] silvermont/ 27-Sep-2020 05:01 - [DIR] skylake/ 12-Jul-2021 05:01 - [DIR] zen/ 27-Sep-2020 05:01 - [DIR] zen2/ 12-Jul-2021 05:01 - [TXT] README 23-Aug-2017 05:01 2.6K [TXT] addaddmul_1msb0.asm 23-Aug-2017 05:01 3.1K [TXT] aorrlsh1_n.asm 23-Aug-2017 05:01 3.7K [TXT] aorrlsh2_n.asm 23-Aug-2017 05:01 1.6K [TXT] aorrlshC_n.asm 27-Sep-2020 05:01 3.5K [TXT] aorrlsh_n.asm 23-Aug-2017 05:01 3.8K [TXT] aors_err1_n.asm 23-Aug-2017 05:01 4.1K [TXT] aors_err2_n.asm 23-Aug-2017 05:01 3.3K [TXT] aors_err3_n.asm 23-Aug-2017 05:01 3.0K [TXT] aors_n.asm 27-Sep-2020 05:01 3.6K [TXT] aorsmul_1.asm 27-Sep-2020 05:01 4.0K [TXT] bdiv_dbm1c.asm 23-Aug-2017 05:01 2.2K [TXT] bdiv_q_1.asm 27-Sep-2020 05:01 4.4K [TXT] cnd_aors_n.asm 22-Aug-2017 11:40 4.2K [TXT] com.asm 23-Aug-2017 05:01 2.1K [TXT] copyd.asm 23-Aug-2017 05:01 2.1K [TXT] copyi.asm 23-Aug-2017 05:01 2.1K [TXT] darwin.m4 27-Sep-2020 05:01 2.2K [TXT] div_qr_1n_pi1.asm 27-Sep-2020 05:01 4.4K [TXT] div_qr_2n_pi1.asm 23-Aug-2017 05:01 3.2K [TXT] div_qr_2u_pi1.asm 23-Aug-2017 05:01 4.0K [TXT] dive_1.asm 23-Aug-2017 05:01 3.4K [TXT] divrem_1.asm 23-Aug-2017 05:01 6.3K [TXT] divrem_2.asm 27-Sep-2020 05:01 3.8K [TXT] dos64.m4 27-Sep-2020 05:01 2.3K [TXT] gcd_11.asm 27-Sep-2020 02:27 2.5K [TXT] gcd_22.asm 27-Sep-2020 02:27 3.3K [TXT] gmp-mparam.h 23-Aug-2017 05:01 10K [TXT] invert_limb.asm 27-Sep-2020 05:01 2.9K [TXT] invert_limb_table.asm 23-Aug-2017 05:01 1.5K [TXT] logops_n.asm 27-Sep-2020 05:01 5.2K [TXT] lshift.asm 27-Sep-2020 05:01 3.8K [TXT] lshiftc.asm 23-Aug-2017 05:01 3.8K [TXT] lshsub_n.asm 23-Aug-2017 05:01 3.5K [TXT] missing-call.m4 22-Aug-2017 11:40 1.4K [TXT] missing-inline.m4 22-Aug-2017 11:40 2.2K [TXT] missing.asm 22-Aug-2017 11:40 3.1K [TXT] mod_1_1.asm 27-Sep-2020 05:01 4.9K [TXT] mod_1_2.asm 27-Sep-2020 05:01 4.5K [TXT] mod_1_4.asm 27-Sep-2020 05:01 5.0K [TXT] mod_34lsub1.asm 27-Sep-2020 05:01 4.3K [TXT] mode1o.asm 23-Aug-2017 05:01 3.9K [TXT] mul_1.asm 27-Sep-2020 05:01 4.1K [TXT] mul_2.asm 27-Sep-2020 05:01 3.9K [TXT] popham.asm 27-Sep-2020 05:01 3.6K [TXT] rsh1aors_n.asm 23-Aug-2017 05:01 4.0K [TXT] rshift.asm 23-Aug-2017 05:01 3.7K [TXT] sec_tabselect.asm 22-Aug-2017 11:40 3.6K [TXT] sqr_diag_addlsh1.asm 27-Sep-2020 05:01 2.4K [TXT] sublsh1_n.asm 23-Aug-2017 05:01 3.4K [TXT] x86_64-defs.m4 12-Jul-2021 05:01 11K

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!