Commit 28927fe2 authored by johan's avatar johan

Fix ABS macro definition

parent 057edbb6
......@@ -45,7 +45,7 @@
#define SATURATE(x,a) (((x)>(a) ? (a) : (x)<-(a+1) ? -(a+1) : (x)))
/* absolute value */
#define ABS(a) ((a>0) ? a : -a)
#define ABS(a) (((a)>0) ? (a) : -(a))
/*** add and sub ***/
#define ADD16(a,b) ((word16_t)((word16_t)(a)+(word16_t)(b)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment