File tree 14 files changed +22
-3
lines changed
14 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 25
25
#define OPTIMIZE
26
26
#endif
27
27
28
+ #if FD_HAS_X86
29
+ #include <x86intrin.h>
30
+ #endif
31
+
28
32
/* Utility functions for fd_uint256_mul_mod_p.
29
33
Implementation is based on uint128.
30
34
The implementations WITHOUT uint128 are just for completeness, we
Original file line number Diff line number Diff line change 2
2
#include "fd_toml.h"
3
3
#include "../../util/fd_util.h"
4
4
#include <ctype.h>
5
+ #include <math.h>
5
6
#include <time.h>
6
7
7
8
/* Implementation note:
Original file line number Diff line number Diff line change 6
6
#include "generated/fd_metrics_all.h"
7
7
8
8
#include "../../tango/tempo/fd_tempo.h"
9
+ #include "../../util/hist/fd_histf.h"
9
10
10
11
/* fd_metrics mostly defines way of laying out metrics in shared
11
12
memory so that a producer and consumer can agree on where they
Original file line number Diff line number Diff line change 1
1
#include "fd_pack_rebate_sum.h"
2
2
#include "fd_pack.h"
3
+ #if FD_HAS_AVX
4
+ #include "../../util/simd/fd_avx.h"
5
+ #endif
3
6
4
7
static const fd_acct_addr_t null_addr = { 0 };
5
8
Original file line number Diff line number Diff line change 1
1
#define FD_UNALIGNED_ACCESS_STYLE 0
2
2
#include "fd_chkdup.h"
3
+ #include <math.h>
3
4
4
5
#define P 4294967291UL /* A prime that fits in a uint with 2 as a primitive root */
5
6
Original file line number Diff line number Diff line change 3
3
4
4
#include "../../disco/tiles.h"
5
5
#include "../../disco/shred/fd_stake_ci.h"
6
+ #include "../../util/hist/fd_histf.h"
6
7
7
8
/* Common library functions for the Proof of History tile. */
8
9
Original file line number Diff line number Diff line change 6
6
#include "../../flamenco/runtime/fd_system_ids.h"
7
7
#include "../../flamenco/runtime/fd_system_ids_pp.h"
8
8
9
+ #if FD_HAS_AVX
10
+ #include "../../util/simd/fd_avx.h"
11
+ #endif
12
+
9
13
#define FD_RESOLV_IN_KIND_FRAGMENT (0)
10
14
#define FD_RESOLV_IN_KIND_BANK (1)
11
15
Original file line number Diff line number Diff line change 1
1
#include "fd_gossip.h"
2
2
#include "../../ballet/base58/fd_base58.h"
3
3
#include "../../disco/keyguard/fd_keyguard.h"
4
+ #include <math.h>
4
5
5
6
/* Maximum size of a network packet */
6
7
#define PACKET_DATA_SIZE 1232
Original file line number Diff line number Diff line change 6
6
#include "../fd_flamenco_base.h"
7
7
#include "../../ballet/txn/fd_txn.h"
8
8
#include "fd_txn_account.h"
9
+ #include "../../util/simd/fd_avx.h"
9
10
10
11
/* FD_ACC_MGR_{SUCCESS,ERR{...}} are account management specific error codes.
11
12
To be stored in an int. */
Original file line number Diff line number Diff line change 31
31
#include "../../ballet/base58/fd_base58.h"
32
32
#include "../../disco/pack/fd_pack.h"
33
33
#include "../../disco/pack/fd_pack_cost.h"
34
- #include "../../ballet/sbpf/fd_sbpf_loader.h"
35
34
36
35
#include "../../util/bits/fd_uwide.h"
37
36
38
37
#include <assert.h>
39
- #include <errno .h>
38
+ #include <math .h>
40
39
#include <stdio.h> /* snprintf(3) */
41
40
#include <fcntl.h> /* openat(2) */
42
41
#include <unistd.h> /* write(3) */
Original file line number Diff line number Diff line change 1
1
#include "fd_funk.h"
2
2
#include "fd_funk_base.h"
3
+ #include <math.h>
3
4
4
5
#define FUNK_TAG 1UL
5
6
Original file line number Diff line number Diff line change 26
26
#include "sandbox/fd_sandbox.h" /* includes fd_util_base.h */
27
27
#include "math/fd_stat.h" /* includes bits/fd_bits.h */
28
28
#include "bits/fd_sat.h" /* includes bits/fd_bits.h */
29
- #include "hist/fd_histf.h" /* includes log/fd_log.h */
29
+ // #include "hist/fd_histf.h" /* includes log/fd_log.h */
30
30
31
31
/* Additional fd_util APIs that are not included by default */
32
32
Original file line number Diff line number Diff line change 86
86
87
87
#include "../aio/fd_aio.h"
88
88
#include "../tls/fd_tls.h"
89
+ #include "../../util/hist/fd_histf.h"
89
90
90
91
/* FD_QUIC_API marks public API declarations. No-op for now. */
91
92
#define FD_QUIC_API
Original file line number Diff line number Diff line change 11
11
#include "fd_quic_stream_pool.h"
12
12
#include "fd_quic_pretty_print.h"
13
13
#include "fd_quic_svc_q.h"
14
+ #include <math.h>
14
15
15
16
#include "../../util/log/fd_dtrace.h"
16
17
#include "../../util/net/fd_ip4.h"
You can’t perform that action at this time.
0 commit comments