[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] swap bits

From: Torsten Hahn
Subject: [avr-gcc-list] swap bits
Date: Tue, 21 Jan 2003 17:30:13 +0100


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.

T. Hahn

avr-gcc-list at http://avr1.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]