Mathematical Functions C Code Generator

Authors(4) :-Vishal Limgire, Mahesh Nikam, Diksha Jadhav, Pooja Pawar

The standard mathematical library known as libm o?ers a small set of functions in a small set of precisions. Performance of libm functions is of critical importance, in particular in scienti?c and ?nancial computing libm for each new processor, a time-consuming and error-prone task. A ?rst objective of this project is therefore to automate libm development, up to the point where libms generated in a fraction. Applications often require functions not present in the libm. In such case, a composition of libm functions may be very ine?cient, or simply not possible (function de?ned by a deferential equation or by interpolation of a set of data points for instance). Even the libm functions are oared in a limited choice of implementations which will most of the time poorly match the actual needs of an application in terms of range, accuracy, performance and resource consumption. The set of functions and contexts available to programmers. The process of implementing a mathematical function into code is composed of several steps; typically range reduction, approximation, evaluation (additions, multiplications, and pre-computed constant values). Approach of this project is therefore to unify the understanding of function, sharing common mathematical, methodological, and implementation tools. In particular this will lead to on-demand generation for the same breadth of targets and with the same guarantees on numerical quality.

Authors and Affiliations

Vishal Limgire
Department of Computer Engineering, Trinity Academy of Engineering Pune, Maharashtra, India
Mahesh Nikam
Department of Computer Engineering, Trinity Academy of Engineering Pune, Maharashtra, India
Diksha Jadhav
Department of Computer Engineering, Trinity Academy of Engineering Pune, Maharashtra, India
Pooja Pawar
Department of Computer Engineering, Trinity Academy of Engineering Pune, Maharashtra, India

Processors, Code generation, Elementary function approximation, Interfaces, Reusable Software, Reusable libraries.

  1. Nicolas Brunie, Olga Kupriianova "Code generators for mathematical functions" 2015 IEEE 22nd Symposium on Computer Arithmetic.
  2. Dukhan, "PeachPy: A Python framework for developing high performance assembly kernels," in Python for High Performance and Scienti?c Computing, 2013.
  3. S. Anderson, S. Story, and N. Asta?ev, "Accurate math functions on the Intel IA-32 architecture: A performance driven design," in 7th Conference on Real Numbers and Computers, 2006, pp. 93–105.
  4. "IEEE standard for ?oating-point arithmetic," IEEE 754-2008, also ISO/IEC/IEEE 60559:2011, Aug. 2008.

Publication Details

Published in : Volume 2 | Issue 2 | March-April 2017
Date of Publication : 2017-04-30
License:  This work is licensed under a Creative Commons Attribution 4.0 International License.
Page(s) : 592-595
Manuscript Number : CSEIT1722201
Publisher : Technoscience Academy

ISSN : 2456-3307

Cite This Article :

Vishal Limgire, Mahesh Nikam, Diksha Jadhav, Pooja Pawar, "Mathematical Functions C Code Generator", International Journal of Scientific Research in Computer Science, Engineering and Information Technology (IJSRCSEIT), ISSN : 2456-3307, Volume 2, Issue 2, pp.592-595, March-April-2017.
Journal URL : http://ijsrcseit.com/CSEIT1722201

Article Preview