Skip to content

Commit 06dbb6e

Browse files
committed
Use more uniform style of including headers.
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.
1 parent f6b045b commit 06dbb6e

143 files changed

Lines changed: 234 additions & 151 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

amd64/fenv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#ifdef _WIN32
3333
#define __fenv_static
3434
#endif
35-
#include "openlibm_fenv.h"
35+
#include <openlibm_fenv.h>
3636

3737
#ifdef __GNUC_GNU_INLINE__
3838
#error "This file must be compiled with C99 'inline' semantics"

ld128/e_rem_pio2l.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*/
2424

2525
#include <float.h>
26+
#include <openlibm.h>
2627

27-
#include "openlibm.h"
2828
#include "math_private.h"
2929
#include "fpmath.h"
3030

ld128/k_tanl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
* ld128 version of k_tan.c. See ../src/k_tan.c for most comments.
1919
*/
2020

21-
#include "openlibm.h"
21+
#include <openlibm.h>
22+
2223
#include "math_private.h"
2324

2425
/*

ld128/s_exp2l.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
//__FBSDID("$FreeBSD: src/lib/msun/ld128/s_exp2l.c,v 1.3 2008/02/13 10:44:44 bde Exp $");
2929

3030
#include <float.h>
31+
#include <openlibm.h>
3132
#include <stdint.h>
3233

3334
#include "fpmath.h"
34-
#include "openlibm.h"
3535
#include "math_private.h"
3636

3737
#define TBLBITS 7

ld128/s_nanl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* $FreeBSD: src/lib/msun/ld128/s_nanl.c,v 1.3 2008/03/02 20:16:55 das Exp $
2727
*/
2828

29-
#include "openlibm.h"
29+
#include <openlibm.h>
3030

3131
#include "fpmath.h"
3232
#include "math_private.h"

ld80/e_coshl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
* only coshl(0)=1 is exact for finite x.
3232
*/
3333

34-
#include "openlibm.h"
34+
#include <openlibm.h>
35+
3536
#include "math_private.h"
3637

3738
static const long double one = 1.0, half=0.5, huge = 1.0e4900L;

ld80/e_rem_pio2l.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
*/
2424

2525
#include <float.h>
26+
#include <openlibm.h>
2627

27-
#include "openlibm.h"
2828
#include "math_private.h"
29-
#include "openlibm.h"
3029

3130
#define BIAS (LDBL_MAX_EXP - 1)
3231

ld80/k_tanl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
* ld80 version of k_tan.c. See ../src/k_tan.c for most comments.
1919
*/
2020

21-
#include "openlibm.h"
21+
#include <openlibm.h>
22+
2223
#include "math_private.h"
2324

2425
/*

ld80/s_exp2l.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
#include "amd64/bsd_ieeefp.h"
3434

35-
#include "openlibm.h"
36-
#include "openlibm.h"
35+
#include <openlibm.h>
36+
3737
#include "math_private.h"
3838

3939
#define TBLBITS 7

ld80/s_nanl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
* $FreeBSD: src/lib/msun/ld80/s_nanl.c,v 1.2 2007/12/18 23:46:31 das Exp $
2727
*/
2828

29-
#include "openlibm.h"
29+
#include <openlibm.h>
3030

31-
#include "openlibm.h"
3231
#include "math_private.h"
3332

3433
DLLEXPORT long double

0 commit comments

Comments
 (0)