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

Side by Side Diff: celt/tests/test_unit_cwrs32.c

Issue 882843002: Update to opus-HEAD-66611f1. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/opus.git@master
Patch Set: Add the contents of Makefile.mips back. Created 5 years, 10 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 | « celt/static_modes_float.h ('k') | celt/tests/test_unit_dft.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) 2008-2011 Xiph.Org Foundation, Mozilla Corporation, 1 /* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation,
2 Gregory Maxwell 2 Gregory Maxwell
3 Written by Jean-Marc Valin, Gregory Maxwell, and Timothy B. Terriberry */ 3 Written by Jean-Marc Valin, Gregory Maxwell, and Timothy B. Terriberry */
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 opus_uint32 v; 120 opus_uint32 v;
121 opus_uint32 ii; 121 opus_uint32 ii;
122 int j; 122 int j;
123 #if defined(SMALL_FOOTPRINT) 123 #if defined(SMALL_FOOTPRINT)
124 memcpy(u,uu,(k+2U)*sizeof(*u)); 124 memcpy(u,uu,(k+2U)*sizeof(*u));
125 cwrsi(n,k,i,y,u); 125 cwrsi(n,k,i,y,u);
126 #else 126 #else
127 cwrsi(n,k,i,y); 127 cwrsi(n,k,i,y);
128 #endif 128 #endif
129 sy=0; 129 sy=0;
130 for(j=0;j<n;j++)sy+=ABS(y[j]); 130 for(j=0;j<n;j++)sy+=abs(y[j]);
131 if(sy!=k){ 131 if(sy!=k){
132 fprintf(stderr,"N=%d Pulse count mismatch in cwrsi (%d!=%d).\n", 132 fprintf(stderr,"N=%d Pulse count mismatch in cwrsi (%d!=%d).\n",
133 n,sy,k); 133 n,sy,k);
134 return 99; 134 return 99;
135 } 135 }
136 /*printf("%6u of %u:",i,nc); 136 /*printf("%6u of %u:",i,nc);
137 for(j=0;j<n;j++)printf(" %+3i",y[j]); 137 for(j=0;j<n;j++)printf(" %+3i",y[j]);
138 printf(" ->");*/ 138 printf(" ->");*/
139 #if defined(SMALL_FOOTPRINT) 139 #if defined(SMALL_FOOTPRINT)
140 ii=icwrs(n,k,&v,y,u); 140 ii=icwrs(n,k,&v,y,u);
(...skipping 11 matching lines...) Expand all
152 (long)v,(long)nc); 152 (long)v,(long)nc);
153 return 2; 153 return 2;
154 } 154 }
155 /*printf(" %6u\n",i);*/ 155 /*printf(" %6u\n",i);*/
156 } 156 }
157 /*printf("\n");*/ 157 /*printf("\n");*/
158 } 158 }
159 } 159 }
160 return 0; 160 return 0;
161 } 161 }
OLDNEW
« no previous file with comments | « celt/static_modes_float.h ('k') | celt/tests/test_unit_dft.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698