Namespace protection for mi_vector_hash.
This commit is contained in:
parent
8149351614
commit
ec66a10c91
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: namespace.h,v 1.140 2009/12/02 08:46:33 roy Exp $ */
|
||||
/* $NetBSD: namespace.h,v 1.141 2010/03/19 18:11:30 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
|
||||
@ -426,6 +426,7 @@
|
||||
#define lrand48 _lrand48
|
||||
#define lseek _lseek
|
||||
#define mergesort _mergesort
|
||||
#define mi_vector_hash _mi_vector_hash
|
||||
#define mkstemp _mkstemp
|
||||
#define mmap _mmap
|
||||
#define mpool_close _mpool_close
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mi_vector_hash.c,v 1.2 2010/02/04 10:27:08 roy Exp $ */
|
||||
/* $NetBSD: mi_vector_hash.c,v 1.3 2010/03/19 18:11:30 joerg Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
@ -43,7 +43,9 @@
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: mi_vector_hash.c,v 1.2 2010/02/04 10:27:08 roy Exp $");
|
||||
__RCSID("$NetBSD: mi_vector_hash.c,v 1.3 2010/03/19 18:11:30 joerg Exp $");
|
||||
|
||||
#include "namespace.h"
|
||||
|
||||
#include <sys/endian.h>
|
||||
#include <stdint.h>
|
||||
@ -63,6 +65,10 @@ __RCSID("$NetBSD: mi_vector_hash.c,v 1.2 2010/02/04 10:27:08 roy Exp $");
|
||||
|
||||
#define FIXED_SEED 0x9e3779b9 /* Golden ratio, arbitrary constant */
|
||||
|
||||
#ifdef __weak_alias
|
||||
__weak_alias(mi_vector_hash, _mi_vector_hash)
|
||||
#endif
|
||||
|
||||
void
|
||||
mi_vector_hash(const void * __restrict key, size_t len, uint32_t seed,
|
||||
uint32_t hashes[3])
|
||||
|
Loading…
x
Reference in New Issue
Block a user