@ankit : smhow im not able to follow the steps ur also is taking fr input 0100 ,tho its fine fr 1011 and im not getting the required ans...can u plz explain...
On Thu, Jul 21, 2011 at 8:31 PM, Aman Goyal <aman.goya...@gmail.com> wrote: > @ankit gupta: superb solutn > > > On Thu, Jul 21, 2011 at 8:09 PM, SkRiPt KiDdIe <anuragmsi...@gmail.com>wrote: > >> To get complete 32 bit inverse : >> >> x=((x>>1)&0x55555555) | ((x<<1)&0xAAAAAAAA); >> x=((x>>2)&0x33333333) | ((x<<2)&0xCCCCCCCC); >> x=((x>>4)&0x0F0F0F0F) | ((x<<4)&0xF0F0F0F0); >> x=((x>>8)&0x00FF00FF) | ((x<<8)&0xFF00FF00); >> x=((x>>16)&0x0000FFFF) | ((x<<16)&0xFFFF0000); >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Aditi Garg Undergraduate Student Electronics & Communication Divison NETAJI SUBHAS INSTITUTE OF TECHNOLOGY Sector 3, Dwarka New Delhi 9718388816 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.