LLVM  9.0.0svn
CRC.h
Go to the documentation of this file.
1 //===-- llvm/Support/CRC.h - Cyclic Redundancy Check-------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains basic functions for calculating Cyclic Redundancy Check
10 // or CRC.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_SUPPORT_CRC_H
15 #define LLVM_SUPPORT_CRC_H
16 
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Support/DataTypes.h"
19 
20 namespace llvm {
21 /// zlib independent CRC32 calculation.
22 uint32_t crc32(uint32_t CRC, StringRef S);
23 } // end namespace llvm
24 
25 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
uint32_t crc32(uint32_t CRC, StringRef S)
zlib independent CRC32 calculation.
Definition: CRC.cpp:65