aboutsummaryrefslogtreecommitdiff
path: root/simpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'simpl.c')
-rw-r--r--simpl.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/simpl.c b/simpl.c
index f22d491..99e09df 100644
--- a/simpl.c
+++ b/simpl.c
@@ -32,20 +32,20 @@ blit(Ref sd[2], int sz, Fn *fn)
static int
ulog2_tab64[64] = {
- 63, 0, 58, 1, 59, 47, 53, 2,
- 60, 39, 48, 27, 54, 33, 42, 3,
- 61, 51, 37, 40, 49, 18, 28, 20,
- 55, 30, 34, 11, 43, 14, 22, 4,
- 62, 57, 46, 52, 38, 26, 32, 41,
- 50, 36, 17, 19, 29, 10, 13, 21,
- 56, 45, 25, 31, 35, 16, 9, 12,
- 44, 24, 15, 8, 23, 7, 6, 5
+ 63, 0, 1, 41, 37, 2, 16, 42,
+ 38, 29, 32, 3, 12, 17, 43, 55,
+ 39, 35, 30, 53, 33, 21, 4, 23,
+ 13, 9, 18, 6, 25, 44, 48, 56,
+ 62, 40, 36, 15, 28, 31, 11, 54,
+ 34, 52, 20, 22, 8, 5, 24, 47,
+ 61, 14, 27, 10, 51, 19, 7, 46,
+ 60, 26, 50, 45, 59, 49, 58, 57,
};
static int
ulog2(uint64_t pow2)
{
- return ulog2_tab64[(pow2 * 0x07EDD5E59A4E28C2) >> 58];
+ return ulog2_tab64[(pow2 * 0x5b31ab928877a7e) >> 58];
}
static int