PS2SDK
PS2 Homebrew Libraries
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
Variables
_
c
d
f
g
i
k
m
n
p
q
r
s
t
u
v
w
Typedefs
a
d
h
i
l
m
n
p
r
s
t
w
Enumerations
_
a
c
d
g
i
l
m
n
o
p
s
t
v
Enumerator
c
d
e
g
i
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
z
▼
PS2SDK
PS2SDK - PS2DEV Open Source Project
PS2SDK - KERNEL LIBRARY
remote
►
Topics
►
Data Structures
▼
Files
▼
File List
►
common
▼
ee
►
debug
►
dma
►
draw
►
eedebug
►
elf-loader
▼
erl
▼
include
►
erl.h
hashtab.h
lookupa.h
recycle.h
standard.h
►
src
►
erl-loader
►
font
►
graph
►
input
►
iopreboot
►
kernel
►
libcglue
►
libgs
►
libprofglue
►
libpthreadglue
►
libvux
►
math3d
►
mpeg
►
network
►
packet
►
packet2
►
rpc
►
sbv
►
startup
►
iop
►
tools
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
lookupa.h
1
/*
2
------------------------------------------------------------------------------
3
By Bob Jenkins, September 1996.
4
lookupa.h, a hash function for table lookup, same function as lookup.c.
5
Use this code in any way you wish. Public Domain. It has no warranty.
6
Source is http://burtleburtle.net/bob/c/lookupa.h
7
------------------------------------------------------------------------------
8
*/
9
10
#ifndef STANDARD
11
#include "standard.h"
12
#endif
13
14
#ifndef LOOKUPA
15
#define LOOKUPA
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
#define CHECKSTATE 8
22
#define hashsize(n) ((ub4)1<<(n))
23
#define hashmask(n) (hashsize(n)-1)
24
25
extern
ub4 lookup(
/*_ ub1 *k, ub4 length, ub4 level _*/
);
26
extern
void
checksum(
/*_ ub1 *k, ub4 length, ub4 *state _*/
);
27
28
#ifdef __cplusplus
29
}
30
#endif
31
32
#endif
/* LOOKUPA */
ee
erl
include
lookupa.h
Generated on Sun Mar 30 2025 21:53:09 for PS2SDK by
1.12.0