📄 readme
字号:
Copyright 2002 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 2.1 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; see the file COPYING.LIB. If not, write tothe Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA02111-1307, USA. POWERPC 32-BIT MPN SUBROUTINESThis directory contains mpn functions for various 32-bit PowerPC chips.CODE ORGANIZATION powerpc generic, 604, 604e powerpc/750 740, 750, 7400The top-level powerpc directory is currently mostly aimed at 604/604e butshould be reasonable on all powerpcs.STATUSThe code is quite well optimized for the 604e, other chips have had lessattention.Altivec SIMD available in 7400 might hold some promise, but unfortunatelyGMP only guarantees 32-bit data alignment, so there's lots of fiddlingaround with partial operations at the start and end of limb vectors. A128-bit limb would be a novel idea, but is unlikely to be practical, sinceit would have to work with ordinary +, -, * etc in the C code.REGISTER NAMESThe normal powerpc convention is to give registers as plain numbers, like"mtctr 6", but on Apple MacOS X (powerpc*-*-rhapsody* andpowerpc*-*-darwin*) the assembler demands an "r" like "mtctr r6". Notehowever when register 0 in an instruction means a literal zero the "r" isomitted, for instance "lwzx r6,0,r7".The GMP code uses the "r" forms, powerpc-defs.m4 transforms them to plainnumbers according to what GMP_ASM_POWERPC_R_REGISTERS finds is needed.REFERENCESPowerPC Microprocessor Family: The Programming Environments for 32-bitMicroprocessors, IBM document G522-0290-01, 2000.PowerPC 604e RISC Microprocessor User's Manual with Supplement for PowerPC604 Microprocessor, IBM document G552-0330-00, Motorola documentMPC604EUM/AD, 1998.MPC7400 RISC Microprocessor User's Manual, Motorola document MPC7400UM/D,rev 0, 3/2000.The above are available online from http://chips.ibm.com/techlib/products/powerpc/manuals http://www.mot.com/PowerPC----------------Local variables:mode: textfill-column: 76End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -