"Fossies" - the Fresh Open Source Software Archive

Member "xxHash-0.8.0/tests/collisions/allcodecs/dummy.h" (27 Jul 2020, 1299 Bytes) of package /linux/misc/xxHash-0.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "dummy.h": 0.7.3_vs_0.7.4.

    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 */