summaryrefslogtreecommitdiff
path: root/progs/a969.py
blob: 5bbd6749d2a042866683e571244458a39c1969f9 (plain)
1
2
3
4
def is_Power_Of_Two (x): 
    return x and (not(x & (x - 1))) 
def differ_At_One_Bit_Pos(a,b): 
    return is_Power_Of_Two(a ^ b)