This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
bcg729
mirror of
https://github.com/BelledonneCommunications/bcg729
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
8
Wiki
Activity
Browse Source
Fix ABS macro definition
pull/2/head
Johan Pascal
10 years ago
parent
057edbb60c
commit
28927fe2bb
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)))
Write
Preview
Loading…
Cancel
Save