Home › Forums › General › Programming › Callback error: Lua runtime error › Reply To: Callback error: Lua runtime error
September 16, 2013 at 10:22 pm
#13324
Sure, they are some of the helper methods i use to calculate stuff.
function lsb(x)
if x ~= nil then
local bi = CtrlrLuaBigInteger(x)
local lsb = bi:getBitRangeAsInt (0,7)
return (lsb)
end
end
function msb(x)
if x ~= nil then
local bi = CtrlrLuaBigInteger(x)
local msb = bi:getBitRangeAsInt (7,7)
return (msb)
end
end