fixed-point: defined HALF32() and used it for the forward mdct.
This commit is contained in:
parent
957a4fae0e
commit
c209c342bf
4 changed files with 12 additions and 9 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue