Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!peregrine!dmi From: dmi@peregrine.peregrine.com (Dean Inada) Newsgroups: comp.lang.c Subject: Re: Help!!!! Message-ID: <112225@peregrine.peregrine.com> Date: 21 Sep 90 22:18:50 GMT References: <26f8528c.35c1@uop.uop.edu> Reply-To: dmi@peregrine.UUCP (Dean Inada) Organization: Peregrine Systems, Inc. Lines: 6 In article <26f8528c.35c1@uop.uop.edu> acs17111@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 */