arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · cs.MS

SLEEF: A Portable Vectorized Library of C Standard Mathematical Functions

Naoki Shibata, Francesco Petrogalli

See on the map

Abstract

In this paper, we present techniques used to implement our portable vectorized library of C standard mathematical functions written entirely in C language. In order to make the library portable while maintaining good performance, intrinsic functions of vector extensions are abstracted by inline functions or preprocessor macros. We implemented the functions so that they can use sub-features of vector extensions such as fused multiply-add, mask registers and extraction of mantissa. In order to make computation with SIMD instructions efficient, the library only uses a small number of conditional branches, and all the computation paths are vectorized. We devised a variation of the Payne-Hanek argument reduction for trigonometric functions and a floating point remainder, both of which are suitable for vector computation. We compare the performance of our library to Intel SVML.

References

The reference list for this paper has not been collected yet.

Cited by 2

2 papers in the index cite this (Semantic Scholar counts 31 in total).

The cited-by list is still filling in while reference lists are collected.

More like this