Home
last modified time | relevance | path

Searched refs:EXTRACT_BYTE (Results 1 – 1 of 1) sorted by relevance

/external/dtc/libfdt/
Dlibfdt_env.h29 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) macro
30 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1))
31 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \
32 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3))
33 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \
34 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \
35 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \
36 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7))
67 #undef EXTRACT_BYTE