Add doxygen groups

This commit is contained in:
Nils O. Selåsdal
2013-07-31 03:37:50 +02:00
parent 679b4b12e5
commit 13108f1f48
4 changed files with 46 additions and 7 deletions
+6 -3
View File
@@ -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))