Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
submul_1.asm
Package: gmp-5.0.1.tar.gz [view]
Upload User: qaz666999
Upload Date: 2022-08-06
Package Size: 2570k
Code Size: 2k
Category:
Algorithm
Development Platform:
Unix_Linux
- dnl SPARC v9 64-bit mpn_submul_1 -- Multiply a limb vector with a limb and
- dnl subtract the result from a second limb vector.
- dnl Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
- dnl This file is part of the GNU MP Library.
- dnl The GNU MP Library is free software; you can redistribute it and/or modify
- dnl it under the terms of the GNU Lesser General Public License as published
- dnl by the Free Software Foundation; either version 3 of the License, or (at
- dnl your option) any later version.
- 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 Lesser General Public
- dnl License for more details.
- dnl You should have received a copy of the GNU Lesser General Public License
- dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
- include(`../config.m4')
- C cycles/limb
- C UltraSPARC 1&2: 18
- C UltraSPARC 3: 23
- C INPUT PARAMETERS
- C rp i0
- C up i1
- C n i2
- C v i3
- ASM_START()
- REGISTER(%g2,#scratch)
- PROLOGUE(mpn_submul_1)
- save %sp,-176,%sp
- sllx %i2, 3, %g2
- or %g0, %i1, %o1
- add %g2, 15, %o0
- or %g0, %i2, %o2
- and %o0, -16, %o0
- sub %sp, %o0, %sp
- add %sp, 2223, %o0
- or %g0, %o0, %l0
- call mpn_mul_1
- or %g0, %i3, %o3
- or %g0, %o0, %l1 C preserve carry value from mpn_mul_1
- or %g0, %i0, %o0
- or %g0, %i0, %o1
- or %g0, %l0, %o2
- call mpn_sub_n
- or %g0, %i2, %o3
- ret
- restore %l1, %o0, %o0 C sum carry values
- EPILOGUE(mpn_submul_1)