annotate modules/remainder @ 17582:630472a8cafd

gettimeofday: port recent C++ fix to Emacs Without this further patch, Emacs won't build due to the portcheck failing. Also, this simplifies the patch a bit. * lib/time.in.h (localtime, gmtime): Don't replace unless GNULIB_GETTIMEOFDAY. Treat them more like mktime. * lib/time.in.h (localtime, gmtime): * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): * modules/time (time.h): Don't worry about about the possibility of localtime and gmtime being absent; they're present in all C libraries we know about. * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't assume sys_time is present and has been initialized. Instead, use a hack that should work even if it hasn't been. Don't use a portcheck for gmtime or localtime; this supports the hack. * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 17 Dec 2013 12:38:54 -0800
parents 8fec0d45d1a8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12750
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 remainder() function: floating-point remainder function.
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Files:
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
5 lib/remainder.c
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
6 m4/remainder.m4
12750
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 m4/mathfunc.m4
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 Depends-on:
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
10 math
16568
8fec0d45d1a8 remainder, remainderf, remainderl: Fix computation for large quotients.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
11 isfinite [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
8fec0d45d1a8 remainder, remainderf, remainderl: Fix computation for large quotients.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
12 signbit [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
8fec0d45d1a8 remainder, remainderf, remainderl: Fix computation for large quotients.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
13 fabs [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
8fec0d45d1a8 remainder, remainderf, remainderl: Fix computation for large quotients.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
14 fmod [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
8fec0d45d1a8 remainder, remainderf, remainderl: Fix computation for large quotients.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
15 isnand [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
8fec0d45d1a8 remainder, remainderf, remainderl: Fix computation for large quotients.
Bruno Haible <bruno@clisp.org>
parents: 16497
diff changeset
16 isinf [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
12750
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 configure.ac:
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
19 gl_FUNC_REMAINDER
16497
3843e07f6df5 remainder-ieee: Work around test failure on OSF/1.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
20 if test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1; then
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
21 AC_LIBOBJ([remainder])
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
22 fi
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 12841
diff changeset
23 gl_MATH_MODULE_INDICATOR([remainder])
12750
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 Makefile.am:
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 Include:
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 <math.h>
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 Link:
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 $(REMAINDER_LIBM)
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 License:
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 LGPL
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 Maintainer:
6b4859a7c820 New modules for common <math.h> functions.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 Bruno Haible