annotate modules/math @ 13983:ace70389132d

New module 'trunc-ieee'. * modules/trunc-ieee: New file. * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test whether trunc works according to ISO C 99 with IEC 60559. * m4/trunc-ieee.m4: New file. * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC. * modules/math (Makefile.am): Substitute REPLACE_TRUNC. * modules/trunc-ieee-tests: New file. * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c. * tests/test-trunc1.c (main): Remove signbit tests. * modules/trunc-tests (Depends-on): Remove 'signbit'. * doc/posix-functions/trunc.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Tue, 21 Dec 2010 18:30:16 +0100
parents 2c35dd380b9e
children 94601a984b2b b4cc3c41ca79
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 A GNU-like <math.h>.
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Files:
9255
590a8ac4bca4 Rename math_.h to math.in.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
5 lib/math.in.h
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 m4/math_h.m4
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 Depends-on:
12726
d6da6e5f2f62 math: add portability warnings for classification macros
Eric Blake <ebb9@byu.net>
parents: 12422
diff changeset
9 arg-nonnull
12936
9be4aca41cee math: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12927
diff changeset
10 c++defs
8995
1025663f7658 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents: 8819
diff changeset
11 include_next
12726
d6da6e5f2f62 math: add portability warnings for classification macros
Eric Blake <ebb9@byu.net>
parents: 12422
diff changeset
12 warn-on-use
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 configure.ac:
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 gl_MATH_H
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 Makefile.am:
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 BUILT_SOURCES += math.h
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 # We need the following in order to create <math.h> when the system
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 # doesn't have one that works with the given compiler.
12936
9be4aca41cee math: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12927
diff changeset
22 math.h: math.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11583
diff changeset
23 $(AM_V_GEN)rm -f $@-t $@ && \
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
10836
08a197428e92 Attempt to work around another AIX 5.3, 6.1 compiler bug with include_next.
Bruno Haible <bruno@clisp.org>
parents: 10667
diff changeset
25 sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
10375
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 10287
diff changeset
26 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
13761
a19ace3ba849 Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents: 13288
diff changeset
27 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
11583
dc80f2cc1327 Second attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
Eric Blake <ebb9@byu.net>
parents: 10836
diff changeset
28 -e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
29 -e 's|@''GNULIB_ACOSL''@|$(GNULIB_ACOSL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
30 -e 's|@''GNULIB_ASINL''@|$(GNULIB_ASINL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
31 -e 's|@''GNULIB_ATANL''@|$(GNULIB_ATANL)|g' \
13982
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
32 -e 's|@''GNULIB_CEIL''@|$(GNULIB_CEIL)|g' \
9295
a19e5992f6f0 New module 'ceilf'.
Bruno Haible <bruno@clisp.org>
parents: 9293
diff changeset
33 -e 's|@''GNULIB_CEILF''@|$(GNULIB_CEILF)|g' \
9297
3191943555eb New module 'ceill'.
Bruno Haible <bruno@clisp.org>
parents: 9295
diff changeset
34 -e 's|@''GNULIB_CEILL''@|$(GNULIB_CEILL)|g' \
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
35 -e 's|@''GNULIB_COSL''@|$(GNULIB_COSL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
36 -e 's|@''GNULIB_EXPL''@|$(GNULIB_EXPL)|g' \
13981
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13979
diff changeset
37 -e 's|@''GNULIB_FLOOR''@|$(GNULIB_FLOOR)|g' \
9291
5828ff66b473 New module 'floorf'.
Bruno Haible <bruno@clisp.org>
parents: 9287
diff changeset
38 -e 's|@''GNULIB_FLOORF''@|$(GNULIB_FLOORF)|g' \
9293
b4e0b96fc4ba New module 'floorl'.
Bruno Haible <bruno@clisp.org>
parents: 9291
diff changeset
39 -e 's|@''GNULIB_FLOORL''@|$(GNULIB_FLOORL)|g' \
8491
af98e0b44387 New module 'frexp'.
Bruno Haible <bruno@clisp.org>
parents: 8359
diff changeset
40 -e 's|@''GNULIB_FREXP''@|$(GNULIB_FREXP)|g' \
8497
280cabcbb0ca New module 'frexpl'.
Bruno Haible <bruno@clisp.org>
parents: 8491
diff changeset
41 -e 's|@''GNULIB_FREXPL''@|$(GNULIB_FREXPL)|g' \
9423
fa47aa8bb105 Use REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
Bruno Haible <bruno@clisp.org>
parents: 9420
diff changeset
42 -e 's|@''GNULIB_ISFINITE''@|$(GNULIB_ISFINITE)|g' \
10287
7a5cfea8469f Add isinf module.
Ben Pfaff <blp@cs.stanford.edu>
parents: 10267
diff changeset
43 -e 's|@''GNULIB_ISINF''@|$(GNULIB_ISINF)|g' \
10267
bf763f10f63c Add isnan module.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9913
diff changeset
44 -e 's|@''GNULIB_ISNAN''@|$(GNULIB_ISNAN)|g' \
10667
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
45 -e 's|@''GNULIB_ISNANF''@|$(GNULIB_ISNANF)|g' \
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
46 -e 's|@''GNULIB_ISNAND''@|$(GNULIB_ISNAND)|g' \
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
47 -e 's|@''GNULIB_ISNANL''@|$(GNULIB_ISNANL)|g' \
8588
84d2dbfe5855 New module 'ldexpl'.
Bruno Haible <bruno@clisp.org>
parents: 8547
diff changeset
48 -e 's|@''GNULIB_LDEXPL''@|$(GNULIB_LDEXPL)|g' \
12927
d3ea0f2aacfc logb: Provide missing declaration for Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
49 -e 's|@''GNULIB_LOGB''@|$(GNULIB_LOGB)|g' \
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
50 -e 's|@''GNULIB_LOGL''@|$(GNULIB_LOGL)|g' \
9375
96fea5b2eb11 Implement 'round', 'roundf', 'roundl' modules.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9297
diff changeset
51 -e 's|@''GNULIB_ROUND''@|$(GNULIB_ROUND)|g' \
96fea5b2eb11 Implement 'round', 'roundf', 'roundl' modules.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9297
diff changeset
52 -e 's|@''GNULIB_ROUNDF''@|$(GNULIB_ROUNDF)|g' \
96fea5b2eb11 Implement 'round', 'roundf', 'roundl' modules.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9297
diff changeset
53 -e 's|@''GNULIB_ROUNDL''@|$(GNULIB_ROUNDL)|g' \
8652
9aabfa2b3200 New module 'signbit'.
Bruno Haible <bruno@clisp.org>
parents: 8588
diff changeset
54 -e 's|@''GNULIB_SIGNBIT''@|$(GNULIB_SIGNBIT)|g' \
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
55 -e 's|@''GNULIB_SINL''@|$(GNULIB_SINL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
56 -e 's|@''GNULIB_SQRTL''@|$(GNULIB_SQRTL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
57 -e 's|@''GNULIB_TANL''@|$(GNULIB_TANL)|g' \
9282
9a26e94f946a New module 'trunc'.
Bruno Haible <bruno@clisp.org>
parents: 9255
diff changeset
58 -e 's|@''GNULIB_TRUNC''@|$(GNULIB_TRUNC)|g' \
9285
79e67a783774 New module 'truncf'.
Bruno Haible <bruno@clisp.org>
parents: 9282
diff changeset
59 -e 's|@''GNULIB_TRUNCF''@|$(GNULIB_TRUNCF)|g' \
9287
ec7800681aff New module 'truncl'.
Bruno Haible <bruno@clisp.org>
parents: 9285
diff changeset
60 -e 's|@''GNULIB_TRUNCL''@|$(GNULIB_TRUNCL)|g' \
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
61 -e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
62 -e 's|@''HAVE_ASINL''@|$(HAVE_ASINL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
63 -e 's|@''HAVE_ATANL''@|$(HAVE_ATANL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
64 -e 's|@''HAVE_COSL''@|$(HAVE_COSL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
65 -e 's|@''HAVE_EXPL''@|$(HAVE_EXPL)|g' \
10667
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
66 -e 's|@''HAVE_ISNANF''@|$(HAVE_ISNANF)|g' \
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
67 -e 's|@''HAVE_ISNAND''@|$(HAVE_ISNAND)|g' \
678640901735 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
68 -e 's|@''HAVE_ISNANL''@|$(HAVE_ISNANL)|g' \
12752
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
69 -e 's|@''HAVE_LOGL''@|$(HAVE_LOGL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
70 -e 's|@''HAVE_SINL''@|$(HAVE_SINL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
71 -e 's|@''HAVE_SQRTL''@|$(HAVE_SQRTL)|g' \
73d9dd27dc41 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
Bruno Haible <bruno@clisp.org>
parents: 12726
diff changeset
72 -e 's|@''HAVE_TANL''@|$(HAVE_TANL)|g' \
8359
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
73 -e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
74 -e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
75 -e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
76 -e 's|@''HAVE_DECL_CEILF''@|$(HAVE_DECL_CEILF)|g' \
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
77 -e 's|@''HAVE_DECL_CEILL''@|$(HAVE_DECL_CEILL)|g' \
8359
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
78 -e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
79 -e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
80 -e 's|@''HAVE_DECL_FLOORF''@|$(HAVE_DECL_FLOORF)|g' \
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
81 -e 's|@''HAVE_DECL_FLOORL''@|$(HAVE_DECL_FLOORL)|g' \
8359
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
82 -e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
83 -e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
12927
d3ea0f2aacfc logb: Provide missing declaration for Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
84 -e 's|@''HAVE_DECL_LOGB''@|$(HAVE_DECL_LOGB)|g' \
8359
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
85 -e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
86 -e 's|@''HAVE_DECL_ROUND''@|$(HAVE_DECL_ROUND)|g' \
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
87 -e 's|@''HAVE_DECL_ROUNDF''@|$(HAVE_DECL_ROUNDF)|g' \
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
88 -e 's|@''HAVE_DECL_ROUNDL''@|$(HAVE_DECL_ROUNDL)|g' \
8359
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
89 -e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
90 -e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
d8d194025f40 Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents: 8186
diff changeset
91 -e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
9282
9a26e94f946a New module 'trunc'.
Bruno Haible <bruno@clisp.org>
parents: 9255
diff changeset
92 -e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
9285
79e67a783774 New module 'truncf'.
Bruno Haible <bruno@clisp.org>
parents: 9282
diff changeset
93 -e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
13142
6b79b839590c math: Fix some C++ test errors on Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 12936
diff changeset
94 -e 's|@''HAVE_DECL_TRUNCL''@|$(HAVE_DECL_TRUNCL)|g' \
13982
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
95 -e 's|@''REPLACE_CEIL''@|$(REPLACE_CEIL)|g' \
9420
9e0484f26251 Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents: 9414
diff changeset
96 -e 's|@''REPLACE_CEILF''@|$(REPLACE_CEILF)|g' \
9e0484f26251 Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents: 9414
diff changeset
97 -e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \
13981
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13979
diff changeset
98 -e 's|@''REPLACE_FLOOR''@|$(REPLACE_FLOOR)|g' \
9420
9e0484f26251 Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents: 9414
diff changeset
99 -e 's|@''REPLACE_FLOORF''@|$(REPLACE_FLOORF)|g' \
9e0484f26251 Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents: 9414
diff changeset
100 -e 's|@''REPLACE_FLOORL''@|$(REPLACE_FLOORL)|g' \
8491
af98e0b44387 New module 'frexp'.
Bruno Haible <bruno@clisp.org>
parents: 8359
diff changeset
101 -e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
8547
658be4e4521a Provide a replacement for frexpl() if the system has it but it doesn't work.
Bruno Haible <bruno@clisp.org>
parents: 8497
diff changeset
102 -e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
103 -e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
9423
fa47aa8bb105 Use REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
Bruno Haible <bruno@clisp.org>
parents: 9420
diff changeset
104 -e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
10287
7a5cfea8469f Add isinf module.
Ben Pfaff <blp@cs.stanford.edu>
parents: 10267
diff changeset
105 -e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
10267
bf763f10f63c Add isnan module.
Ben Pfaff <blp@cs.stanford.edu>
parents: 9913
diff changeset
106 -e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
8588
84d2dbfe5855 New module 'ldexpl'.
Bruno Haible <bruno@clisp.org>
parents: 8547
diff changeset
107 -e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
9898
02bfc9acab82 Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents: 9645
diff changeset
108 -e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \
9465
4a3319c82e39 Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
Bruno Haible <bruno@clisp.org>
parents: 9423
diff changeset
109 -e 's|@''REPLACE_ROUND''@|$(REPLACE_ROUND)|g' \
4a3319c82e39 Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
Bruno Haible <bruno@clisp.org>
parents: 9423
diff changeset
110 -e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
4a3319c82e39 Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
Bruno Haible <bruno@clisp.org>
parents: 9423
diff changeset
111 -e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
8652
9aabfa2b3200 New module 'signbit'.
Bruno Haible <bruno@clisp.org>
parents: 8588
diff changeset
112 -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
9645
c8174371956e Exploit the __builtin_signbit GCC built-in.
Bruno Haible <bruno@clisp.org>
parents: 9465
diff changeset
113 -e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
13983
ace70389132d New module 'trunc-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13982
diff changeset
114 -e 's|@''REPLACE_TRUNC''@|$(REPLACE_TRUNC)|g' \
13979
84d7ae75b38f New module 'truncf-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13761
diff changeset
115 -e 's|@''REPLACE_TRUNCF''@|$(REPLACE_TRUNCF)|g' \
9913
d3f5a70dc1ba Make truncl work on OSF/1 4.0.
Bruno Haible <bruno@clisp.org>
parents: 9898
diff changeset
116 -e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
12936
9be4aca41cee math: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12927
diff changeset
117 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
12422
f7842310a565 New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents: 12410
diff changeset
118 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
12726
d6da6e5f2f62 math: add portability warnings for classification macros
Eric Blake <ebb9@byu.net>
parents: 12422
diff changeset
119 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9255
590a8ac4bca4 Rename math_.h to math.in.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
120 < $(srcdir)/math.in.h; \
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11583
diff changeset
121 } > $@-t && \
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
122 mv $@-t $@
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 MOSTLYCLEANFILES += math.h math.h-t
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 Include:
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
126 <math.h>
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
127
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
128 License:
13288
0083b2c84821 headers: relax license to LGPLv2+
Eric Blake <eblake@redhat.com>
parents: 13142
diff changeset
129 LGPLv2+
8186
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
130
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
131 Maintainer:
c115624bf99a New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
132 all