Lines Matching refs:readb
50 #define readb(addr, pos, type) ((type)(*(((uint8_t *) (addr)) + (pos))))
54 return readb(addr, 0, uint16_t) | (readb(addr, 1, uint16_t) << 8);
59 return readb(addr, 0, uint32_t) |
60 (readb(addr, 1, uint32_t) << 8) |
61 (readb(addr, 2, uint32_t) << 16) |
62 (readb(addr, 3, uint32_t) << 24);
67 return readb(addr, 0, uint64_t) |
68 (readb(addr, 1, uint64_t) << 8) |
69 (readb(addr, 2, uint64_t) << 16) |
70 (readb(addr, 3, uint64_t) << 24) |
71 (readb(addr, 4, uint64_t) << 32) |
72 (readb(addr, 5, uint64_t) << 40) |
73 (readb(addr, 6, uint64_t) << 48) |
74 (readb(addr, 7, uint64_t) << 56);