Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: third_party/opus/src/celt/mips/vq_mipsr1.h

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/opus/src/celt/mdct.c ('k') | third_party/opus/src/celt/modes.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__ */
OLDNEW
« no previous file with comments | « third_party/opus/src/celt/mdct.c ('k') | third_party/opus/src/celt/modes.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698