git: libm: Update erf, add imprecise versions of missing c++11 functions

John Marino marino at crater.dragonflybsd.org
Sun Sep 29 16:32:46 PDT 2013


commit 967141b1ac2fb9673433963efa8bfce46d990ef1
Author: John Marino <draco at marino.st>
Date:   Mon Sep 30 01:29:20 2013 +0200

    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

Summary of changes:
 lib/libc/Versions.def                    |   6 +-
 lib/libm/Makefile                        |   1 +
 lib/libm/Symbol.map                      |  15 +++
 lib/libm/src/{s_frexpl.c => imprecise.c} |  61 ++++++-----
 lib/libm/src/math.h                      | 104 +++++++++++++------
 lib/libm/src/s_erf.c                     |   6 +-
 lib/libm/src/s_erff.c                    | 171 +++++++++++++------------------
 7 files changed, 206 insertions(+), 158 deletions(-)
 copy lib/libm/src/{s_frexpl.c => imprecise.c} (57%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/967141b1ac2fb9673433963efa8bfce46d990ef1


-- 
DragonFly BSD source repository


More information about the Commits mailing list