function [rangexfi1,rangexfi2] = range(xfi)
% MATLAB Code Generation Library function for @fi/range.
%
% RANGE(A) will return true if A is signed, fase  if unsigned.

% $INCLUDE(DOC) toolbox/eml/lib/fixedpoint/range.m $
% Copyright 2002-2014 The MathWorks, Inc.
%#codegen
% $Revision $  

 
eml_allow_mx_inputs;
if eml_ambiguous_types
    if nargout == 1
        rangexfi1 = [coder.internal.scalarEg(real(xfi)),coder.internal.scalarEg(real(xfi))];
        rangexfi2 = [];
    elseif nargout == 2
        rangexfi1 = coder.internal.scalarEg(real(xfi));
        rangexfi2 = coder.internal.scalarEg(real(xfi));
    end
    return;
end

%Tx = eml_typeof(xfi);
%Fx = eml_fimath(xfi);
if nargout == 1
    lb=lowerbound(xfi);
    ub=upperbound(xfi);
    rangexfi1 = [coder.internal.scalarEg(real(xfi)),coder.internal.scalarEg(real(xfi))];
    rangexfi1(1) = lb;
    rangexfi1(2) = ub;
    rangexfi2 = [];
elseif nargout == 2
    rangexfi1 = lowerbound(xfi);
    rangexfi2 = upperbound(xfi);
end


%---------------------------------------------------------------
