function y = issingle(x)
% MATLAB Code Generation Library function.

%ISSINGLE  True for FI object with "single" as the datatype input.
%   ISSINGLE(X) returns 1 if X is a FI object with datatype == single;
%              and 0 if X is a FI object with datatype != single.
%
%   Examples:
%     x = fi(pi, 'DataType','single');
%     issingle(x)
%
%   Copyright 2002-2014 The MathWorks, Inc.
%#codegen

coder.extrinsic('strcmpi');

eml_invariant(nargin == 1, 'fixed:coder:incorrectNumberOfInputs');

T = eml_typeof(x);
y = coder.const(strcmpi(get(T, 'DataType'), 'Single')); 
