From ab0bf875a5f328a6710f4e48258979ae1bc8da1c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 16 Apr 2017 16:02:53 +0000 Subject: Vendor import of compiler-rt trunk r300422: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300422 --- lib/scudo/scudo_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/scudo/scudo_utils.h') diff --git a/lib/scudo/scudo_utils.h b/lib/scudo/scudo_utils.h index ef2a609671ac4..5082d79f69543 100644 --- a/lib/scudo/scudo_utils.h +++ b/lib/scudo/scudo_utils.h @@ -53,7 +53,11 @@ struct Xorshift128Plus { u64 State[2]; }; -// Software CRC32 functions, to be used when hardware support is not detected. +enum : u8 { + CRC32Software = 0, + CRC32Hardware = 1, +}; + u32 computeSoftwareCRC32(u32 Crc, uptr Data); } // namespace __scudo -- cgit v1.2.3