Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libCacheSim/dataStructure/hash/xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ typedef union {
static xxh_u32 XXH_read32(const void* ptr) {
typedef union {
xxh_u32 u32;
} __attribute__((packed)) xxh_unalign;
} __attribute__((packed, __may_alias__)) xxh_unalign;
return ((const xxh_unalign*)ptr)->u32;
}

Expand Down Expand Up @@ -1682,7 +1682,7 @@ static xxh_u64 XXH_read64(const void* ptr) {
typedef union {
xxh_u32 u32;
xxh_u64 u64;
} __attribute__((packed)) xxh_unalign64;
} __attribute__((packed, __may_alias__)) xxh_unalign64;
return ((const xxh_unalign64*)ptr)->u64;
}

Expand Down
Loading