[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module 'frexp'
From: |
Bruno Haible |
Subject: |
Re: new module 'frexp' |
Date: |
Thu, 22 Mar 2007 12:58:27 +0100 |
User-agent: |
KMail/1.5.4 |
> NetBSD does not only have a broken isnanl() function. It also has a broken
> frexp(): it does not treat denormalized numbers correctly.
For the same reason, the 'printf-frexp' module must be more careful about
using the system's frexp() function:
2007-03-22 Bruno Haible <address@hidden>
* modules/printf-frexp (Files): Add m4/frexp.m4.
* m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
only if the found frexp function actually works.
*** modules/printf-frexp 25 Feb 2007 17:43:12 -0000 1.2
--- modules/printf-frexp 22 Mar 2007 11:55:32 -0000
***************
*** 6,11 ****
--- 6,12 ----
lib/printf-frexp.h
lib/printf-frexp.c
m4/printf-frexp.m4
+ m4/frexp.m4
Depends-on:
*** m4/printf-frexp.m4 25 Feb 2007 14:20:47 -0000 1.1
--- m4/printf-frexp.m4 22 Mar 2007 11:55:32 -0000
***************
*** 1,4 ****
! # printf-frexp.m4 serial 1
dnl Copyright (C) 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # printf-frexp.m4 serial 2
dnl Copyright (C) 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
***************
*** 19,26 ****
[gl_cv_func_frexp_no_libm=no])
])
if test $gl_cv_func_frexp_no_libm = yes; then
! AC_DEFINE([HAVE_FREXP_IN_LIBC], 1,
! [Define if the frexp function is available in libc.])
fi
AC_CACHE_CHECK([whether ldexp can be used without linking with libm],
--- 19,31 ----
[gl_cv_func_frexp_no_libm=no])
])
if test $gl_cv_func_frexp_no_libm = yes; then
! gl_FUNC_FREXP_WORKS
! case "$gl_cv_func_frexp_works" in
! *yes)
! AC_DEFINE([HAVE_FREXP_IN_LIBC], 1,
! [Define if the frexp function is available in libc.])
! ;;
! esac
fi
AC_CACHE_CHECK([whether ldexp can be used without linking with libm],