summaryrefslogtreecommitdiff
path: root/nacl/curvecp/uint64_pack.c
blob: 898a80a3db7f40d289bab01c7b7a51594ac8b83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
}