aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lobject.c b/lobject.c
index 5c270b27..b558cfe0 100644
--- a/lobject.c
+++ b/lobject.c
@@ -31,7 +31,8 @@
31 31
32 32
33/* 33/*
34** Computes ceil(log2(x)) 34** Computes ceil(log2(x)), which is the smallest integer n such that
35** x <= (1 << n).
35*/ 36*/
36lu_byte luaO_ceillog2 (unsigned int x) { 37lu_byte luaO_ceillog2 (unsigned int x) {
37 static const lu_byte log_2[256] = { /* log_2[i - 1] = ceil(log2(i)) */ 38 static const lu_byte log_2[256] = { /* log_2[i - 1] = ceil(log2(i)) */