view modules/expl @ 16620:4a578c3945b8

New module 'exp2l'. * lib/math.in.h (exp2l): New declaration. * lib/exp2l.c: New file. * lib/expl-table.c: New file, extracted from lib/expl.c. * lib/expl.c (gl_expl_table): New declaration. (expl): Remove expl_table. Update reference. * m4/exp2l.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L. * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L. * modules/exp2l: New file. * modules/expl (Files): Add lib/expl-table.c. (configure.ac): Compile also expl-table.c. * tests/test-math-c++.cc: Check the declaration of exp2l. * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX problem.
author Bruno Haible <bruno@clisp.org>
date Fri, 09 Mar 2012 01:13:40 +0100
parents 6c7c671909d3
children 1f14c6dd175d
line wrap: on
line source

Description:
expl() function: exponential function with long double argument.

Files:
lib/expl.c
lib/expl-table.c
m4/expl.m4

Depends-on:
math
extensions
exp             [test $HAVE_EXPL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
float           [test $HAVE_EXPL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
isnanl          [test $HAVE_EXPL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
roundl          [test $HAVE_EXPL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
ldexpl          [test $HAVE_EXPL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]

configure.ac:
gl_FUNC_EXPL
if test $HAVE_EXPL = 0; then
  AC_LIBOBJ([expl])
  AC_LIBOBJ([expl-table])
fi
gl_MATH_MODULE_INDICATOR([expl])

Makefile.am:

Include:
<math.h>

Link:
$(EXPL_LIBM)

License:
LGPL

Maintainer:
Bruno Haible