function [s,maxsize,endian] = computer(arch)
%MATLAB Code Generation Library Function

%   Limitations:
%   Can only be used when coder.target is '', 'sfun', or 'mex'.

%   Copyright 1984-2016 The MathWorks, Inc.
%#codegen

eml_invariant(strcmp(coder.target,'sfun') || ...
    strcmp(coder.target,'mex') || ...
    isempty(coder.target), ... % The isempty case is for x-testing.
    'Coder:toolbox:environmentUnknown','computer',coder.target, ...
    'IfNotConst','Fail');
if nargin == 1
    eml_invariant(nargout <= 1,'MATLAB:maxlhs');
    s = coder.const(feval('computer',coder.internal.toCharIfString(arch)));
else
    [smx,maxsizemx,endianmx] = feval('computer');
    s = coder.const(smx);
    maxsize = coder.const(maxsizemx);
    endian = coder.const(endianmx);
end
