1 /*****************************************************************************
2 
3 Copyright (c) 2011, 2015, Oracle and/or its affiliates. All Rights Reserved.
4 Copyright (c) 2016, 2020, MariaDB Corporation.
5 
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free Software
8 Foundation; version 2 of the License.
9 
10 This program is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
17 
18 *****************************************************************************/
19 
20 /**************************************************//**
21 @file include/ut0crc32.h
22 CRC32 implementation
23 
24 Created Aug 10, 2011 Vasil Dimov
25 *******************************************************/
26 
27 #ifndef ut0crc32_h
28 #define ut0crc32_h
29 
30 #include "univ.i"
31 #include <my_sys.h>
ut_crc32(const byte * s,size_t size)32 static inline uint32_t ut_crc32(const byte *s, size_t size)
33 {
34   return my_crc32c(0, s, size);
35 }
36 
37 #endif /* ut0crc32_h */
38