]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/lib/scudo/scudo_crc32.h
New upstream version 1.20.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / lib / scudo / scudo_crc32.h
1 //===-- scudo_crc32.h -------------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// Header for scudo_crc32.cpp.
11 ///
12 //===----------------------------------------------------------------------===//
13
14 #ifndef SCUDO_CRC32_H_
15 #define SCUDO_CRC32_H_
16
17 #include "sanitizer_common/sanitizer_internal_defs.h"
18
19 namespace __scudo {
20
21 enum : u8 {
22 CRC32Software = 0,
23 CRC32Hardware = 1,
24 };
25
26 u32 computeCRC32(u32 Crc, uptr Data, u8 HashType);
27
28 } // namespace __scudo
29
30 #endif // SCUDO_CRC32_H_