diff options
| author | joerg <joerg@NetBSD.org> | 2010-03-19 18:11:30 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2010-03-19 18:11:30 +0000 |
| commit | ec66a10c91a52080748fb78b4e8288dfe7a6f7ef (patch) | |
| tree | 6a60b3434a6800a3feb7c34d8780f9939ca97879 /lib/libc/stdlib | |
| parent | 8149351614618205958c6f38077fc2db382f0d20 (diff) | |
Namespace protection for mi_vector_hash.
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/mi_vector_hash.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/stdlib/mi_vector_hash.c b/lib/libc/stdlib/mi_vector_hash.c index 401ccc34402..b867ebe858b 100644 --- a/lib/libc/stdlib/mi_vector_hash.c +++ b/lib/libc/stdlib/mi_vector_hash.c @@ -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]) |
