Skip to content

Commit b288c0e

Browse files
committed
Declare pi and sqrt2 constants as static
This avoids their exposure into object file.
1 parent c7f96d6 commit b288c0e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

machdep/neon-single/mkaux_dft_1d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <math.h>
88
#include <tgmath.h>
99

10-
extern const minfft_real pi;
10+
static const minfft_real pi=3.141592653589793238462643383279502884L;
1111

1212
// make aux data for one-dimensional forward or inverse complex DFT
1313

machdep/sse3-single/mkaux_dft_1d.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <math.h>
88
#include <tgmath.h>
99

10-
extern const minfft_real pi;
10+
static const minfft_real pi=3.141592653589793238462643383279502884L;
1111

1212
// make aux data for one-dimensional forward or inverse complex DFT
1313

minfft.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <math.h>
88
#include <tgmath.h>
99

10-
const minfft_real pi=3.141592653589793238462643383279502884L;
11-
const minfft_real sqrt2=1.414213562373095048801688724209698079L;
10+
static const minfft_real pi=3.141592653589793238462643383279502884L;
11+
static const minfft_real sqrt2=1.414213562373095048801688724209698079L;
1212

1313
// *** meta-functions ***
1414

0 commit comments

Comments
 (0)