1 /* Public domain. */
2 
3 #include "tai.h"
4 
tai_unpack(const char * s,struct tai * t)5 void tai_unpack(const char *s,struct tai *t)
6 {
7   uint64 x;
8 
9   x = (unsigned char) s[0];
10   x <<= 8; x += (unsigned char) s[1];
11   x <<= 8; x += (unsigned char) s[2];
12   x <<= 8; x += (unsigned char) s[3];
13   x <<= 8; x += (unsigned char) s[4];
14   x <<= 8; x += (unsigned char) s[5];
15   x <<= 8; x += (unsigned char) s[6];
16   x <<= 8; x += (unsigned char) s[7];
17   t->x = x;
18 }
19