Loading...
db/hash/hash_log2.c Libc-320 Libc-262.3.2
--- Libc/Libc-320/db/hash/hash_log2.c
+++ Libc/Libc-262.3.2/db/hash/hash_log2.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -22,8 +22,8 @@
  * 
  * @APPLE_LICENSE_HEADER_END@
  */
-/*-
- * Copyright (c) 1990, 1993, 1994
+/*
+ * Copyright (c) 1990, 1993
  *	The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by
@@ -58,20 +58,14 @@
  * SUCH DAMAGE.
  */
 
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_log2.c	8.2 (Berkeley) 5/31/94";
-#endif /* LIBC_SCCS and not lint */
-#include <sys/cdefs.h>
 
 #include <sys/types.h>
 
-#include <db.h>
-
-u_int32_t
+u_int
 __log2(num)
-	u_int32_t num;
+	u_int num;
 {
-	u_int32_t i, limit;
+	register u_int i, limit;
 
 	limit = 1;
 	for (i = 0; limit < num; limit = limit << 1, i++);