diff options
author | Mike Pall <mike> | 2015-01-03 15:04:38 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2015-01-03 15:04:38 +0100 |
commit | 054e6abe37450344e20b373ec326055071029e9b (patch) | |
tree | d3abbe61e643f4f59797d2aea24cc3a0643df53b /src/lib_math.c | |
parent | a13dfd66c3427f9cc94044f261a526042b0d02f5 (diff) | |
download | luajit-054e6abe37450344e20b373ec326055071029e9b.tar.gz luajit-054e6abe37450344e20b373ec326055071029e9b.tar.bz2 luajit-054e6abe37450344e20b373ec326055071029e9b.zip |
Add LJ_FR2 mode: Two-slot frame info.
Diffstat (limited to 'src/lib_math.c')
-rw-r--r-- | src/lib_math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_math.c b/src/lib_math.c index 87ec2883..225630d0 100644 --- a/src/lib_math.c +++ b/src/lib_math.c | |||
@@ -57,7 +57,7 @@ LJLIB_ASM(math_log) LJLIB_REC(math_log) | |||
57 | #else | 57 | #else |
58 | x = lj_vm_log2(x); y = 1.0 / lj_vm_log2(y); | 58 | x = lj_vm_log2(x); y = 1.0 / lj_vm_log2(y); |
59 | #endif | 59 | #endif |
60 | setnumV(L->base-1, x*y); /* Do NOT join the expression to x / y. */ | 60 | setnumV(L->base-1-LJ_FR2, x*y); /* Do NOT join the expression to x / y. */ |
61 | return FFH_RES(1); | 61 | return FFH_RES(1); |
62 | } | 62 | } |
63 | return FFH_RETRY; | 63 | return FFH_RETRY; |