diff options
Diffstat (limited to 'src/lj_ir.c')
-rw-r--r-- | src/lj_ir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_ir.c b/src/lj_ir.c index 3217bc1e..89be71aa 100644 --- a/src/lj_ir.c +++ b/src/lj_ir.c | |||
@@ -195,7 +195,7 @@ void lj_ir_k64_freeall(jit_State *J) | |||
195 | } | 195 | } |
196 | 196 | ||
197 | /* Find 64 bit constant in chained array or add it. */ | 197 | /* Find 64 bit constant in chained array or add it. */ |
198 | static cTValue *ir_k64_find(jit_State *J, uint64_t u64) | 198 | cTValue *lj_ir_k64_find(jit_State *J, uint64_t u64) |
199 | { | 199 | { |
200 | K64Array *k, *kp = NULL; | 200 | K64Array *k, *kp = NULL; |
201 | TValue *ntv; | 201 | TValue *ntv; |
@@ -249,13 +249,13 @@ found: | |||
249 | /* Intern FP constant, given by its 64 bit pattern. */ | 249 | /* Intern FP constant, given by its 64 bit pattern. */ |
250 | TRef lj_ir_knum_u64(jit_State *J, uint64_t u64) | 250 | TRef lj_ir_knum_u64(jit_State *J, uint64_t u64) |
251 | { | 251 | { |
252 | return lj_ir_k64(J, IR_KNUM, ir_k64_find(J, u64)); | 252 | return lj_ir_k64(J, IR_KNUM, lj_ir_k64_find(J, u64)); |
253 | } | 253 | } |
254 | 254 | ||
255 | /* Intern 64 bit integer constant. */ | 255 | /* Intern 64 bit integer constant. */ |
256 | TRef lj_ir_kint64(jit_State *J, uint64_t u64) | 256 | TRef lj_ir_kint64(jit_State *J, uint64_t u64) |
257 | { | 257 | { |
258 | return lj_ir_k64(J, IR_KINT64, ir_k64_find(J, u64)); | 258 | return lj_ir_k64(J, IR_KINT64, lj_ir_k64_find(J, u64)); |
259 | } | 259 | } |
260 | 260 | ||
261 | /* Check whether a number is int and return it. -0 is NOT considered an int. */ | 261 | /* Check whether a number is int and return it. -0 is NOT considered an int. */ |