|
|
libRASCH: ra_endian.h File Reference
ra_endian.h File Reference
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Detailed Description
The header file contains macros handling endian issues.
- Author:
- Raphael Schneider (rasch@med1.med.tum.de)
Definition in file ra_endian.h.
Define Documentation
|
|
Value: do { long endian_t = x; int endian_type = get_endian_type(); if (l && (endian_type == RA_LITTLE_ENDIAN)) break; if (!l && (endian_type == RA_BIG_ENDIAN)) break; x = ((endian_t & 0x000000ff) << 24) | ((endian_t & 0x0000ff00) << 8) | ((endian_t & 0x00ff0000) >> 8) | ((endian_t & 0xff000000) >> 24); } while(0)
Definition at line 42 of file ra_endian.h. |
| #define be16_to_cpu |
( |
x |
|
) |
_swap16(x,0) |
|
| #define be32_to_cpu |
( |
x |
|
) |
_swap32(x,0) |
|
| #define le16_to_cpu |
( |
x |
|
) |
_swap16(x,1) |
|
| #define le32_to_cpu |
( |
x |
|
) |
_swap32(x,1) |
|
| #define RA_LITTLE_ENDIAN 1 |
|
Generated on Fri May 27 11:33:17 2005 for libRASCH by
1.4.2
|