Skip to content

Commit

Permalink
Use more uniform style of including headers.
Browse files Browse the repository at this point in the history
Put external headers before internal ones. While there, replace a lot of
occurences of "openlibm.h" with <openlibm.h>. It should be thought of as
an external header, as it is installed along with the library.
  • Loading branch information
EdSchouten committed Jan 9, 2015
1 parent f6b045b commit 06dbb6e
Show file tree
Hide file tree
Showing 143 changed files with 234 additions and 151 deletions.
2 changes: 1 addition & 1 deletion amd64/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#ifdef _WIN32
#define __fenv_static
#endif
#include "openlibm_fenv.h"
#include <openlibm_fenv.h>

#ifdef __GNUC_GNU_INLINE__
#error "This file must be compiled with C99 'inline' semantics"
Expand Down
2 changes: 1 addition & 1 deletion ld128/e_rem_pio2l.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"
#include "fpmath.h"

Expand Down
3 changes: 2 additions & 1 deletion ld128/k_tanl.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
* ld128 version of k_tan.c. See ../src/k_tan.c for most comments.
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion ld128/s_exp2l.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
//__FBSDID("$FreeBSD: src/lib/msun/ld128/s_exp2l.c,v 1.3 2008/02/13 10:44:44 bde Exp $");

#include <float.h>
#include <openlibm.h>
#include <stdint.h>

#include "fpmath.h"
#include "openlibm.h"
#include "math_private.h"

#define TBLBITS 7
Expand Down
2 changes: 1 addition & 1 deletion ld128/s_nanl.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* $FreeBSD: src/lib/msun/ld128/s_nanl.c,v 1.3 2008/03/02 20:16:55 das Exp $
*/

#include "openlibm.h"
#include <openlibm.h>

#include "fpmath.h"
#include "math_private.h"
Expand Down
3 changes: 2 additions & 1 deletion ld80/e_coshl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
* only coshl(0)=1 is exact for finite x.
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const long double one = 1.0, half=0.5, huge = 1.0e4900L;
Expand Down
3 changes: 1 addition & 2 deletions ld80/e_rem_pio2l.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"
#include "openlibm.h"

#define BIAS (LDBL_MAX_EXP - 1)

Expand Down
3 changes: 2 additions & 1 deletion ld80/k_tanl.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
* ld80 version of k_tan.c. See ../src/k_tan.c for most comments.
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

/*
Expand Down
4 changes: 2 additions & 2 deletions ld80/s_exp2l.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

#include "amd64/bsd_ieeefp.h"

#include "openlibm.h"
#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

#define TBLBITS 7
Expand Down
3 changes: 1 addition & 2 deletions ld80/s_nanl.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
* $FreeBSD: src/lib/msun/ld80/s_nanl.c,v 1.2 2007/12/18 23:46:31 das Exp $
*/

#include "openlibm.h"
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

DLLEXPORT long double
Expand Down
2 changes: 1 addition & 1 deletion ld80/s_truncl.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//#include <machine/ieee.h>

#include <float.h>
#include "openlibm.h"
#include <openlibm.h>
#include <stdint.h>

#include "math_private.h"
Expand Down
2 changes: 1 addition & 1 deletion src/e_acos.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

static const double
Expand Down
3 changes: 2 additions & 1 deletion src/e_acosf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_acosf.c,v 1.11 2008/08/03 17:39:54 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const float
Expand Down
3 changes: 2 additions & 1 deletion src/e_acosh.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
* acosh(NaN) is NaN without signal.
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const double
Expand Down
3 changes: 2 additions & 1 deletion src/e_acoshf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_acoshf.c,v 1.8 2008/02/22 02:30:34 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const float
Expand Down
2 changes: 1 addition & 1 deletion src/e_acosl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*/

#include <float.h>
#include <openlibm.h>

#include "invtrig.h"
#include "openlibm.h"
#include "math_private.h"

static const long double
Expand Down
2 changes: 1 addition & 1 deletion src/e_asin.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

static const double
Expand Down
3 changes: 2 additions & 1 deletion src/e_asinf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_asinf.c,v 1.13 2008/08/08 00:21:27 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const float
Expand Down
2 changes: 1 addition & 1 deletion src/e_asinl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*/

#include <float.h>
#include <openlibm.h>

#include "invtrig.h"
#include "openlibm.h"
#include "math_private.h"

static const long double
Expand Down
2 changes: 1 addition & 1 deletion src/e_atan2.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

static volatile double
Expand Down
3 changes: 2 additions & 1 deletion src/e_atan2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_atan2f.c,v 1.12 2008/08/03 17:39:54 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static volatile float
Expand Down
2 changes: 1 addition & 1 deletion src/e_atan2l.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
*/

#include <float.h>
#include <openlibm.h>

#include "invtrig.h"
#include "openlibm.h"
#include "math_private.h"

static volatile long double
Expand Down
3 changes: 2 additions & 1 deletion src/e_atanh.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
*
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const double one = 1.0, huge = 1e300;
Expand Down
3 changes: 2 additions & 1 deletion src/e_atanhf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_atanhf.c,v 1.7 2008/02/22 02:30:34 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const float one = 1.0, huge = 1e30;
Expand Down
3 changes: 2 additions & 1 deletion src/e_cosh.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
* only cosh(0)=1 is exact for finite x.
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const double one = 1.0, half=0.5, huge = 1.0e300;
Expand Down
3 changes: 2 additions & 1 deletion src/e_coshf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_coshf.c,v 1.9 2011/10/21 06:28:47 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const float one = 1.0, half=0.5, huge = 1.0e30;
Expand Down
2 changes: 1 addition & 1 deletion src/e_exp.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

static const double
Expand Down
2 changes: 1 addition & 1 deletion src/e_expf.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
//__FBSDID("$FreeBSD: src/lib/msun/src/e_expf.c,v 1.16 2011/10/21 06:26:38 das Exp $");

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

static const float
Expand Down
3 changes: 2 additions & 1 deletion src/e_fmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* Method: shift and subtract
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const double one = 1.0, Zero[] = {0.0, -0.0,};
Expand Down
3 changes: 2 additions & 1 deletion src/e_fmodf.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
* Method: shift and subtract
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static const float one = 1.0, Zero[] = {0.0, -0.0,};
Expand Down
3 changes: 2 additions & 1 deletion src/e_fmodl.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
//__FBSDID("$FreeBSD: src/lib/msun/src/e_fmodl.c,v 1.2 2008/07/31 20:09:47 das Exp $");

#include <float.h>
#include <openlibm.h>
#include <stdint.h>

#include "fpmath.h"
#include "openlibm.h"

#include "math_private.h"

#define BIAS (LDBL_MAX_EXP - 1)
Expand Down
3 changes: 2 additions & 1 deletion src/e_gamma.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* Method: call __ieee754_gamma_r
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

extern int signgam;
Expand Down
3 changes: 2 additions & 1 deletion src/e_gamma_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
* Method: See __ieee754_lgamma_r
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

DLLEXPORT double
Expand Down
3 changes: 2 additions & 1 deletion src/e_gammaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
* Method: call __ieee754_gammaf_r
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

extern int signgam;
Expand Down
3 changes: 2 additions & 1 deletion src/e_gammaf_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
* Method: See __ieee754_lgammaf_r
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

DLLEXPORT float
Expand Down
2 changes: 1 addition & 1 deletion src/e_hypot.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
*/

#include <float.h>
#include <openlibm.h>

#include "openlibm.h"
#include "math_private.h"

DLLEXPORT double
Expand Down
3 changes: 2 additions & 1 deletion src/e_hypotf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include "cdefs-compat.h"
//__FBSDID("$FreeBSD: src/lib/msun/src/e_hypotf.c,v 1.14 2011/10/15 07:00:28 das Exp $");

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

DLLEXPORT float
Expand Down
2 changes: 1 addition & 1 deletion src/e_hypotl.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
/* long double version of hypot(). See e_hypot.c for most comments. */

#include <float.h>
#include <openlibm.h>

#include "fpmath.h"
#include "openlibm.h"
#include "math_private.h"

#define GET_LDBL_MAN(h, l, v) do { \
Expand Down
3 changes: 2 additions & 1 deletion src/e_j0.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
* 3. Special cases: y0(0)=-inf, y0(x<0)=NaN, y0(inf)=0.
*/

#include "openlibm.h"
#include <openlibm.h>

#include "math_private.h"

static double pzero(double), qzero(double);
Expand Down
Loading

0 comments on commit 06dbb6e

Please sign in to comment.