OpenLibm is an effort to have a high quality, portable, standalone
C mathematical library (libm
).
It can be used standalone in applications and programming language
implementations.
The project was born out of a need to have a good libm
for the
Julia programming langage that worked
consistently across compilers and operating systems, and in 32-bit and
64-bit environments.
This fork of OpenLibm is designed to be a drop-in replacement for libsystem_m.dylib
for PureDarwin. The main difference between this version and the original is that the fenv_t
structure and accompanying functions have been replaced with those from the most recent Apple Libm (v2026). This allows binary compatibility with existing code.
For the original repo, see here.
- Replace the
#if 1
s with a properPUREDARWIN
macro - Check ARM support works