New scalar and vector elementary functions for the IBM System/370

Autor: Ramesh C. Agarwal, Fred G. Gustavson, James B. Shearer, J.W. Cooley, Gordon Robert Slishman, Bryant Tuckerman
Rok vydání: 1986
Předmět:
Zdroj: IBM Journal of Research and Development. 30:126-144
ISSN: 0018-8646
DOI: 10.1147/rd.302.0126
Popis: Algorithms have been developed to compute short- and long-precision elementary functions: SIN, COS, TAN, COTAN, LOG, LOG10, EXP, POWER, SQRT, ATAN, ASIN, ACOS, ATAN2, and CABS, in scalar (28 functions) and vector (22 functions) mode. They have been implemented as part of the new VS FORTRAN library recently announced along with the IBM 3090 Vector Facility. These algorithms are essentially table-based algorithms. An important feature of these algorithms is that they produce bitwise-identical results on scalar and vector System/370 machines. Of these, for five functions the computed value result is always the correctly rounded value of the infinite-precision result. For the rest of the functions, the value returned is one of the two floating-point neighbors bordering the infinite-precision result, which implies exact results if they are machine-representable. For the five correctly rounded elementary functions, scalar and vector algorithms are designed independently so as to optimize performance in each case. For other functions, the bitwise-identical constraint leads to algorithms which compromise between scalar and vector performance. The authors have been able to design algorithms where this compromise is minimal and thus achieve very good performance on both scalar and vector implementations. For test measurements on high-end System/370 machines, scalar functions aremore » always faster (sometimes by as much as a factor of 2.5) as compared to the old VS FORTRAN library. The vector functions are usually two to three times faster than scalar functions.« less
Databáze: OpenAIRE