diff --git a/celt/arch.h b/celt/arch.h index 1a03bad87..ac4a3018e 100644 --- a/celt/arch.h +++ b/celt/arch.h @@ -138,7 +138,6 @@ typedef opus_val32 celt_ener; #ifdef ENABLE_RES24 typedef opus_val32 opus_res; #define RES_SHIFT 8 -#define SCALEIN(a) (a) #define SIG2RES(a) PSHR32(a, SIG_SHIFT-RES_SHIFT) #define RES2INT16(a) SAT16(PSHR32(a, RES_SHIFT)) #define RES2FLOAT(a) ((1.f/32768.f/256.)*(a)) @@ -150,7 +149,6 @@ typedef opus_val32 opus_res; #else typedef opus_val16 opus_res; #define RES_SHIFT 0 -#define SCALEIN(a) (a) #define SIG2RES(a) SIG2WORD16(a) #define RES2INT16(a) (a) #define RES2FLOAT(a) ((1.f/32768.f)*(a)) @@ -162,6 +160,8 @@ typedef opus_val16 opus_res; #endif #define RES2VAL16(a) RES2INT16(a) +#define FLOAT2SIG(a) float2int(((opus_int32)32768<-1) - scale /= 2; - for (j=0;j-1) { + for (j=0;j-1) { for (j=0;j-1) { for (j=0;j