suitcase

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

taia_less.c (282B)


      1 #include <tai/taia.h>
      2 
      3 /* XXX: breaks tai encapsulation */
      4 
      5 int taia_less(struct taia *t, struct taia *u)
      6 {
      7   if (t->sec.x < u->sec.x) return 1;
      8   if (t->sec.x > u->sec.x) return 0;
      9   if (t->nano < u->nano) return 1;
     10   if (t->nano > u->nano) return 0;
     11   return t->atto < u->atto;
     12 }