comparison include/llvm/Support/JamCRC.h @ 147:c2174574ed3a

LLVM 10
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 16:55:33 +0900
parents 1172e4bd9c6f
children
comparison
equal deleted inserted replaced
134:3a76565eade5 147:c2174574ed3a
1 //===-- llvm/Support/JamCRC.h - Cyclic Redundancy Check ---------*- C++ -*-===// 1 //===-- llvm/Support/JamCRC.h - Cyclic Redundancy Check ---------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // 4 // See https://llvm.org/LICENSE.txt for license information.
5 // This file is distributed under the University of Illinois Open Source 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // License. See LICENSE.TXT for details.
7 // 6 //
8 //===----------------------------------------------------------------------===// 7 //===----------------------------------------------------------------------===//
9 // 8 //
10 // This file contains an implementation of JamCRC. 9 // This file contains an implementation of JamCRC.
11 // 10 //
34 33
35 class JamCRC { 34 class JamCRC {
36 public: 35 public:
37 JamCRC(uint32_t Init = 0xFFFFFFFFU) : CRC(Init) {} 36 JamCRC(uint32_t Init = 0xFFFFFFFFU) : CRC(Init) {}
38 37
39 // \brief Update the CRC calculation with Data. 38 // Update the CRC calculation with Data.
40 void update(ArrayRef<char> Data); 39 void update(ArrayRef<char> Data);
41 40
42 uint32_t getCRC() const { return CRC; } 41 uint32_t getCRC() const { return CRC; }
43 42
44 private: 43 private: