- Download the latest version
- Latest documentation on the web
- GitHub repository
- Mailing list
- Discussion forum
-
Introduction
- Overview
- Supported environments
- Credit
- Partners
- License
- History
- Related projects
- Publication
- Compiling and installing the library
- Math library reference
- DFT library reference
- Other tools included in the package
- Benchmark results
- Additional notes
SLEEF stands for SIMD Library for Evaluating Elementary Functions. It implements vectorized versions of all C 151 real floating point math functions. It can utilize SIMD instructions of modern processors. SLEEF is designed to fully utilize SIMD computation by reducing the use of conditional branches and scatter / gather memory access. Our benchmarks show that the performance of SLEEF is comparable to that of the best commercial library. Unlike vendor-tuned libraries, SLEEF is portable: it can be easily ported to other architectures by writing a helper file, which is a thin abstraction layer of SIMD intrinsics. SLEEF is also designed to work with various operating systems and compilers.
The library contains subroutines for all C real FP math functions in double precision and single precision. Different accuracy of the results can be chosen for a subset of the elementary functions; for this subset there are versions with up to 1 ulp error (which is the maximum error, not the average) and versions with a few ulp error. Obviously, less accurate versions are faster. For non-finite inputs and outputs, the library should return the same results as libm as specified in the C standard. The library is rigorously tested if the evaluation error is within the designed limit. The library is tested against high-precision evaluation using the libmpfr library . Especially, we carefully checked the error of the trigonometric functions when the arguments are close to an integral multiple of π / 2.
SLEEF also includes subroutines for discrete Fourier transform (DFT). These subroutines are fully vectorized, heavily unrolled, and parallelized so that modern SIMD instructions and multiple cores can be utilized for efficient computation. It has an API similar to that of FFTW for easy migration, and distributed under BSL , which is a permissive open source license. The subroutines can utilize long vectors up to bits, and even longer vectors can be utilized by a small modification. The helper files for abstracting SIMD intrinsics are shared with SLEEF libm, and thus it is easy to port DFT subroutines to other architectures. Preliminary results of benchmark are now available.
Supported environments
This library currently supports several SIMD architectures:
- (x) – SSE2, SSE4.1 , AVX, FMA4, AVX2 FMA3, AVX F
- AArch – Advanced SIMD, SVE
- (AArch) – NEON
- (PowerPC) – VSX
Table of contents
)
)
(Table 1.1: Environment support matrix)
GIPHY App Key not set. Please check settings