mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Minor Cleanup
This commit is contained in:
parent
ba4343d9d1
commit
1362e9aee2
@ -291,8 +291,9 @@ local function is_int32(num)
|
|||||||
return -2147483648 <= num and num < 2147483648
|
return -2147483648 <= num and num < 2147483648
|
||||||
end
|
end
|
||||||
|
|
||||||
local function_is_int16(num)
|
local function is_int16(num)
|
||||||
return -32768 <= num and num < 32768
|
return -32768 <= num and num < 32768
|
||||||
|
end
|
||||||
|
|
||||||
-- Split a memory operand of the form d(b) or d(x,b) into d, x and b.
|
-- Split a memory operand of the form d(b) or d(x,b) into d, x and b.
|
||||||
-- If x is not specified then it is 0.
|
-- If x is not specified then it is 0.
|
||||||
@ -1044,7 +1045,7 @@ local function parse_template(params, template, nparams, pos)
|
|||||||
elseif p == "h" then
|
elseif p == "h" then
|
||||||
op2 = op2 + shl(parse_gpr(params[1]),4) + parse_gpr(params[2])
|
op2 = op2 + shl(parse_gpr(params[1]),4) + parse_gpr(params[2])
|
||||||
wputhw(op1); wputhw(op2)
|
wputhw(op1); wputhw(op2)
|
||||||
else if p == "i" then
|
elseif p == "i" then
|
||||||
op1 = op1 + shl(parse_gpr(params[1]),4)
|
op1 = op1 + shl(parse_gpr(params[1]),4)
|
||||||
wputhw(op1);
|
wputhw(op1);
|
||||||
parse_imm16(params[2])
|
parse_imm16(params[2])
|
||||||
|
Loading…
Reference in New Issue
Block a user