First bad bad pass.
[cascardo/kernel/notes/.git] / 03.types / 3.endian / text
1 Little Endian vs Big Endian
2 Exemplos de arquiteturas e arquiteturas com mais de um endianness.
3
4 #include <asm/byteorder.h>
5 include/linux/byteorder/
6
7 From include/linux/bytorder/generic.h
8  * Conversion of XX-bit integers (16- 32- or 64-)
9  * between native CPU format and little/big endian format
10  * 64-bit stuff only defined for proper architectures
11  *      cpu_to_[bl]eXX(__uXX x)
12  *      [bl]eXX_to_cpu(__uXX x)
13  *
14  * The same, but takes a pointer to the value to convert
15  *      cpu_to_[bl]eXXp(__uXX x)
16  *      [bl]eXX_to_cpup(__uXX x)
17  *
18  * The same, but change in situ
19  *      cpu_to_[bl]eXXs(__uXX x)
20  *      [bl]eXX_to_cpus(__uXX x)
21
22 TODO: alignment issues!?! from generic.h