summaryrefslogtreecommitdiff
path: root/lib/scudo/scudo_crc32.h
blob: 6635cc78bbab84e7df99cbb14901c0a800ff5b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//===-- scudo_crc32.h -------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// Header for scudo_crc32.cpp.
///
//===----------------------------------------------------------------------===//

#ifndef SCUDO_CRC32_H_
#define SCUDO_CRC32_H_

#include "sanitizer_common/sanitizer_internal_defs.h"

namespace __scudo {

enum : u8 {
  CRC32Software = 0,
  CRC32Hardware = 1,
};

u32 computeCRC32(u32 Crc, uptr Data, u8 HashType);

}  // namespace __scudo

#endif  // SCUDO_CRC32_H_