Skip to content

Commit bcc74d5

Browse files
committed
Revert "Introduce SECP256K1_LOCAL_VAR macro"
This reverts commit c0f5b42.
1 parent 0c9a046 commit bcc74d5

4 files changed

+3
-20
lines changed

Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ noinst_HEADERS += src/assumptions.h
4747
noinst_HEADERS += src/checkmem.h
4848
noinst_HEADERS += src/testutil.h
4949
noinst_HEADERS += src/util.h
50-
noinst_HEADERS += src/util_local_visibility.h
5150
noinst_HEADERS += src/int128.h
5251
noinst_HEADERS += src/int128_impl.h
5352
noinst_HEADERS += src/int128_native.h

src/precomputed_ecmult.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ extern "C" {
1313

1414
#include "ecmult.h"
1515
#include "group.h"
16-
#include "util_local_visibility.h"
17-
1816
#if defined(EXHAUSTIVE_TEST_ORDER)
1917
# if EXHAUSTIVE_TEST_ORDER == 7
2018
# define WINDOW_G 3
@@ -29,8 +27,8 @@ static secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)];
2927
static secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)];
3028
#else /* !defined(EXHAUSTIVE_TEST_ORDER) */
3129
# define WINDOW_G ECMULT_WINDOW_SIZE
32-
SECP256K1_LOCAL_VAR const secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)];
33-
SECP256K1_LOCAL_VAR const secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)];
30+
extern const secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)];
31+
extern const secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)];
3432
#endif /* defined(EXHAUSTIVE_TEST_ORDER) */
3533

3634
#ifdef __cplusplus

src/precomputed_ecmult_gen.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ extern "C" {
1313

1414
#include "group.h"
1515
#include "ecmult_gen.h"
16-
#include "util_local_visibility.h"
17-
1816
#ifdef EXHAUSTIVE_TEST_ORDER
1917
static secp256k1_ge_storage secp256k1_ecmult_gen_prec_table[COMB_BLOCKS][COMB_POINTS];
2018
#else
21-
SECP256K1_LOCAL_VAR const secp256k1_ge_storage secp256k1_ecmult_gen_prec_table[COMB_BLOCKS][COMB_POINTS];
19+
extern const secp256k1_ge_storage secp256k1_ecmult_gen_prec_table[COMB_BLOCKS][COMB_POINTS];
2220
#endif /* defined(EXHAUSTIVE_TEST_ORDER) */
2321

2422
#ifdef __cplusplus

src/util_local_visibility.h

-12
This file was deleted.

0 commit comments

Comments
 (0)