OLD | NEW |
1 /* Copyright (c) 2007-2008 CSIRO | 1 /* Copyright (c) 2007-2008 CSIRO |
2 Copyright (c) 2007-2009 Xiph.Org Foundation | 2 Copyright (c) 2007-2009 Xiph.Org Foundation |
3 Written by Jean-Marc Valin */ | 3 Written by Jean-Marc Valin */ |
4 /* | 4 /* |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions | 6 modification, are permitted provided that the following conditions |
7 are met: | 7 are met: |
8 | 8 |
9 - Redistributions of source code must retain the above copyright | 9 - Redistributions of source code must retain the above copyright |
10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
(...skipping 18 matching lines...) Expand all Loading... |
29 #ifndef __VQ_MIPSR1_H__ | 29 #ifndef __VQ_MIPSR1_H__ |
30 #define __VQ_MIPSR1_H__ | 30 #define __VQ_MIPSR1_H__ |
31 | 31 |
32 #ifdef HAVE_CONFIG_H | 32 #ifdef HAVE_CONFIG_H |
33 #include "config.h" | 33 #include "config.h" |
34 #endif | 34 #endif |
35 | 35 |
36 #include "mathops.h" | 36 #include "mathops.h" |
37 #include "arch.h" | 37 #include "arch.h" |
38 | 38 |
39 static unsigned extract_collapse_mask(int *iy, int N, int B); | |
40 static void normalise_residual(int * OPUS_RESTRICT iy, celt_norm * OPUS_RESTRICT
X, int N, opus_val32 Ryy, opus_val16 gain); | |
41 static void exp_rotation(celt_norm *X, int len, int dir, int stride, int K, int
spread); | |
42 static void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int ar
ch); | 39 static void renormalise_vector_mips(celt_norm *X, int N, opus_val16 gain, int ar
ch); |
43 | 40 |
44 #define OVERRIDE_vq_exp_rotation1 | 41 #define OVERRIDE_vq_exp_rotation1 |
45 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_
val16 s) | 42 static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_
val16 s) |
46 { | 43 { |
47 int i; | 44 int i; |
48 opus_val16 ms; | 45 opus_val16 ms; |
49 celt_norm *Xptr; | 46 celt_norm *Xptr; |
50 Xptr = X; | 47 Xptr = X; |
51 ms = NEG16(s); | 48 ms = NEG16(s); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 xptr = X; | 113 xptr = X; |
117 for (i=0;i<N;i++) | 114 for (i=0;i<N;i++) |
118 { | 115 { |
119 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); | 116 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); |
120 xptr++; | 117 xptr++; |
121 } | 118 } |
122 /*return celt_sqrt(E);*/ | 119 /*return celt_sqrt(E);*/ |
123 } | 120 } |
124 | 121 |
125 #endif /* __VQ_MIPSR1_H__ */ | 122 #endif /* __VQ_MIPSR1_H__ */ |
OLD | NEW |