Lines Matching refs:getbyte
112 #define getbyte(A, N) (((unsigned char *)(&(A)))[N])
113 #define ltohs(S) ((getbyte(S, 1) << 8) | getbyte(S, 0))
114 #define ltohi(I) ((getbyte(I, 3) << 24) | (getbyte(I, 2) << 16) | \
115 (getbyte(I, 1) << 8) | getbyte(I, 0))
116 #define htols(S) ((getbyte(S, 1) << 8) | getbyte(S, 0))
117 #define htoli(I) ((getbyte(I, 3) << 24) | (getbyte(I, 2) << 16) | \
118 (getbyte(I, 1) << 8) | getbyte(I, 0))