• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (5): 77-80.

• 论文 • 上一篇    下一篇

用表驱动算法在GCC中优化实现指数函数

杨灿群 王锋 彭林 杨学军   

  • 出版日期:2007-05-01 发布日期:2010-06-02

  • Online:2007-05-01 Published:2010-06-02

摘要:

科学计算中的许多领域都需要快速而精确地计算超越函数,即exp、log、sin、tan等此类函数。本文采用表驱动算法,结合IA-64体系结构特点,在GCC中优化实现了指数函数(exp),提高了GCC编译器在IA-64系统上的浮点性能,为在IA-64和其它平台上高效实现所有超越函数打下了基础。

关键词: GCC 指数函数 表驱动算法 IA-64体系结构

Abstract:

The fast and accurate evaluation of transcendental functions (e. g. exp, log, sin, tan) is very important in the field of scientific computing. This  paper presents the table-driven implementation of the exponential function in GCC by exploiting some key features of the IA-64 architecture. This work   not only improves the floating-point performance of GCC on IA-64, but also guides the implementation of other transcendental functions both on IA-64 and  other platforms.

Key words:  (GCC, exponential function, table-driven algorithm, IA-64 architecture)