Skip to content

Commit

Permalink
Merge branch 'parpar' into turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Sep 6, 2023
2 parents 1ff3579 + d744178 commit b8084ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parpar/gf16/gf16_checksum_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ ALIGN_TO(64, static char load_mask[64]) = {
#endif

// load part of a vector, zeroing out remaining bytes
static inline _mword partial_load(const void* ptr, size_t bytes)
#if HEDLEY_HAS_ATTRIBUTE(no_sanitize)
__attribute__((no_sanitize("address"))) // suppress 'heap-buffer-overflow' due to possibly reading past the end of the buffer; as it's an aligned load, it'll never actually cause a fault
#endif
{
static inline _mword partial_load(const void* ptr, size_t bytes) {
#if MWORD_SIZE == 64
// AVX512 is easy - masked load does the trick
return _mm512_maskz_loadu_epi8((1ULL<<bytes)-1, ptr);
Expand Down

0 comments on commit b8084ea

Please sign in to comment.