Metalibm: A Mathematical Functions Code Generator

Abstract : There are several different libraries with code for mathematical functions such as exp, log, sin, cos, etc. They provide only one implementation for each function. As there is a link between accuracy and performance, that approach is not optimal. Sometimes there is a need to rewrite a function's implementation with the respect to a particular specification. In this paper we present a code generator for parametrized implementations of mathematical functions. We discuss the benefits of code generation for mathematical libraries and present how to implement mathematical functions. We also explain how the mathematical functions are usually implemented and generalize this idea for the case of arbitrary function with implementation parameters. Our code generator produces C code for parametrized functions within a known scheme: range reduction (domain splitting), polynomial approximation and reconstruction. This approach can be expanded to generate code for black-box functions, e.g. defined only by differential equations.
Type de document :
Communication dans un congrès
Hoon Hong, Chee Yap. 4th International Congress on Mathematical Software (ICMS 2004), Aug 2014, Seoul, South Korea. Springer, Mathematical Software – ICMS 2014. 4th International Congress, Seoul, South Korea, August 5-9, 2014. Proceedings, 8592, pp.713-717, 2014, Lecture Notes in Computer Science. 〈10.1007/978-3-662-44199-2_106〉
Liste complète des métadonnées

Littérature citée [13 références]  Voir  Masquer  Télécharger

https://hal.archives-ouvertes.fr/hal-01513490
Contributeur : Christoph Lauter <>
Soumis le : mardi 25 avril 2017 - 10:47:48
Dernière modification le : jeudi 27 avril 2017 - 11:38:25
Document(s) archivé(s) le : mercredi 26 juillet 2017 - 12:55:17

Fichier

metalibm_ICMS.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

Collections

Citation

Olga Kupriianova, Christoph Lauter. Metalibm: A Mathematical Functions Code Generator. Hoon Hong, Chee Yap. 4th International Congress on Mathematical Software (ICMS 2004), Aug 2014, Seoul, South Korea. Springer, Mathematical Software – ICMS 2014. 4th International Congress, Seoul, South Korea, August 5-9, 2014. Proceedings, 8592, pp.713-717, 2014, Lecture Notes in Computer Science. 〈10.1007/978-3-662-44199-2_106〉. 〈hal-01513490〉

Partager

Métriques

Consultations de la notice

91

Téléchargements de fichiers

68