Annotation of parser3/src/lib/md5/pa_xxhash.h, revision 1.1

1.1     ! moko        1: /** @file
        !             2:        Parser: XXH32 and XXH64 non-cryptographic hash functions.
        !             3: 
        !             4:        The algorithms and their constants are by Yann Collet, xxHash (https://xxhash.com/):
        !             5: 
        !             6:        Copyright (C) 2012-2023 Yann Collet
        !             7: 
        !             8:        BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
        !             9: 
        !            10:        Redistribution and use in source and binary forms, with or without
        !            11:        modification, are permitted provided that the following conditions are met:
        !            12: 
        !            13:        * Redistributions of source code must retain the above copyright
        !            14:          notice, this list of conditions and the following disclaimer.
        !            15:        * Redistributions in binary form must reproduce the above
        !            16:          copyright notice, this list of conditions and the following disclaimer
        !            17:          in the documentation and/or other materials provided with the
        !            18:          distribution.
        !            19: 
        !            20:        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
        !            21:        "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
        !            22:        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
        !            23:        A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
        !            24:        OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
        !            25:        SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
        !            26:        LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            27:        DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            28:        THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            29:        (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        !            30:        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            31: 
        !            32:        Compact portable implementation for Parser 3: works with any byte order and alignment
        !            33: */
        !            34: 
        !            35: #ifndef PA_XXHASH_H
        !            36: #define PA_XXHASH_H
        !            37: 
        !            38: #define IDENT_PA_XXHASH_H "$Id$"
        !            39: 
        !            40: #include "pa_config_includes.h"
        !            41: 
        !            42: #ifdef __cplusplus
        !            43: extern "C" {
        !            44: #endif
        !            45: 
        !            46: uint32_t pa_xxh32(const void* input, size_t length, uint32_t seed);
        !            47: uint64_t pa_xxh64(const void* input, size_t length, uint64_t seed);
        !            48: 
        !            49: #ifdef __cplusplus
        !            50: }
        !            51: #endif
        !            52: 
        !            53: #endif

E-mail: