%#codegen
function y = fi_uminus(a)
coder.inline('always');
if isfi(a)
    nt = numerictype(a);
    new_nt = numerictype(1, nt.WordLength + 1, nt.FractionLength);
    y = -fi(a, new_nt, fimath(a));
else
    y = -a;
end

end