libm: Update erf, add imprecise versions of missing c++11 functions
authorJohn Marino <draco@marino.st>
Sun, 29 Sep 2013 23:29:20 +0000 (01:29 +0200)
committerJohn Marino <draco@marino.st>
Sun, 29 Sep 2013 23:32:21 +0000 (01:32 +0200)
commit967141b1ac2fb9673433963efa8bfce46d990ef1
treeead5cb70ea83c0afdef3472f9a1ac477eb5b674a
parentb98a330eda782c6e70ec62b38c8f160f8ab0d73a
libm: Update erf, add imprecise versions of missing c++11 functions

Provide updates to erf and erff functions.

Also add weak versions of the missing c++11 long double functions by
using taking arguments of type double.  Use of these versions will
result in a linker warning to discourage program that really need
extra precision from using them.

Note that since the c/c++ specs only guarantee that long double has
precision equal to double, code that relies on these functions having
greater precision is unportable at best and broken at worst.

Taken-from: FreeBSD
lib/libc/Versions.def
lib/libm/Makefile
lib/libm/Symbol.map
lib/libm/src/imprecise.c [new file with mode: 0644]
lib/libm/src/math.h
lib/libm/src/s_erf.c
lib/libm/src/s_erff.c