Binary Multiplication by nn

$(FS=",")=$0{for(;i<8;i++)for(j=3;--j;$j=int($j/10))$(j+2)+=$j%10?2^i:0
v=$3*$4
for(k=8;k--;v-=r*2^k)printf r=int(v/2^k)}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page