mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
synced 2025-10-23 08:22:07 +00:00
After so many years of silence, we don't expect the original author to return to the project. To make things a bit simpler for us, we convert the coding style to what we are used to (Linux style). The conversion was made using the 'Lindent' script which is part of the Linux kernel.
27 lines
744 B
C
Executable File
27 lines
744 B
C
Executable File
/*
|
|
* Hash lookup function.
|
|
* Copyright (C) 2003, 2004 Mondru AB.
|
|
*
|
|
* The contents of this file may be used under the terms of the GNU
|
|
* General Public License Version 2, provided that the above copyright
|
|
* notice and this permission notice is included in all copies or
|
|
* substantial portions of the software.
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* lookup()
|
|
* Generates a 32 bit hash.
|
|
* Based on public domain code by Bob Jenkins
|
|
* It should be one of the best hash functions around in terms of both
|
|
* statistical properties and speed. It is NOT recommended for cryptographic
|
|
* purposes.
|
|
**/
|
|
|
|
#ifndef _LOOKUP_H
|
|
#define _LOOKUP_H
|
|
unsigned long int lookup(unsigned char *k, unsigned long int length,
|
|
unsigned long int level);
|
|
|
|
#endif /* !_LOOKUP_H */
|