Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add missing suppression in nanobench.h
Browse files Browse the repository at this point in the history
This will become release 4.3.4.
martinus committed Jun 1, 2021
1 parent 769ec12 commit 9a78ce4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bench/nanobench.h
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@
// see https://semver.org/
#define ANKERL_NANOBENCH_VERSION_MAJOR 4 // incompatible API changes
#define ANKERL_NANOBENCH_VERSION_MINOR 3 // backwards-compatible changes
#define ANKERL_NANOBENCH_VERSION_PATCH 3 // backwards-compatible bug fixes
#define ANKERL_NANOBENCH_VERSION_PATCH 4 // backwards-compatible bug fixes

///////////////////////////////////////////////////////////////////////////////////////////////////
// public facing api - as minimal as possible
@@ -1149,6 +1149,7 @@ void Rng::shuffle(Container& container) noexcept {
}
}

ANKERL_NANOBENCH_NO_SANITIZE("integer", "undefined")
constexpr uint64_t Rng::rotl(uint64_t x, unsigned k) noexcept {
return (x << k) | (x >> (64U - k));
}

0 comments on commit 9a78ce4

Please sign in to comment.