1 /* ISC license. */ 2 3 #include <skalibs/bsdsnowflake.h> 4 #include <errno.h> 5 #include <skalibs/uint64.h> 6 #include <skalibs/tai.h> 7 tai_u64(tai_t * t,uint64_t u)8int tai_u64 (tai_t *t, uint64_t u) 9 { 10 if (u & ((uint64_t)1 << 63)) return (errno = EOVERFLOW, 0) ; 11 t->x = u ; 12 return 1 ; 13 } 14