xref: /relibc/openlibm/README.md (revision ce4982acf850517075a6ddb2350bb4c016fa4002)
1# OpenLibm
2
3[![Build Status](https://travis-ci.org/JuliaLang/openlibm.svg?branch=master)](https://travis-ci.org/JuliaLang/openlibm)
4
5[OpenLibm](http://www.openlibm.org) is an effort to have a high quality, portable, standalone
6C mathematical library ([`libm`](http://en.wikipedia.org/wiki/libm)).
7It can be used standalone in applications and programming language
8implementations.
9
10The project was born out of a need to have a good `libm` for the
11[Julia programming langage](http://www.julialang.org) that worked
12consistently across compilers and operating systems, and in 32-bit and
1364-bit environments.
14
15## Platform support
16
17OpenLibm builds on Linux, Mac OS X, Windows, and FreeBSD. It builds
18with both GCC and clang. Although largely tested on x86, it also
19includes experimental support for ARM.
20
21## Build instructions
22
231. Use `make` to build OpenLibm.
242. Use `make USEGCC=1` to build with GCC. This is the default on
25   Linux and Windows.
263. Use `make USECLANG=1` to build with clang. This is the default on OS X
27   and FreeBSD.
28