TODO: describe module interface
Intop-Byteorder | TODO: describe module interface |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file Intop-Byteorder. |
C-kern/ | Implementation file Intop-Byteorder impl. |
Types | |
struct int_t | Export int_t into global namespace. |
Functions | |
test | |
unittest_math_int_byteorder | Test int_t functionality. |
int_t | |
byte-operations | |
htobe_int | Converts host_val from host byte order to big-endian order. |
htole_int | Converts host_val from host byte order to little-endian order. |
betoh_int | Converts big_endian_val from big-endian byte order to host byte order. |
letoh_int | Converts little_endian_val from little-endian byte order to host byte order. |
inline implementation | |
Macros | |
htobe_int | Implements int_t.htobe_int. |
htole_int | Implements int_t.htole_int. |
betoh_int | Implements int_t.betoh_int. |
letoh_int | Implements int_t.letoh_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-Byteorder.
Implementation file Intop-Byteorder impl.
typedef struct int_t int_t
Export int_t into global namespace.
test | |
unittest_math_int_byteorder | Test int_t functionality. |
int unittest_math_int_byteorder( void )
Test int_t functionality.
byte-operations | |
htobe_int | Converts host_val from host byte order to big-endian order. |
htole_int | Converts host_val from host byte order to little-endian order. |
betoh_int | Converts big_endian_val from big-endian byte order to host byte order. |
letoh_int | Converts little_endian_val from little-endian byte order to host byte order. |
Macros | |
htobe_int | Implements int_t.htobe_int. |
htole_int | Implements int_t.htole_int. |
betoh_int | Implements int_t.betoh_int. |
letoh_int | Implements int_t.letoh_int. |
Implements int_t.htobe_int.
Implements int_t.htole_int.
Implements int_t.betoh_int.
Implements int_t.letoh_int.
Export int_t into global namespace.
typedef struct int_t int_t
Test int_t functionality.
int unittest_math_int_byteorder( void )
Converts host_val from host byte order to big-endian order.
unsigned htobe_int( unsigned host_val )
Converts host_val from host byte order to little-endian order.
unsigned htole_int( unsigned host_val )
Converts big_endian_val from big-endian byte order to host byte order.
unsigned betoh_int( unsigned big_endian_val )
Converts little_endian_val from little-endian byte order to host byte order.
unsigned letoh_int( unsigned little_endian_val )