%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Copyright: 2010 Integrated Sytems Laboratory, ETH Zurich
%%            http://www.iis.ee.ethz.ch/~sha3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function y=dec2u32(x)

t = dec2bin(x,32);
y = 0;

for i=1:length(t),
    
    if t(i) == '/' | t(i) == '1',
        y = y + 2^(32-i);
    end
end


Generated on Fri Sep 24 10:39:12 CEST 2010
Home