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

y = bin2dec(dec2bin(circshift(double( dec2bin(x,32)-48 ),[0 -r]))');

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