Skip to content

Commit

Permalink
mv constextr def into if
Browse files Browse the repository at this point in the history
  • Loading branch information
mo271 committed Oct 23, 2024
1 parent 13dfbac commit 726fe1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/base/sanitizers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
namespace jxl {
namespace msan {

#if JXL_MEMORY_SANITIZER

// Chosen so that kSanitizerSentinel is four copies of kSanitizerSentinelByte.
constexpr uint8_t kSanitizerSentinelByte = 0x48;
constexpr float kSanitizerSentinel = 205089.125f;

#if JXL_MEMORY_SANITIZER

static JXL_INLINE JXL_MAYBE_UNUSED void PoisonMemory(const volatile void* m,
size_t size) {
Expand Down

0 comments on commit 726fe1a

Please sign in to comment.