summaryrefslogtreecommitdiff
path: root/lib/libc/db/hash/hash_log2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/db/hash/hash_log2.c')
-rw-r--r--lib/libc/db/hash/hash_log2.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/db/hash/hash_log2.c b/lib/libc/db/hash/hash_log2.c
index 0a9817df653..244560c0870 100644
--- a/lib/libc/db/hash/hash_log2.c
+++ b/lib/libc/db/hash/hash_log2.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: hash_log2.c,v 1.4 1999/02/15 05:11:24 millert Exp $ */
+
/*-
* Copyright (c) 1990, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -35,18 +37,20 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: hash_log2.c,v 1.3 1996/08/19 08:20:38 tholo Exp $";
+#if 0
+static char sccsid[] = "@(#)hash_log2.c 8.4 (Berkeley) 11/7/95";
+#else
+static char rcsid[] = "$OpenBSD: hash_log2.c,v 1.4 1999/02/15 05:11:24 millert Exp $";
+#endif
#endif /* LIBC_SCCS and not lint */
-#include <sys/types.h>
-
#include <db.h>
u_int32_t
__log2(num)
u_int32_t num;
{
- register u_int32_t i, limit;
+ u_int32_t i, limit;
limit = 1;
for (i = 0; limit < num; limit = limit << 1, i++);