MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / timestamp_before

Function timestamp_before

core/schedule.c:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42sched_state_t sched;
43
44static inline bool timestamp_before(uint64_t a, uint64_t b) {
45#if defined(_MSC_VER) && !defined(__clang__) && defined(_M_IX86)
46 /* Avoid branchy codegen on 32-bit MSVC */
47 uint32_t temp;
48 bool borrow = _subborrow_u32(0, (uint32_t)a, (uint32_t)b, &temp);
49 return _subborrow_u32(borrow, (uint32_t)(a >> 32), (uint32_t)(b >> 32), &temp);
50#else
51 return a < b;
52#endif
53}
54
55static inline uint64_t timestamp_diff(uint64_t a, uint64_t b) {
56#if defined(_MSC_VER) && !defined(__clang__) && defined(_M_IX86)

Callers 4

sched_update_eventsFunction · 0.85
sched_update_dmasFunction · 0.85
sched_update_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected