Code cleanup

defining HALF16() too
This commit is contained in:
Jean-Marc Valin 2011-05-13 17:41:33 -04:00
parent f54a0a39e5
commit 21b1134aa2
4 changed files with 4 additions and 2 deletions

View file

@ -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 */