diff options
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp b/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp index 6731b449462..a53716a2973 100644 --- a/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp +++ b/vespalib/src/vespa/vespalib/hwaccelrated/private_helpers.hpp @@ -2,6 +2,7 @@ #pragma once +#include <vespa/config.h> #include <vespa/vespalib/util/optimized.h> #include <cstring> @@ -24,6 +25,14 @@ populationCount(const uint64_t *a, size_t sz) { return count; } +#ifdef VESPA_USE_THREAD_SANITIZER +/* + * Source bitvectors might be modified due to feeding during search. + */ +template<typename T, unsigned ChunkSize> +T get(const void * base, bool invert)__attribute__((no_sanitize("thread"))); +#endif + template<typename T, unsigned ChunkSize> T get(const void * base, bool invert) { static_assert(sizeof(T) == ChunkSize, "sizeof(T) == ChunkSize"); |