Lines Matching defs:EXTRACT_BYTE
50 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n])
51 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1))
52 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \
53 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3))
54 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \
55 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \
56 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \
57 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7))
88 #undef EXTRACT_BYTE