summaryrefslogtreecommitdiff
path: root/nacl/curvecp/uint16_pack.c
blob: f3761035a0507ddaef8ac850495e1396f4d28be8 (plain)
1
2
3
4
5
6
7
#include "uint16_pack.h"

void uint16_pack(unsigned char *y,crypto_uint16 x)
{
  *y++ = x; x >>= 8;
  *y++ = x; x >>= 8;
}