Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 706196
Collapse All | Expand All

(-)a/hash.c (+2 lines)
Lines 4-9 Link Here
4
#include "jenkins_hash.h"
4
#include "jenkins_hash.h"
5
#include "murmur3_hash.h"
5
#include "murmur3_hash.h"
6
6
7
hash_func hash;
8
7
int hash_init(enum hashfunc_type type) {
9
int hash_init(enum hashfunc_type type) {
8
    switch(type) {
10
    switch(type) {
9
        case JENKINS_HASH:
11
        case JENKINS_HASH:
(-)a/hash.h (-2 / +1 lines)
Lines 2-8 Link Here
2
#define    HASH_H
2
#define    HASH_H
3
3
4
typedef uint32_t (*hash_func)(const void *key, size_t length);
4
typedef uint32_t (*hash_func)(const void *key, size_t length);
5
hash_func hash;
5
extern hash_func hash;
6
6
7
enum hashfunc_type {
7
enum hashfunc_type {
8
    JENKINS_HASH=0, MURMUR3_HASH
8
    JENKINS_HASH=0, MURMUR3_HASH
9
- 

Return to bug 706196