Mercurial > gnulib
view modules/cbrtl @ 36236:28e5b28a0666
cbrtl-ieee: Work around test failure on IRIX 6.5.
* m4/cbrtl-ieee.m4: New file.
* m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
test whether cbrtl works with a minus zero argument. Replace it if not.
* lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
* modules/math (Makefile.am): Substitute REPLACE_CBRTL.
* modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
(Depends-on): Update conditions.
* modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
* lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
* doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 01 Mar 2012 04:54:18 +0100 |
parents | b169ebd5b090 |
children | fdbe3125f81a |
line wrap: on
line source
Description: cbrtl() function: cube root. Files: lib/cbrtl.c m4/cbrtl.m4 m4/cbrt.m4 m4/mathfunc.m4 Depends-on: math cbrt [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] frexpl [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] ldexpl [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] configure.ac: gl_FUNC_CBRTL if test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; then AC_LIBOBJ([cbrtl]) fi gl_MATH_MODULE_INDICATOR([cbrtl]) Makefile.am: Include: <math.h> Link: $(CBRTL_LIBM) License: LGPL Maintainer: Bruno Haible