function c = bitmax
%BITMAX Maximum floating point integer.
%   BITMAX returns the maximum unsigned floating point integer for
%   this machine.  It is the value when all bits are set.
%   On IEEE machines, this is the value 2^53-1;
%
%   See also BITAND, BITOR, BITXOR, BITCMP, BITSHIFT, BITSET, BITGET.

%   Clay M. Thompson 2-12-95
%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 1997/11/21 23:39:38 $

if isieee, 
  c = 9007199254740991; % 53 bits
elseif isvms
  c = 4503599627370495; % 52 bits
else
  c = 4294967295;       % 32 bits (just to be safe)
end
