git: libm: bring in 16 complex functions from NetBSD

John Marino marino at crater.dragonflybsd.org
Sun Nov 30 15:47:28 PST 2014


commit 51a20a6e36a735a8fdc39066a0e405c51e4fc539
Author: John Marino <draco at marino.st>
Date:   Sun Nov 30 22:23:15 2014 +0100

    libm: bring in 16 complex functions from NetBSD
    
    FreeBSD is still missing a number of (obscure) complex functions that
    causes GCC conclude that C99 is not supported.  Seven weeks ago, NetBSD
    brought the functions into their base.
    
    To avoid a repeat of the unholy mixture of libm from FreeBSD and NetBSD
    that we had before, I've created a separate directory for NetBSD functions
    called "gaps".  If/when FreeBSD acquires these functions, we can remove
    files from "gaps" as we sync their equivalents.  The NetBSD sources were
    modified as follows:
      * On the man pages, references to the float and double versions of the
        functions were removed when only the long double version was imported.
        This includes singular/plural changes, and file/function name changes.
      * Changed "#include <math.h>" to "#include "math.h"
      * Removed the include for namespace.h
      * Removed all "#if 0" blocks
    
    The sixteen functions have symbol versions of DF402.0 and are:
      * cpow    cpowf   cpowl
      * clog    clogf   clogl
      * cacosl  casinl  catanl
      * ccoshl  csinhl  ctanhl
      * ccosl   csinl   ctanl
      * cexpl

Summary of changes:
 lib/libm/Makefile            |  16 ++++++
 lib/libm/Symbol.map          |  16 ++++++
 lib/libm/gaps/cacosl.3       |  39 +++++++++++++
 lib/libm/gaps/cacosl.c       |  44 +++++++++++++++
 lib/libm/gaps/casinl.3       |  40 ++++++++++++++
 lib/libm/gaps/casinl.c       |  61 +++++++++++++++++++++
 lib/libm/gaps/catanl.3       |  40 ++++++++++++++
 lib/libm/gaps/catanl.c       |  72 ++++++++++++++++++++++++
 lib/libm/gaps/ccoshl.3       |  35 ++++++++++++
 lib/libm/gaps/ccoshl.c       |  45 +++++++++++++++
 lib/libm/gaps/ccosl.3        |  35 ++++++++++++
 lib/libm/gaps/ccosl.c        |  45 +++++++++++++++
 lib/libm/gaps/cephes_subrl.c | 128 +++++++++++++++++++++++++++++++++++++++++++
 lib/libm/gaps/cephes_subrl.h |   9 +++
 lib/libm/gaps/cexpl.3        |  37 +++++++++++++
 lib/libm/gaps/cexpl.c        |  46 ++++++++++++++++
 lib/libm/gaps/clog.3         |  46 ++++++++++++++++
 lib/libm/gaps/clog.c         |  46 ++++++++++++++++
 lib/libm/gaps/clogf.c        |  46 ++++++++++++++++
 lib/libm/gaps/clogl.c        |  46 ++++++++++++++++
 lib/libm/gaps/cpow.3         |  43 +++++++++++++++
 lib/libm/gaps/cpow.c         |  56 +++++++++++++++++++
 lib/libm/gaps/cpowf.c        |  56 +++++++++++++++++++
 lib/libm/gaps/cpowl.c        |  56 +++++++++++++++++++
 lib/libm/gaps/csinhl.3       |  35 ++++++++++++
 lib/libm/gaps/csinhl.c       |  45 +++++++++++++++
 lib/libm/gaps/csinl.3        |  35 ++++++++++++
 lib/libm/gaps/csinl.c        |  45 +++++++++++++++
 lib/libm/gaps/ctanhl.3       |  35 ++++++++++++
 lib/libm/gaps/ctanhl.c       |  47 ++++++++++++++++
 lib/libm/gaps/ctanl.3        |  35 ++++++++++++
 lib/libm/gaps/ctanl.c        |  58 ++++++++++++++++++++
 lib/libm/src/complex.h       |  21 +++++++
 33 files changed, 1459 insertions(+)
 create mode 100644 lib/libm/gaps/cacosl.3
 create mode 100644 lib/libm/gaps/cacosl.c
 create mode 100644 lib/libm/gaps/casinl.3
 create mode 100644 lib/libm/gaps/casinl.c
 create mode 100644 lib/libm/gaps/catanl.3
 create mode 100644 lib/libm/gaps/catanl.c
 create mode 100644 lib/libm/gaps/ccoshl.3
 create mode 100644 lib/libm/gaps/ccoshl.c
 create mode 100644 lib/libm/gaps/ccosl.3
 create mode 100644 lib/libm/gaps/ccosl.c
 create mode 100644 lib/libm/gaps/cephes_subrl.c
 create mode 100644 lib/libm/gaps/cephes_subrl.h
 create mode 100644 lib/libm/gaps/cexpl.3
 create mode 100644 lib/libm/gaps/cexpl.c
 create mode 100644 lib/libm/gaps/clog.3
 create mode 100644 lib/libm/gaps/clog.c
 create mode 100644 lib/libm/gaps/clogf.c
 create mode 100644 lib/libm/gaps/clogl.c
 create mode 100644 lib/libm/gaps/cpow.3
 create mode 100644 lib/libm/gaps/cpow.c
 create mode 100644 lib/libm/gaps/cpowf.c
 create mode 100644 lib/libm/gaps/cpowl.c
 create mode 100644 lib/libm/gaps/csinhl.3
 create mode 100644 lib/libm/gaps/csinhl.c
 create mode 100644 lib/libm/gaps/csinl.3
 create mode 100644 lib/libm/gaps/csinl.c
 create mode 100644 lib/libm/gaps/ctanhl.3
 create mode 100644 lib/libm/gaps/ctanhl.c
 create mode 100644 lib/libm/gaps/ctanl.3
 create mode 100644 lib/libm/gaps/ctanl.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51a20a6e36a735a8fdc39066a0e405c51e4fc539


-- 
DragonFly BSD source repository



More information about the Commits mailing list