Skip to content

Commit 84d2396

Browse files
committed
change CEED_EPSILON to true constant to appease bindgen
1 parent 5679712 commit 84d2396

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/ceed/ceed-f32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ typedef float CeedScalar;
1818
typedef CeedScalar CeedScalarCPU;
1919

2020
/// Machine epsilon
21-
#define CEED_EPSILON 0x1p-23
21+
static const CeedScalar CEED_EPSILON = 0x1p-23;

include/ceed/ceed-f64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ typedef float CeedScalar;
1919
typedef double CeedScalarCPU;
2020

2121
/// Machine epsilon
22-
#define CEED_EPSILON 0x1p-23
22+
static const CeedScalar CEED_EPSILON = 0x1p-23;
2323
#else
2424
typedef double CeedScalar;
2525
typedef CeedScalar CeedScalarCPU;
2626

2727
/// Machine epsilon
28-
#define CEED_EPSILON 0x1p-52
28+
static const CeedScalar CEED_EPSILON = 0x1p-52;
2929
#endif // CEED_RUNNING_JIT_PASS && CEED_JIT_MIXED_PRECISION

0 commit comments

Comments
 (0)