You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
291 B
C
17 lines
291 B
C
22 years ago
|
#include "tai.h"
|
||
|
|
||
|
void tai_pack(char *s,const struct tai *t)
|
||
|
{
|
||
|
uint64 x;
|
||
|
|
||
|
x = t->x;
|
||
|
s[7] = x & 255; x >>= 8;
|
||
|
s[6] = x & 255; x >>= 8;
|
||
|
s[5] = x & 255; x >>= 8;
|
||
|
s[4] = x & 255; x >>= 8;
|
||
|
s[3] = x & 255; x >>= 8;
|
||
|
s[2] = x & 255; x >>= 8;
|
||
|
s[1] = x & 255; x >>= 8;
|
||
|
s[0] = x;
|
||
|
}
|