libm: Sync with NetBSD
authorJohn Marino <draco@marino.st>
Mon, 19 Dec 2011 22:29:15 +0000 (23:29 +0100)
committerJohn Marino <draco@marino.st>
Tue, 20 Dec 2011 11:35:25 +0000 (12:35 +0100)
commit74dfd0cf5d46a8e23f4625acb701c547dd7ae88f
tree3a56f0120376d4fb432b7ae0d3758d5d8d5bbfb1
parentdd8223d70ab49e6f52571448d7a267f1a48225e9
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.
128 files changed:
include/math.h
lib/libm/arch/i386/Makefile.inc
lib/libm/arch/i386/abi.h
lib/libm/arch/i386/e_exp.S
lib/libm/arch/i386/e_expf.S
lib/libm/arch/i386/s_ceil.S
lib/libm/arch/i386/s_ceilf.S
lib/libm/arch/i386/s_copysign.S
lib/libm/arch/i386/s_copysignf.S
lib/libm/arch/i386/s_floor.S
lib/libm/arch/i386/s_floorf.S
lib/libm/arch/i386/s_ilogbl.S [new file with mode: 0644]
lib/libm/arch/i386/s_logbl.S [new file with mode: 0644]
lib/libm/arch/i386/s_modf.S [new file with mode: 0644]
lib/libm/arch/i386/s_scalbn.S
lib/libm/arch/i386/s_scalbnf.S
lib/libm/arch/i386/s_scalbnl.S [new file with mode: 0644]
lib/libm/complex/cabs.c
lib/libm/complex/cabsf.c
lib/libm/complex/cacosh.c
lib/libm/complex/cacoshf.c
lib/libm/complex/carg.c
lib/libm/complex/cargf.c
lib/libm/complex/catan.c
lib/libm/complex/catanf.c
lib/libm/complex/cimag.3
lib/libm/complex/cimag.c
lib/libm/complex/cimagf.c
lib/libm/complex/cimagl.c
lib/libm/complex/conj.3
lib/libm/complex/conj.c
lib/libm/complex/conjf.c
lib/libm/complex/conjl.c
lib/libm/complex/cproj.3
lib/libm/complex/cproj.c
lib/libm/complex/cprojf.c
lib/libm/complex/cprojl.c
lib/libm/complex/creal.3
lib/libm/complex/creal.c
lib/libm/complex/crealf.c
lib/libm/complex/creall.c
lib/libm/complex/ctan.c
lib/libm/complex/ctanf.c
lib/libm/gen/nan.c
lib/libm/gen/nanf.c
lib/libm/gen/nanl.c
lib/libm/man/Makefile.inc
lib/libm/man/ceil.3
lib/libm/man/copysign.3 [new file with mode: 0644]
lib/libm/man/exp.3
lib/libm/man/fabs.3
lib/libm/man/fenv.3
lib/libm/man/finite.3 [copied from lib/libm/man/fabs.3 with 67% similarity]
lib/libm/man/frexp.3 [copied from lib/libm/man/tanh.3 with 63% similarity]
lib/libm/man/ieee.3 [deleted file]
lib/libm/man/ilogb.3 [new file with mode: 0644]
lib/libm/man/log.3 [new file with mode: 0644]
lib/libm/man/math.3
lib/libm/man/nextafter.3 [new file with mode: 0644]
lib/libm/man/pow.3 [new file with mode: 0644]
lib/libm/man/remainder.3 [new file with mode: 0644]
lib/libm/man/round.3
lib/libm/man/scalbn.3 [new file with mode: 0644]
lib/libm/man/tanh.3
lib/libm/src/Makefile.inc
lib/libm/src/e_hypot.c
lib/libm/src/e_hypotf.c
lib/libm/src/e_j0.c
lib/libm/src/e_j0f.c
lib/libm/src/e_j1.c
lib/libm/src/e_j1f.c
lib/libm/src/e_jn.c
lib/libm/src/e_jnf.c
lib/libm/src/e_pow.c
lib/libm/src/e_powf.c
lib/libm/src/e_rem_pio2f.c
lib/libm/src/e_scalb.c
lib/libm/src/e_scalbf.c
lib/libm/src/e_sqrt.c
lib/libm/src/k_rem_pio2.c
lib/libm/src/k_rem_pio2f.c
lib/libm/src/lrint.c
lib/libm/src/lrintf.c
lib/libm/src/lround.c
lib/libm/src/lroundf.c
lib/libm/src/math_private.h
lib/libm/src/s_ceil.c
lib/libm/src/s_ceilf.c
lib/libm/src/s_cos.c
lib/libm/src/s_cosf.c
lib/libm/src/s_exp2.c [new file with mode: 0644]
lib/libm/src/s_exp2f.c [new file with mode: 0644]
lib/libm/src/s_fabsl.c [copied from lib/libm/complex/cacosh.c with 74% similarity]
lib/libm/src/s_floor.c
lib/libm/src/s_floorf.c
lib/libm/src/s_fmax.c
lib/libm/src/s_fmaxf.c
lib/libm/src/s_fmaxl.c
lib/libm/src/s_fmin.c
lib/libm/src/s_fminf.c
lib/libm/src/s_fminl.c
lib/libm/src/s_frexp.c [new file with mode: 0644]
lib/libm/src/s_frexpf.c
lib/libm/src/s_ilogb.c
lib/libm/src/s_ilogbl.c [copied from lib/libm/gen/nanl.c with 62% similarity]
lib/libm/src/s_ldexpf.c
lib/libm/src/s_logb.c
lib/libm/src/s_logbl.c [copied from lib/libm/gen/nanf.c with 61% similarity]
lib/libm/src/s_modff.c
lib/libm/src/s_nextafter.c
lib/libm/src/s_nextafterf.c
lib/libm/src/s_nextafterl.c [new file with mode: 0644]
lib/libm/src/s_nexttoward.c [new file with mode: 0644]
lib/libm/src/s_remquo.c [new file with mode: 0644]
lib/libm/src/s_remquof.c [new file with mode: 0644]
lib/libm/src/s_rint.c
lib/libm/src/s_rintf.c
lib/libm/src/s_round.c
lib/libm/src/s_roundf.c
lib/libm/src/s_scalbn.c
lib/libm/src/s_scalbnf.c
lib/libm/src/s_scalbnl.c [new file with mode: 0644]
lib/libm/src/s_sin.c
lib/libm/src/s_sinf.c
lib/libm/src/s_trunc.c
lib/libm/src/s_truncf.c
sys/cpu/i386/include/ieee.h
sys/cpu/x86_64/include/ieee.h