Code cleanup
defining HALF16() too
This commit is contained in:
parent
f54a0a39e5
commit
21b1134aa2
4 changed files with 4 additions and 2 deletions
|
@ -93,6 +93,7 @@
|
|||
/** Shift by a and round-to-neareast 32-bit value. Result is a 16-bit value */
|
||||
#define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a))))
|
||||
/** Divide by two */
|
||||
#define HALF16(x) (SHR16(x,1))
|
||||
#define HALF32(x) (SHR32(x,1))
|
||||
|
||||
/** Add two 16-bit values */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue