toxcore/nacl/curvecp/uint16_pack.c

8 lines
123 B
C
Raw Normal View History

2013-07-02 21:53:34 +08:00
#include "uint16_pack.h"
void uint16_pack(unsigned char *y,crypto_uint16 x)
{
*y++ = x; x >>= 8;
*y++ = x; x >>= 8;
}