diff options
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]) |
