view modules/remainder @ 16412:a50ff00ce4ee

remainder: Support for MSVC. * lib/math.in.h (remainder): New declaration. * lib/remainder.c: New file. * m4/remainder.m4: New file. * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4. (Depends-on): Add math, round, fma. (configure.ac): Use results of gl_FUNC_REMAINDER. * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER, HAVE_DECL_REMAINDER. * modules/math (Makefile.am): Substitute GNULIB_REMAINDER, HAVE_REMAINDER, HAVE_DECL_REMAINDER. * tests/test-math-c++.cc: Check the declaration of remainder. * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5 problems are fixed.
author Bruno Haible <bruno@clisp.org>
date Sat, 25 Feb 2012 18:27:46 +0100
parents 6ff1b1c23f57
children 3843e07f6df5
line wrap: on
line source

Description:
remainder() function: floating-point remainder function.

Files:
lib/remainder.c
m4/remainder.m4
m4/mathfunc.m4

Depends-on:
math
round           [test $HAVE_REMAINDER = 0]
fma             [test $HAVE_REMAINDER = 0]

configure.ac:
gl_FUNC_REMAINDER
if test $HAVE_REMAINDER = 0; then
  AC_LIBOBJ([remainder])
fi
gl_MATH_MODULE_INDICATOR([remainder])

Makefile.am:

Include:
<math.h>

Link:
$(REMAINDER_LIBM)

License:
LGPL

Maintainer:
Bruno Haible