| 42 | sched_state_t sched; |
| 43 | |
| 44 | static 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 | |
| 55 | static inline uint64_t timestamp_diff(uint64_t a, uint64_t b) { |
| 56 | #if defined(_MSC_VER) && !defined(__clang__) && defined(_M_IX86) |
no outgoing calls
no test coverage detected