Reverses the bits of an integer. This means for a integer type of 32-bit: bit0 and bit31 are swapped, bit1 and bit30 are swapped ...
Intop-Bitorder | Reverses the bits of an integer. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file Intop-Bitorder. |
C-kern/ | Implementation file Intop-Bitorder impl. |
Functions | |
test | |
unittest_math_int_bitorder | Test function int_t.reversebits_int. |
int_t | |
bit-operations | |
reversebits_int | Reverses the bits of an integer. |
inline implementation | |
Macros | |
reversebits_int | Implements int_t.reversebits_int. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2013 Jörg Seebohn
Header file Intop-Bitorder.
Implementation file Intop-Bitorder impl.
test | |
unittest_math_int_bitorder | Test function int_t.reversebits_int. |
int unittest_math_int_bitorder( void )
Test function int_t.reversebits_int.
bit-operations | |
reversebits_int | Reverses the bits of an integer. |
Macros | |
reversebits_int | Implements int_t.reversebits_int. |
Implements int_t.reversebits_int.
Test function int_t.reversebits_int.
int unittest_math_int_bitorder( void )
Reverses the bits of an integer.
unsigned reversebits_int( unsigned i )