On Saturday 19 June 2004 11:47, David VanHorn wrote: > What's the fastest way to get the exclusive or, of four bits in a > register? Hardware. :-) > 0000 = 0 > 0001 = 1 > 0010 = 1 > 0011 = 0 > 0100 = 1 > 0101 = 0 > 0110 = 0 > 0111 = 0 > and so on... I hate to be pedantic but are these any four bits; adjacent bits; low or high nibble? > Not for a parity generator, but I think it ends up as the same problem. -- /"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia \ / ASCII ribbon campaign | I'm a .signature virus! X against HTML mail | Copy me into your ~/.signature / \ and postings | to help me spread!
Message
Re: [AVR-Chat] Exclusive or
2004-06-19 by Bernd Felsche
Attachments
- No local attachments were found for this message.