|
From: | Torsten Hahn |
Subject: | [avr-gcc-list] swap bits |
Date: | Tue, 21 Jan 2003 17:30:13 +0100 |
Hi,iam looking for a way, to efficiently swap all bits in an register. Can somebody help me with a little asm-macro or a pice of efficient c-code ? It schould take an 8bit value as input an give back an value, where bi7 of the input is now the bit 0, bit6 is bit1 etc.
I have no idea how to to this very well. Thanks, T. Hahn avr-gcc-list at http://avr1.org
[Prev in Thread] | Current Thread | [Next in Thread] |