Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
toki
components
freertos-plus
Commits
f2f9f3fc
Commit
f2f9f3fc
authored
May 11, 2020
by
Oliver Horst
Browse files
[add] max macro
parent
73900087
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/freertos+/utils.h
View file @
f2f9f3fc
...
...
@@ -7,6 +7,11 @@
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; } )
#define max( a, b ) \
( { __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; } )
/* Unsigned ceiling function */
#define uceil(X) ( ( X-(uint32_t)( X ) ) > 0 ? (uint32_t)( X+1 ) : (uint32_t)( X ) )
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment