toxcore/nacl/curvecp/uint64_pack.c

14 lines
249 B
C
Raw Normal View History

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