Blame gettext-runtime/intl/hash-string.h

Packit Bot 06c835
/* Description of GNU message catalog format: string hashing function.
Packit Bot 06c835
   Copyright (C) 1995-2015 Free Software Foundation, Inc.
Packit Bot 06c835
Packit Bot 06c835
   This program is free software: you can redistribute it and/or modify
Packit Bot 06c835
   it under the terms of the GNU Lesser General Public License as published by
Packit Bot 06c835
   the Free Software Foundation; either version 2.1 of the License, or
Packit Bot 06c835
   (at your option) any later version.
Packit Bot 06c835
Packit Bot 06c835
   This program is distributed in the hope that it will be useful,
Packit Bot 06c835
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 06c835
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 06c835
   GNU Lesser General Public License for more details.
Packit Bot 06c835
Packit Bot 06c835
   You should have received a copy of the GNU Lesser General Public License
Packit Bot 06c835
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit Bot 06c835
Packit Bot 06c835
/* @@ end of prolog @@ */
Packit Bot 06c835
Packit Bot 06c835
/* We assume to have `unsigned long int' value with at least 32 bits.  */
Packit Bot 06c835
#define HASHWORDBITS 32
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
#ifndef _LIBC
Packit Bot 06c835
# ifdef IN_LIBINTL
Packit Bot 06c835
#  define __hash_string libintl_hash_string
Packit Bot 06c835
# else
Packit Bot 06c835
#  define __hash_string hash_string
Packit Bot 06c835
# endif
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
/* Defines the so called `hashpjw' function by P.J. Weinberger
Packit Bot 06c835
   [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
Packit Bot 06c835
   1986, 1987 Bell Telephone Laboratories, Inc.]  */
Packit Bot 06c835
extern unsigned long int __hash_string (const char *str_param);