fix broken msun link, add wikipedia link

...and various newline tweaks
to make the source more readable
(see http://rhodesmill.org/brandon/2012/one-sentence-per-line/)
This commit is contained in:
Waldir Pimenta 2014-06-20 19:09:44 +01:00
parent f418860958
commit e27d5a2c61

View file

@ -1,34 +1,39 @@
## OpenLibm ## OpenLibm
OpenLibm is an effort to have a high quality, portable, standalone OpenLibm is an effort to have a high quality, portable, standalone
`libm` library. It can be used standalone in applications and C mathematical library ([`libm`](http://en.wikipedia.org/wiki/libm)).
programming language implementations. 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 The project was born out of a need to have a good `libm`
[Julia programming langage](http://www.julialang.org) that worked for the [Julia programming langage](http://www.julialang.org)
consistently across compilers and operating systems, and in 32-bit and that worked consistently across compilers and operating systems,
64-bit environments. and in 32-bit and 64-bit environments.
### History ### History
The OpenLibm code derives from the [FreeBSD The OpenLibm code derives from the
msun](http://ftp.freebsd.org/pub/FreeBSD/FreeBSD/development/FreeBSD-CVS/src/lib/msun/) [FreeBSD msun](http://svnweb.freebsd.org/base/head/lib/msun/) implementation,
implementation, which in turn derives from [FDLIBM which in turn derives from [FDLIBM 5.3](http://www.netlib.org/fdlibm/).
5.3](http://www.netlib.org/fdlibm/). As a result, it includes a number As a result, it includes a number of fixes and updates to FDLIBM
of fixes and updates to FDLIBM that have accumulated over the years in that have accumulated over the years in `msun`,
`msun`, and optimized versions of many functions. and optimized versions of many functions.
### Platform support ### Platform support
OpenLibm builds on Linux, Mac OS X, and Windows, and with little OpenLibm builds on Linux, Mac OS X, and Windows,
effort, should build on FreeBSD as well. It builds with both, GCC and and with little effort, should build on FreeBSD as well.
clang. Although largely tested on x86, it also includes experimental It builds with both GCC and clang.
support for ARM. The original `msun` also includes support for mips, Although largely tested on x86,
sparc64, powerpc, ia64, and alpha. These are present in the OpenLibm it also includes experimental support for ARM.
source tree, but no attempt has been made to build any of these. The original `msun` also includes support for
mips, sparc64, powerpc, ia64, and alpha.
These are present in the OpenLibm source tree,
but no attempt has been made to build any of these.
### Build instructions ### Build instructions
1. `make` or `make USEGCC=1` to build with GCC. This is the default on 1. `make` or `make USEGCC=1` to build with GCC.
Linux and Windows. This is the default on Linux and Windows.
2. `make USECLANG=1` to build with clang. This is the default on OS X. 2. `make USECLANG=1` to build with clang.
This is the default on OS X.