This repository provides a C/C++ library of correctly-rounded, high-performance mathematical functions for IEEE 754 binary64 (double-precision) arithmetic. The library builds on Linux, macOS, and Windows.
The implementation is a snapshot of the src/binary64 directory of the
CORE-MATH project at commit
8199457ec422ba0587e09e0651d4e05a328ab893 from 2026-02-16, with the build and testing
infrastructure removed. The function sources are otherwise unchanged.
The lgamma function is omitted because Windows' math.h does not provide signgam.
- CMake
- GCC, the GNU Compiler Collection
- CMake (can be installed through homebrew using
brew install cmake) - XCode Command Line Tools
- CMake
- Microsoft Visual Studio 2026 configured for Desktop development with C++ and C++ Clang tools for Windows
Run ./build.sh. This creates a clean build directory and compiles the library there.
On Windows, the build uses the x64 platform.
On x86_64 and AMD64 systems, the build uses the x86-64-v3 architecture.