19 if (t->
atto > 999999999UL) {
20 t->
atto -= 1000000000UL;
23 if (t->
nano > 999999999UL) {
24 t->
nano -= 1000000000UL;
36 return (t->
atto * 0.000000001 + t->
nano) * 0.000000001;
51 if (gettimeofday(&now,(
struct timezone *) 0) == 0) {
53 t->
nano = 1000 * now.tv_usec + 500;
70 s[7] = x & 255; x >>= 8;
71 s[6] = x & 255; x >>= 8;
72 s[5] = x & 255; x >>= 8;
75 s[3] = x & 255; x >>= 8;
76 s[2] = x & 255; x >>= 8;
77 s[1] = x & 255; x >>= 8;
83 unsigned long unano = u->
nano;
84 unsigned long uatto = u->
atto;
89 if (t->
atto > uatto) {
90 t->
atto += 1000000000UL;
93 if (t->
nano > unano) {
94 t->
nano += 1000000000UL;
int taia_now(struct taia *t)
void taia_sub(struct taia *t, struct taia *u, struct taia *v)
int taia_less(struct taia *t, struct taia *u)
double taia_approx(struct taia *t)
double taia_frac(struct taia *t)
void taia_uint(struct taia *t, unsigned int s)
void taia_add(struct taia *t, struct taia *u, struct taia *v)
void taia_pack(char *s, struct taia *t)
void tai_pack(char *, const struct tai *)