This is a static copy of a profile report

Home

imagesci/private/isxwd>byteswap (4 calls, 0.000 sec)
Generated 05-Aug-2011 13:01:20 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/imagesci/private/isxwd.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imagesci/private/isxwdfunction4
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
41
out = bitor(bitshift(lowByte, ...
40 s0%
40
highByte = bitshift(bitand(in,...
40 s0%
39
lowByte = bitand(in, 255);
40 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function7
Non-code lines (comments, blank lines)4
Code lines (lines that can run)3
Code lines that did run3
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
35 function out = byteswap(in)
36 %BYTESWAP Swap byte order for a number between 0 and 65535.
37 % OUT = BYTESWAP(IN)
38
4 39 lowByte = bitand(in, 255);
4 40 highByte = bitshift(bitand(in, 65280), -8);
4 41 out = bitor(bitshift(lowByte, 8), highByte);

Other subfunctions in this file are not included in this listing.