Home
last modified time | relevance | path

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

/DragonStub/apps/lib/libfdt/
H A Dlibfdt_env.h31 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) macro
32 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1))
34 ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \
35 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3))
37 ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \
38 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \
39 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \
40 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7))
71 #undef EXTRACT_BYTE