git: libm: Sync with NetBSD

John Marino marino at crater.dragonflybsd.org
Tue Dec 20 03:38:06 PST 2011


commit 74dfd0cf5d46a8e23f4625acb701c547dd7ae88f
Author: John Marino <draco at marino.st>
Date:   Mon Dec 19 23:29:15 2011 +0100

    libm: Sync with NetBSD
    
    Adds the following assembly function: logbl, ilogbl, modf, scalbnl
    Adds the following source functions: exp2, exp2f, frexp, nextafterl,
      nexttoward, requo, remquof, and fabsl
    Captures all the bug fixes since last sync
    Synchronizes with current NetBSD versions where possible.
    
    Required to fix modern gcc/fortran and other packages.
    Gets closer to C99 capability.

Summary of changes:
 include/math.h                   |   15 +-
 lib/libm/arch/i386/Makefile.inc  |    1 +
 lib/libm/arch/i386/abi.h         |   17 +-
 lib/libm/arch/i386/e_exp.S       |   70 ++---
 lib/libm/arch/i386/e_expf.S      |   28 ++-
 lib/libm/arch/i386/s_ceil.S      |    4 +-
 lib/libm/arch/i386/s_ceilf.S     |    4 +-
 lib/libm/arch/i386/s_copysign.S  |   17 +-
 lib/libm/arch/i386/s_copysignf.S |   28 +--
 lib/libm/arch/i386/s_floor.S     |    4 +-
 lib/libm/arch/i386/s_floorf.S    |    4 +-
 lib/libm/arch/i386/s_ilogbl.S    |   25 ++
 lib/libm/arch/i386/s_logbl.S     |   17 +
 lib/libm/arch/i386/s_modf.S      |  104 ++++++
 lib/libm/arch/i386/s_scalbn.S    |    2 +-
 lib/libm/arch/i386/s_scalbnf.S   |    2 +-
 lib/libm/arch/i386/s_scalbnl.S   |   24 ++
 lib/libm/complex/cabs.c          |    3 +-
 lib/libm/complex/cabsf.c         |    3 +-
 lib/libm/complex/cacosh.c        |    2 +-
 lib/libm/complex/cacoshf.c       |    2 +-
 lib/libm/complex/carg.c          |    2 +-
 lib/libm/complex/cargf.c         |    2 +-
 lib/libm/complex/catan.c         |    5 +-
 lib/libm/complex/catanf.c        |    5 +-
 lib/libm/complex/cimag.3         |    4 +-
 lib/libm/complex/cimag.c         |   35 +--
 lib/libm/complex/cimagf.c        |   35 +--
 lib/libm/complex/cimagl.c        |   36 ++-
 lib/libm/complex/conj.3          |    6 +-
 lib/libm/complex/conj.c          |   37 +--
 lib/libm/complex/conjf.c         |   37 +--
 lib/libm/complex/conjl.c         |   38 ++-
 lib/libm/complex/cproj.3         |   48 +--
 lib/libm/complex/cproj.c         |   59 +++--
 lib/libm/complex/cprojf.c        |   57 +++-
 lib/libm/complex/cprojl.c        |   56 +++-
 lib/libm/complex/creal.3         |    4 +-
 lib/libm/complex/creal.c         |   36 +--
 lib/libm/complex/crealf.c        |   36 +--
 lib/libm/complex/creall.c        |   37 ++-
 lib/libm/complex/ctan.c          |    6 +-
 lib/libm/complex/ctanf.c         |    6 +-
 lib/libm/gen/nan.c               |   12 +-
 lib/libm/gen/nanf.c              |   14 +-
 lib/libm/gen/nanl.c              |   14 +-
 lib/libm/man/Makefile.inc        |   25 +-
 lib/libm/man/ceil.3              |   31 ++-
 lib/libm/man/copysign.3          |   90 ++++++
 lib/libm/man/exp.3               |  286 +++--------------
 lib/libm/man/fabs.3              |    4 +-
 lib/libm/man/fenv.3              |   32 +-
 lib/libm/man/finite.3            |   82 +++++
 lib/libm/man/frexp.3             |   85 +++++
 lib/libm/man/ieee.3              |  169 ----------
 lib/libm/man/ilogb.3             |  111 +++++++
 lib/libm/man/log.3               |  170 ++++++++++
 lib/libm/man/math.3              |  653 ++++++++++++++++----------------------
 lib/libm/man/nextafter.3         |  126 ++++++++
 lib/libm/man/pow.3               |   80 +++++
 lib/libm/man/remainder.3         |  144 +++++++++
 lib/libm/man/round.3             |   13 +-
 lib/libm/man/scalbn.3            |  108 +++++++
 lib/libm/man/tanh.3              |   42 ++-
 lib/libm/src/Makefile.inc        |    2 +
 lib/libm/src/e_hypot.c           |   17 +-
 lib/libm/src/e_hypotf.c          |   13 +-
 lib/libm/src/e_j0.c              |    3 +-
 lib/libm/src/e_j0f.c             |    3 +-
 lib/libm/src/e_j1.c              |    3 +-
 lib/libm/src/e_j1f.c             |    3 +-
 lib/libm/src/e_jn.c              |   10 +-
 lib/libm/src/e_jnf.c             |   12 +-
 lib/libm/src/e_pow.c             |   17 +-
 lib/libm/src/e_powf.c            |   15 +-
 lib/libm/src/e_rem_pio2f.c       |    5 +-
 lib/libm/src/e_scalb.c           |    3 +-
 lib/libm/src/e_scalbf.c          |    3 +-
 lib/libm/src/e_sqrt.c            |    5 +-
 lib/libm/src/k_rem_pio2.c        |    3 +-
 lib/libm/src/k_rem_pio2f.c       |    3 +-
 lib/libm/src/lrint.c             |    7 +-
 lib/libm/src/lrintf.c            |    7 +-
 lib/libm/src/lround.c            |    7 +-
 lib/libm/src/lroundf.c           |    7 +-
 lib/libm/src/math_private.h      |   94 ++++--
 lib/libm/src/s_ceil.c            |   27 +-
 lib/libm/src/s_ceilf.c           |   17 +-
 lib/libm/src/s_cos.c             |    3 +-
 lib/libm/src/s_cosf.c            |    3 +-
 lib/libm/src/s_exp2.c            |  397 +++++++++++++++++++++++
 lib/libm/src/s_exp2f.c           |  135 ++++++++
 lib/libm/src/s_fabsl.c           |   49 +++
 lib/libm/src/s_floor.c           |   27 +-
 lib/libm/src/s_floorf.c          |   17 +-
 lib/libm/src/s_fmax.c            |   22 +-
 lib/libm/src/s_fmaxf.c           |   24 +-
 lib/libm/src/s_fmaxl.c           |   33 ++-
 lib/libm/src/s_fmin.c            |   22 +-
 lib/libm/src/s_fminf.c           |   24 +-
 lib/libm/src/s_fminl.c           |   33 ++-
 lib/libm/src/s_frexp.c           |   49 +++
 lib/libm/src/s_frexpf.c          |    5 +-
 lib/libm/src/s_ilogb.c           |    3 +-
 lib/libm/src/s_ilogbl.c          |   71 ++++
 lib/libm/src/s_ldexpf.c          |    9 +-
 lib/libm/src/s_logb.c            |    3 +-
 lib/libm/src/s_logbl.c           |   71 ++++
 lib/libm/src/s_modff.c           |   15 +-
 lib/libm/src/s_nextafter.c       |    5 +-
 lib/libm/src/s_nextafterf.c      |    5 +-
 lib/libm/src/s_nextafterl.c      |   91 ++++++
 lib/libm/src/s_nexttoward.c      |   86 +++++
 lib/libm/src/s_remquo.c          |  153 +++++++++
 lib/libm/src/s_remquof.c         |  120 +++++++
 lib/libm/src/s_rint.c            |   25 +-
 lib/libm/src/s_rintf.c           |   17 +-
 lib/libm/src/s_round.c           |   17 +-
 lib/libm/src/s_roundf.c          |   17 +-
 lib/libm/src/s_scalbn.c          |    7 +-
 lib/libm/src/s_scalbnf.c         |    3 +-
 lib/libm/src/s_scalbnl.c         |   97 ++++++
 lib/libm/src/s_sin.c             |    3 +-
 lib/libm/src/s_sinf.c            |    3 +-
 lib/libm/src/s_trunc.c           |   19 +-
 lib/libm/src/s_truncf.c          |   15 +-
 sys/cpu/i386/include/ieee.h      |   12 +-
 sys/cpu/x86_64/include/ieee.h    |   12 +-
 128 files changed, 3628 insertions(+), 1634 deletions(-)
 create mode 100644 lib/libm/arch/i386/s_ilogbl.S
 create mode 100644 lib/libm/arch/i386/s_logbl.S
 create mode 100644 lib/libm/arch/i386/s_modf.S
 create mode 100644 lib/libm/arch/i386/s_scalbnl.S
 create mode 100644 lib/libm/man/copysign.3
 create mode 100644 lib/libm/man/finite.3
 create mode 100644 lib/libm/man/frexp.3
 delete mode 100644 lib/libm/man/ieee.3
 create mode 100644 lib/libm/man/ilogb.3
 create mode 100644 lib/libm/man/log.3
 create mode 100644 lib/libm/man/nextafter.3
 create mode 100644 lib/libm/man/pow.3
 create mode 100644 lib/libm/man/remainder.3
 create mode 100644 lib/libm/man/scalbn.3
 create mode 100644 lib/libm/src/s_exp2.c
 create mode 100644 lib/libm/src/s_exp2f.c
 create mode 100644 lib/libm/src/s_fabsl.c
 create mode 100644 lib/libm/src/s_frexp.c
 create mode 100644 lib/libm/src/s_ilogbl.c
 create mode 100644 lib/libm/src/s_logbl.c
 create mode 100644 lib/libm/src/s_nextafterl.c
 create mode 100644 lib/libm/src/s_nexttoward.c
 create mode 100644 lib/libm/src/s_remquo.c
 create mode 100644 lib/libm/src/s_remquof.c
 create mode 100644 lib/libm/src/s_scalbnl.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/74dfd0cf5d46a8e23f4625acb701c547dd7ae88f


-- 
DragonFly BSD source repository





More information about the Commits mailing list