ALGORITHM 719 - MULTIPRECISION TRANSLATION AND EXECUTION OF FORTRAN PROGRAMS

被引:106
作者
BAILEY, DH
机构
[1] NAS Apphed Research Branch, NASA Ames Research Center, Moffett Field
来源
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE | 1993年 / 19卷 / 03期
关键词
ALGORITHMS; PERFORMANCE; MULTIPLE-PRECISION COMPUTATION; MULTIPRECISION ARITHMETIC;
D O I
10.1145/155743.155767
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper describes two Fortran utilities for multiprecision computation. The first is a package of Fortran subroutines that perform a variety of arithmetic operations and transcendental functions on floating point numbers of arbitrarily high precision. This package is in some cases over 200 times faster than that of certain other packages that have been developed for this purpose. The second utility is a translator program, which facilitates the conversion of ordinary Fortran programs to use this package. By means of source directives (special comments) in the original Fortran program, the user declares the precision level and specifies which variables in each subprogram are to be treated as multiprecision. The translator program reads this source program and outputs a program with the appropriate multiprecision subroutine calls. This translator supports multiprecision integer, real, and complex datatypes. The required array space for multiprecision data types is automatically allocated. In the evaluation of computational expressions, all of the usual conventions for operator precedence and mixed mode operations are upheld. Furthermore, most of the Fortran-77 intrinsics, such as ABS, MOD, NINT, COS, EXP are supported and produce true multiprecision values.
引用
收藏
页码:288 / 319
页数:32
相关论文
共 32 条
[21]  
KANADA Y, 1989, COMMUNICATION
[22]  
Knuth D., 1981, ART COMPUTER PROGRAM, V2nd
[23]   DESINGULARIZATION OF PERIODIC VORTEX SHEET ROLL-UP [J].
KRASNY, R .
JOURNAL OF COMPUTATIONAL PHYSICS, 1986, 65 (02) :292-313
[24]  
LENSTRA AK, 1990, 22ND P ANN ACM S THE, P564
[25]  
ODLYZKO AM, 1985, J REINE ANGEW MATH, V357, P138
[26]  
RIVEST RL, 1978, COMMUN ACM, V21, P120, DOI [10.1145/359340.359342, 10.1145/357980.358017]
[27]   COMPUTATION OF PI USING ARITHMETIC-GEOMETRIC MEAN [J].
SALAMIN, E .
MATHEMATICS OF COMPUTATION, 1976, 30 (135) :565-570
[28]  
SLOWINSKI D, 1991, COMMUNICATION
[29]   ALGORITHM 693 - A FORTRAN PACKAGE FOR FLOATING-POINT MULTIPLE-PRECISION ARITHMETIC [J].
SMITH, DM .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1991, 17 (02) :273-283
[30]  
VARGA R. S., 1990, SCI COMPUTATION MATH