%#codegen
function y = fi_bitand(a, b) 

coder.inline('always');
if isfi(a) && ~isfi(b)
    y = bitand(a, fi(b, numerictype(a), fimath(a)));
elseif ~isfi(a) && isfi(b)
    y = bitand(fi(a, numerictype(b), fimath(b)), b);
elseif isfi(a) && isfi(b)
    unionType = fixed.aggregateType(a, b);
    y = bitand(fi(a, unionType, fimath(a)), fi(b, unionType, fimath(b)));
else
    y = bitand(uint32(a), uint32(b));
end
end
