1 //===-- llvm/Support/CRC.h - Cyclic Redundancy Check-------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains basic functions for calculating Cyclic Redundancy Check
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_SUPPORT_CRC_H
15 #define LLVM_SUPPORT_CRC_H
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Support/DataTypes.h"
21 /// zlib independent CRC32 calculation.
22 uint32_t crc32(uint32_t CRC
, StringRef S
);
23 } // end namespace llvm