Browse Source

Fix ABS macro definition

pull/2/head
Johan Pascal 10 years ago
parent
commit
28927fe2bb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/fixedPointMacros.h

+ 1
- 1
src/fixedPointMacros.h View File

@ -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)))


Loading…
Cancel
Save