mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
14 lines
249 B
C
14 lines
249 B
C
|
#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;
|
||
|
}
|