PureDarwin / Libm

High quality system independent, portable, open source libm implementation

Home Page:www.openlibm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

www.openlibm.org

License:Other


Languages

Language:C 90.9%Language:C++ 4.6%Language:Assembly 4.3%Language:Makefile 0.3%