mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix a warning on array of size 0 under Windows
And better document new reality. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
1afbe1a1d7
commit
a7bfaede91
1 changed files with 3 additions and 3 deletions
6
src/tt.h
6
src/tt.h
|
@ -83,12 +83,12 @@ private:
|
||||||
const int ClusterSize = 4;
|
const int ClusterSize = 4;
|
||||||
|
|
||||||
/// Each group of ClusterSize number of TTEntry form a TTCluster
|
/// Each group of ClusterSize number of TTEntry form a TTCluster
|
||||||
/// that is indexed by a single position key. Cluster is padded
|
/// that is indexed by a single position key. TTCluster size must
|
||||||
/// to a cache line size so to guarantee always aligned accesses.
|
// be not bigger then a cache line size, in case it is less then
|
||||||
|
/// it should be padded to guarantee always aligned accesses.
|
||||||
|
|
||||||
struct TTCluster {
|
struct TTCluster {
|
||||||
TTEntry data[ClusterSize];
|
TTEntry data[ClusterSize];
|
||||||
char cache_line_padding[64 - sizeof(TTEntry[ClusterSize])];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue