Sha256: bc311021582cae092c2a58c0126c83856a62356bc82e9dafda9fe0c7d6ae0fa2
Contents?: true
Size: 821 Bytes
Versions: 195
Compression:
Stored size: 821 Bytes
Contents
#define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) #define timespecisvalid(tsp) \ ((tsp)->tv_nsec >= 0 && (tsp)->tv_nsec < 1000000000L) #define timespeccmp(tsp, usp, cmp) \ (((tsp)->tv_sec == (usp)->tv_sec) ? \ ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ ((tsp)->tv_sec cmp (usp)->tv_sec)) #define timespecsub(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ if ((vsp)->tv_nsec < 0) { \ (vsp)->tv_sec--; \ (vsp)->tv_nsec += 1000000000L; \ } \ } while (0) #define timespecafter(tsp, usp) \ (((tsp)->tv_sec > (usp)->tv_sec) || \ ((tsp)->tv_sec == (usp)->tv_sec && (tsp)->tv_nsec > (usp)->tv_nsec))
Version data entries
195 entries across 195 versions & 1 rubygems