In article <26f8528c.35c1 at uop.uop.edu> acs17111 at uop.edu (hamid misnan) writes: > Can someone help me in how can I swap bit 2 and 5, I had tried /* Ask a silly question... :-) */ #define swap25(x) ((((x)*01000001001)&04000040733)%07777) /* Note: this assumes x fits in 9 bits */