Remove ucore_ prefix from headers and source files
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include "ucore/hash.h"
|
||||
|
||||
uint32_t
|
||||
uc_elfhash(const char *str, uint32_t len)
|
||||
{
|
||||
uint32_t hash = 0;
|
||||
uint32_t x = 0;
|
||||
uint32_t i = 0;
|
||||
|
||||
for (i = 0; i < len; str++, i++) {
|
||||
hash = (hash << 4) + (*str);
|
||||
if ((x = hash & 0xF0000000L) != 0) {
|
||||
hash ^= (x >> 24);
|
||||
hash &= ~x;
|
||||
}
|
||||
}
|
||||
|
||||
return hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user