Unnamed
public text v1 · immutablefunction bwa(i1,i2){cr=i1&i2;bt=i1^i2;do{cr<<=1;tmp=bt^cr;cr&=bt;bt=tmp;}while(cr);return bt;}
trace(bwa(12, 10)); // Traces 22.
trace(12 + 10); // Traces 22.function bwa(i1,i2){cr=i1&i2;bt=i1^i2;do{cr<<=1;tmp=bt^cr;cr&=bt;bt=tmp;}while(cr);return bt;}
trace(bwa(12, 10)); // Traces 22.
trace(12 + 10); // Traces 22.