comparison modules/log10f-ieee @ 16747:676471a1cb33

log10f-ieee: Work around test failure on NetBSD 5.1. * m4/log10f-ieee.m4: New file. * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present, test whether log10f works with a negative argument. Replace it if not. * lib/log10f.c (log10f): For negative arguments, return NaN. * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4. (configure.ac): Invoke gl_FUNC_LOG10F_IEEE. * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
author Bruno Haible <bruno@clisp.org>
date Sun, 01 Apr 2012 17:56:33 +0200
parents 17a69e4fda06
children
comparison
equal deleted inserted replaced
16746:17a69e4fda06 16747:676471a1cb33
1 Description: 1 Description:
2 log10f() function according to ISO C 99 with IEC 60559. 2 log10f() function according to ISO C 99 with IEC 60559.
3 3
4 Files: 4 Files:
5 m4/log10f-ieee.m4
5 6
6 Depends-on: 7 Depends-on:
7 log10f 8 log10f
8 fpieee 9 fpieee
9 log10-ieee [test $HAVE_LOG10F = 0 || test $REPLACE_LOG10F = 1] 10 log10-ieee [test $HAVE_LOG10F = 0 || test $REPLACE_LOG10F = 1]
10 11
11 configure.ac: 12 configure.ac:
12 AC_REQUIRE([gl_FUNC_LOG10F]) 13 gl_FUNC_LOG10F_IEEE
13 14
14 Makefile.am: 15 Makefile.am:
15 16
16 Include: 17 Include:
17 <math.h> 18 <math.h>