Skip to content

Commit 89ac4d4

Browse files
committed
Merge pull request #77 from NuxiNL/system-fenv
Make openlibm less dependent on the host, but still add knobs to build against it
2 parents f5377fd + a2afb26 commit 89ac4d4

254 files changed

Lines changed: 522 additions & 444 deletions

File tree

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 "fenv.h"
35+
#include <openlibm_fenv.h>
3636

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

amd64/fenv.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
#ifndef _FENV_H_
3030
#define _FENV_H_
3131

32-
#include "include/cdefs-compat.h"
33-
#include "include/types-compat.h"
32+
#include "cdefs-compat.h"
33+
#include "types-compat.h"
34+
35+
#include "math_private.h"
3436

3537
#ifndef __fenv_static
3638
#define __fenv_static static

arm/fenv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828

2929
#define __fenv_static
30-
#include "fenv.h"
30+
#include <openlibm_fenv.h>
3131

3232
#ifdef __GNUC_GNU_INLINE__
3333
#error "This file must be compiled with C99 'inline' semantics"

i387/fenv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <i387/bsd_npx.h>
3333

3434
#define __fenv_static
35-
#include "fenv.h"
35+
#include <openlibm_fenv.h>
3636

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

include/fenv.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

ld128/e_acoshl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* acoshl(NaN) is NaN without signal.
2525
*/
2626

27-
#include <math.h>
27+
#include <openlibm.h>
2828

2929
#include "math_private.h"
3030

ld128/e_atanhl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
*/
3030

31-
#include <math.h>
31+
#include <openlibm.h>
3232

3333
#include "math_private.h"
3434

ld128/e_coshl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* only coshl(0)=1 is exact for finite x.
4747
*/
4848

49-
#include <math.h>
49+
#include <openlibm.h>
5050

5151
#include "math_private.h"
5252

ld128/e_expl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
/* Exponential function */
7474

7575
#include <float.h>
76-
#include <math.h>
76+
#include <openlibm.h>
7777

7878
#include "math_private.h"
7979

ld128/e_fmodl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Method: shift and subtract
1717
*/
1818

19-
#include <math.h>
19+
#include <openlibm.h>
2020

2121
#include "math_private.h"
2222

0 commit comments

Comments
 (0)