Add doxygen groups
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#include <stdint.h>
|
||||
|
||||
/** Implementation of saturated operation on uintaa_t.
|
||||
* Opaerations are clamped betweehn 0 and UINTaa_MAa instead of
|
||||
* wrapping around*/
|
||||
/** Implementation of saturated operation on uintxx_t.
|
||||
*
|
||||
* Operations are clamped between 0 and UINTxx_MAX instead of
|
||||
* wrapping around.
|
||||
*
|
||||
* multiplication, subtraction and addition operations are provided.*/
|
||||
|
||||
#define UC_SAT_ADD(a, b, type, max_val)\
|
||||
((type)((a) + (b)) >= (a) ? (a) + (b) : (max_val))
|
||||
|
||||
Reference in New Issue
Block a user