lunar_wave/test_vectors/fma.lua

18 lines
282 B
Lua

-- This one fails :( I haven't implemented closures properly yet.
local function add (aa, bb)
return aa + bb
end
local function mul (cc, dd)
return cc * dd
end
local function fma (ee, ff, gg)
return add (mul (ee, ff), gg)
end
local hh = fma (10, 11, 12)
print (hh)
return hh