fixed-point: defined HALF32() and used it for the forward mdct.

This commit is contained in:
Jean-Marc Valin 2008-03-07 17:50:45 +11:00
parent 957a4fae0e
commit c209c342bf
4 changed files with 12 additions and 9 deletions

View file

@ -58,6 +58,7 @@
#define SATURATE(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x)))
#define ROUND(x,a) (EXTRACT16(PSHR32((x),(a))))
#define HALF32(x) (SHR32(x,1))
#define ADD16(a,b) ((celt_word16_t)((celt_word16_t)(a)+(celt_word16_t)(b)))
#define SUB16(a,b) ((celt_word16_t)(a)-(celt_word16_t)(b))