macros.h
changeset 1556 d7c2d5289be9
parent 1400 09a471f04d17
child 1852 a7f9f961c5e1
equal deleted inserted replaced
1555:7259e8f70267 1556:d7c2d5289be9
   149 	static inline uint16 READ_LE_UINT16(const void *b) {
   149 	static inline uint16 READ_LE_UINT16(const void *b) {
   150 		return ((const byte*)b)[0] + (((const byte*)b)[1] << 8);
   150 		return ((const byte*)b)[0] + (((const byte*)b)[1] << 8);
   151 	}
   151 	}
   152 #endif
   152 #endif
   153 
   153 
   154 static inline void WRITE_LE_UINT16(void *b, uint16 x) {
       
   155 	((byte*)b)[0] = (byte)x;
       
   156 	((byte*)b)[1] = (byte)(x >> 8);
       
   157 }
       
   158 
       
   159 #endif /* MACROS_H */
   154 #endif /* MACROS_H */