[NLUUG]   Welcome to ftp.nluug.nl
Current directory: /ftp/os/BSD/NetBSD/NetBSD-release-10/src/external/lgpl3/gmp/dist/mpn/x86_64/
 
Current bandwidth utilization 1025.78 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/ 25-Nov-2024 04:07 - [DIR] atom/ 17-Dec-2022 21:35 - [DIR] bd1/ 17-Dec-2022 21:35 - [DIR] bd2/ 17-Dec-2022 21:35 - [DIR] bd4/ 17-Dec-2022 21:35 - [DIR] bt1/ 17-Dec-2022 21:35 - [DIR] bt2/ 17-Dec-2022 21:35 - [DIR] core2/ 17-Dec-2022 21:35 - [DIR] coreibwl/ 17-Dec-2022 21:35 - [DIR] coreihwl/ 17-Dec-2022 21:35 - [DIR] coreinhm/ 17-Dec-2022 21:35 - [DIR] coreisbr/ 17-Dec-2022 21:35 - [DIR] fastavx/ 17-Dec-2022 21:35 - [DIR] fastsse/ 17-Dec-2022 21:35 - [DIR] fat/ 17-Dec-2022 21:35 - [DIR] goldmont/ 17-Dec-2022 21:35 - [DIR] k8/ 17-Dec-2022 21:35 - [DIR] k10/ 17-Dec-2022 21:35 - [DIR] mulx/ 17-Dec-2022 21:35 - [DIR] nano/ 17-Dec-2022 21:35 - [DIR] pentium4/ 17-Dec-2022 21:35 - [DIR] silvermont/ 17-Dec-2022 21:35 - [DIR] skylake/ 17-Dec-2022 21:35 - [DIR] zen/ 17-Dec-2022 21:35 - [DIR] zen2/ 17-Dec-2022 21:35 - [TXT] README 22-Aug-2017 11:40 2.6K [TXT] addaddmul_1msb0.asm 22-Aug-2017 11:40 3.1K [TXT] aorrlsh1_n.asm 22-Aug-2017 11:40 3.7K [TXT] aorrlsh2_n.asm 22-Aug-2017 11:40 1.6K [TXT] aorrlshC_n.asm 27-Sep-2020 02:27 3.5K [TXT] aorrlsh_n.asm 22-Aug-2017 11:40 3.8K [TXT] aors_err1_n.asm 22-Aug-2017 11:40 4.1K [TXT] aors_err2_n.asm 22-Aug-2017 11:40 3.3K [TXT] aors_err3_n.asm 22-Aug-2017 11:40 3.0K [TXT] aors_n.asm 27-Sep-2020 02:27 3.6K [TXT] aorsmul_1.asm 27-Sep-2020 02:27 4.0K [TXT] bdiv_dbm1c.asm 22-Aug-2017 11:40 2.2K [TXT] bdiv_q_1.asm 27-Sep-2020 02:27 4.4K [TXT] cnd_aors_n.asm 22-Aug-2017 11:40 4.2K [TXT] com.asm 22-Aug-2017 11:40 2.1K [TXT] copyd.asm 22-Aug-2017 11:40 2.1K [TXT] copyi.asm 22-Aug-2017 11:40 2.1K [TXT] darwin.m4 27-Sep-2020 02:27 2.2K [TXT] div_qr_1n_pi1.asm 27-Sep-2020 02:27 4.4K [TXT] div_qr_2n_pi1.asm 22-Aug-2017 11:40 3.2K [TXT] div_qr_2u_pi1.asm 22-Aug-2017 11:40 4.0K [TXT] dive_1.asm 22-Aug-2017 11:40 3.4K [TXT] divrem_1.asm 22-Aug-2017 11:40 6.3K [TXT] divrem_2.asm 27-Sep-2020 02:27 3.8K [TXT] dos64.m4 27-Sep-2020 02:27 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 22-Aug-2017 11:40 10K [TXT] invert_limb.asm 27-Sep-2020 02:27 2.9K [TXT] invert_limb_table.asm 22-Aug-2017 11:40 1.5K [TXT] logops_n.asm 27-Sep-2020 02:27 5.2K [TXT] lshift.asm 27-Sep-2020 02:27 3.8K [TXT] lshiftc.asm 22-Aug-2017 11:40 3.8K [TXT] lshsub_n.asm 22-Aug-2017 11:40 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 02:27 4.9K [TXT] mod_1_2.asm 27-Sep-2020 02:27 4.5K [TXT] mod_1_4.asm 27-Sep-2020 02:27 5.0K [TXT] mod_34lsub1.asm 27-Sep-2020 02:27 4.3K [TXT] mode1o.asm 22-Aug-2017 11:40 3.9K [TXT] mul_1.asm 27-Sep-2020 02:27 4.1K [TXT] mul_2.asm 27-Sep-2020 02:27 3.9K [TXT] popham.asm 27-Sep-2020 02:27 3.6K [TXT] rsh1aors_n.asm 22-Aug-2017 11:40 4.0K [TXT] rshift.asm 22-Aug-2017 11:40 3.7K [TXT] sec_tabselect.asm 22-Aug-2017 11:40 3.6K [TXT] sqr_diag_addlsh1.asm 27-Sep-2020 02:27 2.4K [TXT] sublsh1_n.asm 22-Aug-2017 11:40 3.4K [TXT] x86_64-defs.m4 11-Jul-2021 23:14 11K

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