bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'math'


From: Bruno Haible
Subject: new module 'math'
Date: Sun, 18 Feb 2007 15:07:41 +0100
User-agent: KMail/1.5.4

Here's the next "complete" header file, using the same scheme as string.h.

Paolo, this changes all the files from the 'mathl' module:
  - mathl.h is replaced by <math.h>,
  - All the .c modules need to include <config.h>. Not including it is a
    latent potential trouble.
  - In some files the copyright headers were not at the beginning of the
    file. I moved them to the beginning.

Is this ok with you?

Bruno


2007-02-18  Bruno Haible  <address@hidden>

        * modules/math: New file.
        * modules/mathl (Files): Remove lib/mathl.h.
        (Depends-on): Add math.
        (Makefile.am): Don't mention mathl.h.
        (Include): Use <math.h> instead of mathl.h.
        * lib/math_.h: New file.
        * lib/mathl.h: Remove file.
        * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
        mathl.h.
        * lib/asinl.c: Likewise.
        * lib/atanl.c: Likewise.
        * lib/ceill.c: Likewise.
        * lib/cosl.c: Likewise.
        * lib/expl.c: Likewise.
        * lib/floorl.c: Likewise.
        * lib/frexpl.c: Likewise.
        * lib/ldexpl.c: Likewise.
        * lib/logl.c: Likewise.
        * lib/sincosl.c: Likewise.
        * lib/sinl.c: Likewise.
        * lib/sqrtl.c: Likewise.
        * lib/tanl.c: Likewise.
        * lib/trigl.c: Likewise.
        * m4/math_h.m4: New file.

============================= modules/math =================================
Description:
A GNU-like <math.h>.

Files:
lib/math_.h
m4/math_h.m4

Depends-on:
absolute-header
link-warning

configure.ac:
gl_MATH_H

Makefile.am:
BUILT_SOURCES += math.h

# We need the following in order to create <math.h> when the system
# doesn't have one that works with the given compiler.
math.h: math_.h
        rm -f address@hidden $@
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''ABSOLUTE_MATH_H''@|$(ABSOLUTE_MATH_H)|g' \
              -e 's|@''GNULIB_MATHL''@|$(GNULIB_MATHL)|g' \
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
              < $(srcdir)/math_.h; \
        } > address@hidden
        mv address@hidden $@
MOSTLYCLEANFILES += math.h math.h-t

Include:
<math.h>

License:
LGPL

Maintainer:
all
============================== lib/math_.h =================================
/* A GNU-like <math.h>.

   Copyright (C) 2002-2003, 2007 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */

#ifndef _GL_MATH_H
#define _GL_MATH_H

#include @ABSOLUTE_MATH_H@


/* The definition of GL_LINK_WARNING is copied here.  */


#ifdef __cplusplus
extern "C" {
#endif


#if @GNULIB_MATHL@
extern long double acosl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef acosl
# define acosl(x) \
    (GL_LINK_WARNING ("acosl is unportable - "\
                      "use gnulib module mathl for portability"), \
     acosl (x))
#endif

#if @GNULIB_MATHL@
extern long double asinl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef asinl
# define asinl(x) \
    (GL_LINK_WARNING ("asinl is unportable - "\
                      "use gnulib module mathl for portability"), \
     asinl (x))
#endif

#if @GNULIB_MATHL@
extern long double atanl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef atanl
# define atanl(x) \
    (GL_LINK_WARNING ("atanl is unportable - "\
                      "use gnulib module mathl for portability"), \
     atanl (x))
#endif

#if @GNULIB_MATHL@
extern long double ceill (long double x);
#elif defined GNULIB_POSIXCHECK
# undef ceill
# define ceill(x) \
    (GL_LINK_WARNING ("ceill is unportable - "\
                      "use gnulib module mathl for portability"), \
     ceill (x))
#endif

#if @GNULIB_MATHL@
extern long double cosl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef cosl
# define cosl(x) \
    (GL_LINK_WARNING ("cosl is unportable - "\
                      "use gnulib module mathl for portability"), \
     cosl (x))
#endif

#if @GNULIB_MATHL@
extern long double expl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef expl
# define expl(x) \
    (GL_LINK_WARNING ("expl is unportable - "\
                      "use gnulib module mathl for portability"), \
     expl (x))
#endif

#if @GNULIB_MATHL@
extern long double floorl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef floorl
# define floorl(x) \
    (GL_LINK_WARNING ("floorl is unportable - "\
                      "use gnulib module mathl for portability"), \
     floorl (x))
#endif

#if @GNULIB_MATHL@
extern long double frexpl (long double x, int *exp);
#elif defined GNULIB_POSIXCHECK
# undef frexpl
# define frexpl(x,e) \
    (GL_LINK_WARNING ("frexpl is unportable - "\
                      "use gnulib module mathl for portability"), \
     frexpl (x, e))
#endif

#if @GNULIB_MATHL@
extern long double ldexpl (long double x, int exp);
#elif defined GNULIB_POSIXCHECK
# undef ldexpl
# define ldexpl(x,e) \
    (GL_LINK_WARNING ("ldexpl is unportable - "\
                      "use gnulib module mathl for portability"), \
     ldexpl (x, e))
#endif

#if @GNULIB_MATHL@
extern long double logl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef logl
# define logl(x) \
    (GL_LINK_WARNING ("logl is unportable - "\
                      "use gnulib module mathl for portability"), \
     logl (x))
#endif

#if @GNULIB_MATHL@
extern long double sinl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef sinl
# define sinl(x) \
    (GL_LINK_WARNING ("sinl is unportable - "\
                      "use gnulib module mathl for portability"), \
     sinl (x))
#endif

#if @GNULIB_MATHL@
extern long double sqrtl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef sqrtl
# define sqrtl(x) \
    (GL_LINK_WARNING ("sqrtl is unportable - "\
                      "use gnulib module mathl for portability"), \
     sqrtl (x))
#endif

#if @GNULIB_MATHL@
extern long double tanl (long double x);
#elif defined GNULIB_POSIXCHECK
# undef tanl
# define tanl(x) \
    (GL_LINK_WARNING ("tanl is unportable - "\
                      "use gnulib module mathl for portability"), \
     tanl (x))
#endif


#ifdef __cplusplus
}
#endif

#endif
============================= m4/math_h.m4 =================================
# math_h.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,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_MATH_H],
[
  AC_REQUIRE([gl_MATH_H_DEFAULTS])
  gl_ABSOLUTE_HEADER([math.h])
  ABSOLUTE_MATH_H=\"$gl_cv_absolute_math_h\"
  AC_SUBST([ABSOLUTE_MATH_H])
])

AC_DEFUN([gl_MATH_MODULE_INDICATOR],
[
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
  AC_REQUIRE([gl_MATH_H_DEFAULTS])
  
GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
])

AC_DEFUN([gl_MATH_H_DEFAULTS],
[
  GNULIB_MATHL=0; AC_SUBST([GNULIB_MATHL])
])
============================================================================
*** lib/acosl.c 11 Nov 2004 09:26:09 -0000      1.3
--- lib/acosl.c 18 Feb 2007 13:42:04 -0000
***************
*** 9,15 ****
   * ====================================================
   */
  
! #include "mathl.h"
  
  /*
    Long double expansions contributed by
--- 9,18 ----
   * ====================================================
   */
  
! #include <config.h>
! 
! /* Specification.  */
! #include <math.h>
  
  /*
    Long double expansions contributed by
***************
*** 33,40 ****
   */
  
  
- #include <math.h>
- 
  static const long double
    one = 1.0L,
    huge = 1.0e+4932L,
--- 36,41 ----
*** lib/asinl.c 9 Sep 2003 17:44:20 -0000       1.2
--- lib/asinl.c 18 Feb 2007 13:42:04 -0000
***************
*** 9,15 ****
   * ====================================================
   */
  
! #include "mathl.h"
  
  /*
    Long double expansions contributed by
--- 9,18 ----
   * ====================================================
   */
  
! #include <config.h>
! 
! /* Specification.  */
! #include <math.h>
  
  /*
    Long double expansions contributed by
***************
*** 33,40 ****
   */
  
  
- #include <math.h>
- 
  static const long double
    one = 1.0L,
    huge = 1.0e+4932L,
--- 36,41 ----
*** lib/atanl.c 14 May 2005 06:03:57 -0000      1.3
--- lib/atanl.c 18 Feb 2007 13:42:04 -0000
***************
*** 1,3 ****
--- 1,25 ----
+ /* Copyright 2001 by Stephen L. Moshier <address@hidden>
+ 
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2, or (at your option)
+    any later version.
+ 
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+ 
+    You should have received a copy of the GNU General Public License
+    along with this program; see the file COPYING.
+    If not, write to the Free Software Foundation,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+ 
+ #include <config.h>
+ 
+ /* Specification.  */
+ #include <math.h>
+ 
  /*                                                    s_atanl.c
   *
   *    Inverse circular tangent for 128-bit long double precision
***************
*** 42,67 ****
   *
   */
  
- /* Copyright 2001 by Stephen L. Moshier <address@hidden>
- 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2, or (at your option)
-    any later version.
- 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
- 
-    You should have received a copy of the GNU General Public License
-    along with this program; see the file COPYING.
-    If not, write to the Free Software Foundation,
-    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
- 
- #include "mathl.h"
- 
- #include <math.h>
  
  /* arctan(k/8), k = 0, ..., 82 */
  static const long double atantbl[84] = {
--- 64,69 ----
*** lib/ceill.c 14 May 2005 06:03:57 -0000      1.3
--- lib/ceill.c 18 Feb 2007 13:42:04 -0000
***************
*** 1,7 ****
  /* Emulation for ceill.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
--- 1,7 ----
  /* Emulation for ceill.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
***************
*** 19,27 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <float.h>
  
! #include "mathl.h"
  
  /* To compute the integer part of X, sum a big enough
     integer so that the precision of the floating point
--- 19,30 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <config.h>
! 
! /* Specification.  */
! #include <math.h>
  
! #include <float.h>
  
  /* To compute the integer part of X, sum a big enough
     integer so that the precision of the floating point
*** lib/cosl.c  9 Sep 2003 17:44:20 -0000       1.2
--- lib/cosl.c  18 Feb 2007 13:42:04 -0000
***************
*** 13,18 ****
--- 13,23 ----
   * ====================================================
   */
  
+ #include <config.h>
+ 
+ /* Specification.  */
+ #include <math.h>
+ 
  /* sinl(x)
   * Return sine function of x.
   *
***************
*** 44,53 ****
   *    TRIG(x) returns trig(x) nearly rounded
   */
  
- #include <math.h>
- 
- #include "mathl.h"
- 
  #include "trigl.h"
  #ifdef HAVE_SINL
  #include "trigl.c"
--- 49,54 ----
*** lib/expl.c  14 May 2005 06:03:58 -0000      1.4
--- lib/expl.c  18 Feb 2007 13:42:04 -0000
***************
*** 1,7 ****
  /* Emulation for expl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
--- 1,7 ----
  /* Emulation for expl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
***************
*** 19,28 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <float.h>
  #include <math.h>
  
! #include "mathl.h"
  
  static const long double C[] = {
  /* Chebyshev polynom coeficients for (exp(x)-1)/x */
--- 19,30 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <config.h>
! 
! /* Specification.  */
  #include <math.h>
  
! #include <float.h>
  
  static const long double C[] = {
  /* Chebyshev polynom coeficients for (exp(x)-1)/x */
*** lib/floorl.c        14 May 2005 06:03:58 -0000      1.3
--- lib/floorl.c        18 Feb 2007 13:42:04 -0000
***************
*** 1,7 ****
  /* Emulation for floorl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
--- 1,7 ----
  /* Emulation for floorl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
***************
*** 19,27 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <float.h>
  
! #include "mathl.h"
  
  /* To compute the integer part of X, sum a big enough
     integer so that the precision of the floating point
--- 19,30 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <config.h>
! 
! /* Specification.  */
! #include <math.h>
  
! #include <float.h>
  
  /* To compute the integer part of X, sum a big enough
     integer so that the precision of the floating point
*** lib/frexpl.c        14 May 2005 06:03:58 -0000      1.4
--- lib/frexpl.c        18 Feb 2007 13:42:04 -0000
***************
*** 1,7 ****
  /* Emulation for frexpl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
--- 1,7 ----
  /* Emulation for frexpl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
***************
*** 19,28 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <float.h>
  #include <math.h>
  
! #include "mathl.h"
  
  /* Binary search.  Quite inefficient but portable. */
  long double
--- 19,30 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <config.h>
! 
! /* Specification.  */
  #include <math.h>
  
! #include <float.h>
  
  /* Binary search.  Quite inefficient but portable. */
  long double
*** lib/ldexpl.c        14 May 2005 06:03:58 -0000      1.4
--- lib/ldexpl.c        18 Feb 2007 13:42:04 -0000
***************
*** 1,7 ****
  /* Emulation for ldexpl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
--- 1,7 ----
  /* Emulation for ldexpl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
***************
*** 19,28 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <float.h>
  #include <math.h>
  
! #include "mathl.h"
  
  long double
  ldexpl(long double x, int exp)
--- 19,30 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <config.h>
! 
! /* Specification.  */
  #include <math.h>
  
! #include <float.h>
  
  long double
  ldexpl(long double x, int exp)
*** lib/logl.c  14 May 2005 06:03:58 -0000      1.3
--- lib/logl.c  18 Feb 2007 13:42:04 -0000
***************
*** 1,3 ****
--- 1,25 ----
+ /* Copyright 2001 by Stephen L. Moshier <address@hidden>
+ 
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2, or (at your option)
+    any later version.
+ 
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+ 
+    You should have received a copy of the GNU General Public License
+    along with this program; see the file COPYING.
+    If not, write to the Free Software Foundation,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+ 
+ #include <config.h>
+ 
+ /* Specification.  */
+ #include <math.h>
+ 
  /*                                                    logll.c
   *
   * Natural logarithm for 128-bit long double precision.
***************
*** 42,68 ****
   *
   */
  
- #include <math.h>
- 
- #include "mathl.h"
- 
- /* Copyright 2001 by Stephen L. Moshier <address@hidden>
- 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2, or (at your option)
-    any later version.
- 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
- 
-    You should have received a copy of the GNU General Public License
-    along with this program; see the file COPYING.
-    If not, write to the Free Software Foundation,
-    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
- 
  /* log(1+x) = x - .5 x^2 + x^3 l(x)
     -.0078125 <= x <= +.0078125
     peak relative error 1.2e-37 */
--- 64,69 ----
*** lib/sincosl.c       23 Nov 2006 20:18:34 -0000      1.4
--- lib/sincosl.c       18 Feb 2007 13:42:05 -0000
***************
*** 1,5 ****
  /* Quad-precision floating point trigonometric functions on <-pi/4,pi/4>.
!    Copyright (C) 1999, 2006 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Contributed by Jakub Jelinek <address@hidden>
  
--- 1,5 ----
  /* Quad-precision floating point trigonometric functions on <-pi/4,pi/4>.
!    Copyright (C) 1999, 2006, 2007 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Contributed by Jakub Jelinek <address@hidden>
  
***************
*** 17,26 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
  #include <math.h>
- #include <float.h>
  
! #include "mathl.h"
  
  static const long double sin_c[] = {
  #define ONE sin_c[0]
--- 17,28 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
+ #include <config.h>
+ 
+ /* Specification.  */
  #include <math.h>
  
! #include <float.h>
  
  static const long double sin_c[] = {
  #define ONE sin_c[0]
*** lib/sinl.c  9 Sep 2003 17:44:20 -0000       1.2
--- lib/sinl.c  18 Feb 2007 13:42:05 -0000
***************
*** 13,18 ****
--- 13,23 ----
   * ====================================================
   */
  
+ #include <config.h>
+ 
+ /* Specification.  */
+ #include <math.h>
+ 
  /* sinl(x)
   * Return sine function of x.
   *
***************
*** 44,53 ****
   *    TRIG(x) returns trig(x) nearly rounded
   */
  
- #include <math.h>
- 
- #include "mathl.h"
- 
  #include "trigl.h"
  #include "trigl.c"
  #include "sincosl.c"
--- 49,54 ----
*** lib/sqrtl.c 14 May 2005 06:03:58 -0000      1.3
--- lib/sqrtl.c 18 Feb 2007 13:42:05 -0000
***************
*** 1,7 ****
  /* Emulation for sqrtl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
--- 1,7 ----
  /* Emulation for sqrtl.
     Contributed by Paolo Bonzini
  
!    Copyright 2002, 2003, 2007 Free Software Foundation, Inc.
  
     This file is part of gnulib.
  
***************
*** 19,28 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <float.h>
  #include <math.h>
  
! #include "mathl.h"
  
  /* A simple Newton-Raphson method. */
  long double
--- 19,30 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
! #include <config.h>
! 
! /* Specification.  */
  #include <math.h>
  
! #include <float.h>
  
  /* A simple Newton-Raphson method. */
  long double
*** lib/tanl.c  9 Sep 2003 17:44:20 -0000       1.2
--- lib/tanl.c  18 Feb 2007 13:42:05 -0000
***************
*** 14,19 ****
--- 14,24 ----
   * ====================================================
   */
  
+ #include <config.h>
+ 
+ /* Specification.  */
+ #include <math.h>
+ 
  /* tanl(x)
   * Return tangent function of x.
   *
***************
*** 44,53 ****
   *    TRIG(x) returns trig(x) nearly rounded
   */
  
- #include <math.h>
- 
- #include "mathl.h"
- 
  #include "trigl.h"
  #ifdef HAVE_SINL
  #ifdef HAVE_COSL
--- 49,54 ----
*** lib/trigl.c 14 May 2005 06:03:58 -0000      1.3
--- lib/trigl.c 18 Feb 2007 13:42:05 -0000
***************
*** 1,5 ****
  /* Quad-precision floating point argument reduction.
!    Copyright (C) 1999 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Contributed by Jakub Jelinek <address@hidden>
  
--- 1,5 ----
  /* Quad-precision floating point argument reduction.
!    Copyright (C) 1999, 2007 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Contributed by Jakub Jelinek <address@hidden>
  
***************
*** 17,26 ****
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
  #include <math.h>
- #include <float.h>
  
! #include "mathl.h"
  
  /* Table of constants for 2/pi, 5628 hexadecimal digits of 2/pi */
  static const int two_over_pi[] = {
--- 17,28 ----
     with this program; if not, write to the Free Software Foundation,
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
+ #include <config.h>
+ 
+ /* Specification.  */
  #include <math.h>
  
! #include <float.h>
  
  /* Table of constants for 2/pi, 5628 hexadecimal digits of 2/pi */
  static const int two_over_pi[] = {
*** modules/mathl       13 Oct 2006 12:40:23 -0000      1.4
--- modules/mathl       18 Feb 2007 13:42:06 -0000
***************
*** 2,8 ****
  C99 functions for transcendental functions with long double arguments.
  
  Files:
- lib/mathl.h
  lib/acosl.c
  lib/asinl.c
  lib/atanl.c
--- 2,7 ----
***************
*** 22,36 ****
  m4/mathl.m4
  
  Depends-on:
  
  configure.ac:
  gl_FUNC_LONG_DOUBLE_MATH
  
  Makefile.am:
! noinst_HEADERS += mathl.h trigl.h trigl.c sincosl.c
  
  Include:
! "mathl.h"
  
  License:
  GPL
--- 21,36 ----
  m4/mathl.m4
  
  Depends-on:
+ math
  
  configure.ac:
  gl_FUNC_LONG_DOUBLE_MATH
  
  Makefile.am:
! noinst_HEADERS += trigl.h trigl.c sincosl.c
  
  Include:
! <math.h>
  
  License:
  GPL





reply via email to

[Prev in Thread] Current Thread [Next in Thread]