⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 The GNU MP Bignum Library
💻
字号:
Copyright 2000, 2001 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 modifyit under the terms of the GNU Lesser General Public License as published bythe Free Software Foundation; either version 3 of the License, or (at youroption) any later version.The GNU MP Library is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITYor FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General PublicLicense for more details.You should have received a copy of the GNU Lesser General Public Licensealong with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.                      INTEL P6 MPN SUBROUTINESThis directory contains code optimized for Intel P6 class CPUs, meaningPentiumPro, Pentium II and Pentium III.  The mmx and p3mmx subdirectorieshave routines using MMX instructions.STATUSTimes for the loops, with all code and data in L1 cache, are as follows.Some of these might be able to be improved.                               cycles/limb	mpn_add_n/sub_n           3.7	mpn_copyi                 0.75	mpn_copyd                 1.75 (or 0.75 if no overlap)	mpn_divrem_1             39.0	mpn_mod_1                21.5	mpn_divexact_by3          8.5	mpn_mul_1                 5.5	mpn_addmul/submul_1       6.35	mpn_l/rshift              2.5	mpn_mul_basecase          8.2 cycles/crossproduct (approx)	mpn_sqr_basecase          4.0 cycles/crossproduct (approx)	                          or 7.75 cycles/triangleproduct (approx)Pentium II and III have MMX and get the following improvements.	mpn_divrem_1             25.0 integer part, 17.5 fractional part	mpn_l/rshift              1.75NOTESWrite-allocate L1 data cache means prefetching of destinations is unnecessary.Mispredicted branches have a penalty of between 9 and 15 cycles, and even upto 26 cycles depending how far speculative execution has gone.  The 9 cycleminimum penalty comes from the issue pipeline being 9 stages.A copy with rep movs seems to copy 16 bytes at a time, since speeds for 4,5, 6 or 7 limb operations are all the same.  The 0.75 cycles/limb would be 3cycles per 16 byte block.CODINGInstructions in general code have been shown grouped if they can executetogether, which means up to three instructions with no successivedependencies, and with only the first being a multiple micro-op.P6 has out-of-order execution, so the groupings are really only showingdependent paths where some shuffling might allow some latencies to behidden.REFERENCES"Intel Architecture Optimization Reference Manual", 1999, revision 001 dated02/99, order number 245127 (order number 730795-001 is in the document too).Available on-line:	http://download.intel.com/design/PentiumII/manuals/245127.htm"Intel Architecture Optimization Manual", 1997, order number 242816.  Thisis an older document mostly about P5 and not as good as the above.Available on-line:	http://download.intel.com/design/PentiumII/manuals/242816.htm----------------Local variables:mode: textfill-column: 76End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -