toxcore/nacl/curvecp/uint32_pack.c

10 lines
165 B
C
Raw Normal View History

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