This is a static copy of a profile reportHome
intmin (404 calls, 0.070 sec)
Generated 05-Nov-2014 07:52:50 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/elmat/intmin.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
26 | case 'uint8' | 404 | 0.020 s | 28.6% |  |
30 | case 'uint16' | 404 | 0.010 s | 14.3% |  |
23 | switch (classname) | 404 | 0.010 s | 14.3% |  |
21 | classname = varargin{1}; | 404 | 0.010 s | 14.3% |  |
31 | imin = uint16(0); | 404 | 0 s | 0% |  |
All other lines | | | 0.020 s | 28.6% |  |
Totals | | | 0.070 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 48 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 31 |
Code lines that did run | 10 |
Code lines that did not run | 21 |
Coverage (did run/can run) | 32.26 % |
Function listing
time calls line
1 function imin = intmin(varargin)
2 %INTMIN Smallest integer value.
3 % X = INTMIN is the smallest value representable in an int32.
4 % Any value that is smaller than INTMIN will saturate to INTMIN when
5 % cast to int32.
6 %
7 % INTMIN('int32') is the same as INTMIN with no arguments.
8 %
9 % INTMIN(CLASSNAME) is the smallest value in the integer class CLASSNAME.
10 % Valid values of CLASSNAME are 'int8', 'uint8', 'int16', 'uint16',
11 % 'int32', 'uint32', 'int64' and 'uint64'.
12 %
13 % See also INTMAX, REALMIN.
14
15 % Copyright 1984-2004 The MathWorks, Inc.
16 % $Revision: 1.1.6.7 $ $Date: 2010/08/23 23:08:06 $
17
404 18 if (nargin == 0)
19 imin = int32(-2147483648);
404 20 elseif (nargin == 1)
0.01 404 21 classname = varargin{1};
404 22 if ischar(classname)
0.01 404 23 switch (classname)
404 24 case 'int8'
25 imin = int8(-128);
0.02 404 26 case 'uint8'
27 imin = uint8(0);
404 28 case 'int16'
29 imin = int16(-32768);
0.01 404 30 case 'uint16'
404 31 imin = uint16(0);
32 case 'int32'
33 imin = int32(-2147483648);
34 case 'uint32'
35 imin = uint32(0);
36 case 'int64'
37 imin = int64(-9223372036854775808);
38 case 'uint64'
39 imin = uint64(0);
40 otherwise
41 error(message('MATLAB:intmin:invalidClassName'))
42 end
43 else
44 error(message('MATLAB:intmin:inputMustBeString'))
45 end
46 else % nargin > 1
47 error(message('MATLAB:intmin:tooManyInputs'));
48 end