summaryrefslogtreecommitdiffstats
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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/db/hash/hash_log2.c b/lib/libc/db/hash/hash_log2.c
index c8c56bf..c9634dc 100644
--- a/lib/libc/db/hash/hash_log2.c
+++ b/lib/libc/db/hash/hash_log2.c
@@ -37,6 +37,8 @@
#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>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
@@ -46,7 +48,7 @@ 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++);
OpenPOWER on IntegriCloud