Go to the source code of this file.
|
static __inline int do_hash | PROTO ((unsigned char *, int, int)) |
|
struct hash_table * | new_hash () |
|
static __inline int | do_hash (unsigned char *name, int len, int size) |
|
void | add_hash (struct hash_table *table, unsigned char *name, int len, unsigned char *pointer) |
|
void | delete_hash_entry (struct hash_table *table, unsigned char *name, int len) |
|
unsigned char * | hash_lookup (struct hash_table *table, unsigned char *name, int len) |
|
◆ lint
◆ add_hash()
Definition at line 82 of file hash.c.
87{
88 int hashno;
90
92 return;
95
98
99 if (!bp) {
100 warn (
"Can't add %s to hash table.",
name);
101 return;
102 }
107 table -> buckets [hashno] = bp;
108}
ACPI_SIZE strlen(const char *String)
struct hash_bucket * new_hash_bucket(void)
static __inline int do_hash(unsigned char *name, int len, int size)
GLsizei const GLvoid * pointer
static unsigned __int64 next
Referenced by assign_file_addresses(), assign_inodes(), compute_linkcount(), and initialize_universes().
◆ delete_hash_entry()
Definition at line 110 of file hash.c.
114{
115 int hashno;
117
119 return;
122
124
125
126
127 for (bp =
table -> buckets [hashno]; bp; bp = bp ->
next) {
132 if (pbp) {
134 } else {
136 }
138 break;
139 }
140 pbp = bp;
141 }
142}
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
void free_hash_bucket(struct hash_bucket *ptr, char *name)
◆ do_hash()
Definition at line 63 of file hash.c.
67{
68 register int accum = 0;
69 register unsigned char *
s =
name;
72
74
75 while (accum > 255) {
76 accum = (accum & 255) + (accum >> 8);
77 }
78 }
80}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by add_hash(), delete_hash_entry(), collate< char >::hash(), collate< wchar_t >::hash(), and hash_lookup().
◆ hash_lookup()
Definition at line 144 of file hash.c.
148{
149 int hashno;
151
153 return (unsigned char *)0;
154
157
159
160 for (bp =
table -> buckets [hashno]; bp; bp = bp ->
next) {
163 }
164 return (unsigned char *)0;
165}
◆ new_hash()
Definition at line 53 of file hash.c.
54{
56 if (!rv)
57 return rv;
60 return rv;
61}
struct hash_table * new_hash_table(int count)
#define DEFAULT_HASH_SIZE
struct hash_bucket * buckets[DEFAULT_HASH_SIZE]
Referenced by initialize_universes(), and test_put_hash().
◆ PROTO()