• + 0 comments

    long andProduct(long a, long b) { if (a==b) return a; return ~(oneFill(a^b))&(a|b); }

    // onefill is a function that will fill all bits to the right starting with the leftmost 1 to 1