%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Copyright: 2010 Integrated Sytems Laboratory, ETH Zurich
%%            http://www.iis.ee.ethz.ch/~sha3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function not=complement(a)
tmp0=uint64(bitcmp(uint32(bitand(bitshift(a,-32),2^32-1)),32));
tmp1=uint64(bitcmp(uint32(bitand(a,2^32-1)))); 
not= bitor(bitshift(tmp0,32),tmp1);
end

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