/* ISC license. */ /* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif #include #include #include int tai_u64 (tai_t *t, uint64 u) { if (u & ((uint64)1 << 63)) return (errno = EOVERFLOW, 0) ; t->x = u ; return 1 ; }