lunar_wave/test_vectors/fma.lua

16 lines
198 B
Lua

local function add (a, b)
return a + b
end
local function mul (a, b)
return a * b
end
local function fma (a, b, c)
return add (mul (a, b), c)
end
local x = fma (10, 11, 12)
print (x)
return x