22
43
Collect platform specific bits into cor_platform
on 2:19 PM Oct 20 2025
42
43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _TIMESPEC_UTILS_H
#define _TIMESPEC_UTILS_H
struct timespec;
static inline bool timespec_eq(struct timespec a, struct timespec b);
static inline bool timespec_ne(struct timespec a, struct timespec b);
static inline bool timespec_lt(struct timespec a, struct timespec b);
static inline bool timespec_lte(struct timespec a, struct timespec b);
static inline bool timespec_gt(struct timespec a, struct timespec b);
static inline bool timespec_gte(struct timespec a, struct timespec b);
static inline struct timespec timespec_sub(struct timespec a, struct timespec b);
#include "timespec_utils.def.h"
#endif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _TIMESPEC_UTILS_H
#define _TIMESPEC_UTILS_H
#include <stdint.h>
struct timespec;
static inline struct timespec timespec_from_int64_ns(int64_t time);
static inline int64_t int64_ns_from_timespec(struct timespec time);
static inline bool timespec_eq(struct timespec a, struct timespec b);
static inline bool timespec_ne(struct timespec a, struct timespec b);
static inline bool timespec_lt(struct timespec a, struct timespec b);
static inline bool timespec_lte(struct timespec a, struct timespec b);
static inline bool timespec_gt(struct timespec a, struct timespec b);
static inline bool timespec_gte(struct timespec a, struct timespec b);
static inline struct timespec timespec_sub(struct timespec a, struct timespec b);
#include "timespec_utils.def.h"
#endif