blob: 285cecfe240f0df9a1964795d80bcff06c8c54ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "uint16.h"
__inline void u16_pack(char s[2],u16 u)
{
s[0] = u & 255;
s[1] = u >> 8;
}
__inline void u16_pack_big(char s[2],u16 u)
{
s[1] = u & 255;
s[0] = u >> 8;
}
|