toxcore/nacl/curvecp/uint32_pack.c
2013-07-02 09:53:34 -04:00

10 lines
165 B
C

#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;
}