fix pl-tai

This commit is contained in:
Vitor Santos Costa
2011-03-09 13:05:03 +00:00
parent 752fa4fc53
commit 5418f55d74
78 changed files with 344 additions and 419 deletions

View File

@@ -0,0 +1,20 @@
#include "taia.h"
void taia_unpack(char *s, struct taia *t)
{
unsigned long x;
tai_unpack(s,&t->sec);
s += 8;
x = (unsigned char) s[4];
x <<= 8; x += (unsigned char) s[5];
x <<= 8; x += (unsigned char) s[6];
x <<= 8; x += (unsigned char) s[7];
t->atto = x;
x = (unsigned char) s[0];
x <<= 8; x += (unsigned char) s[1];
x <<= 8; x += (unsigned char) s[2];
x <<= 8; x += (unsigned char) s[3];
t->nano = x;
}