Skip to content

High quality system independent, portable, open source libm implementation

License

Notifications You must be signed in to change notification settings

sjc/OpenLibm-for-PureDarwin

 
 

Repository files navigation

OpenLibm

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.

OpenLibm for PureDarwin

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.

TODO

  • Replace the #if 1s with a proper PUREDARWIN macro
  • Check ARM support works

About

High quality system independent, portable, open source libm implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 90.9%
  • C++ 4.8%
  • Assembly 4.0%
  • Makefile 0.3%