1 #include "taia.h"
2 
3 /* XXX: breaks tai encapsulation */
4 
taia_half(tai6464 * t,const tai6464 * u)5 void taia_half(tai6464* t,const tai6464* u) {
6   t->atto = u->atto >> 1;
7   if (u->nano & 1) t->atto += (uint32)500000000UL;
8   t->nano = u->nano >> 1;
9   if (u->sec.x & 1) t->nano += (uint32)500000000UL;
10   t->sec.x = u->sec.x >> 1;
11 }
12