mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Added timeDelta_t type
This commit is contained in:
parent
30a893a1ca
commit
3c3047e677
3 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,6 @@ http://resnet.uoregon.edu/~gurney_j/jmpc/bitwise.html
|
|||
|
||||
static inline int16_t cmp16(uint16_t a, uint16_t b) { return a-b; }
|
||||
static inline int32_t cmp32(uint32_t a, uint32_t b) { return a-b; }
|
||||
static inline int32_t cmpTimeUs(timeUs_t a, timeUs_t b) { return a-b; }
|
||||
|
||||
// using memcpy_fn will force memcpy function call, instead of inlining it. In most cases function call takes fewer instructions
|
||||
// than inlined version (inlining is cheaper for very small moves < 8 bytes / 2 store instructions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue