Debian Codegraph @

third-party/xxhash/tests/collisions/allcodecs/dummy.h

raw
1 /*
2 * dummy.c,
3 * A fake hash algorithm, just to test integration capabilities.
4 * Part of the xxHash project
5 * Copyright (C) 2020 Yann Collet
6 *
7 * GPL v2 License
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 *
23 * You can contact the author at:
24 * - xxHash homepage: https://www.xxhash.com
25 * - xxHash source repository: https://github.com/Cyan4973/xxHash
26 */
27
28 #ifndef DUMMY_H_987987
29 #define DUMMY_H_987987
30
31 #if defined (__cplusplus)
32 extern "C" {
33 #endif
34
35
36 #include <stddef.h> /* size_t */
37
38 unsigned badsum32(const void* input, size_t len, unsigned seed);
39
40
41 #if defined (__cplusplus)
42 }
43 #endif
44
45 #endif /* DUMMY_H_987987 */