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

Unified Diff: opus/celt/tests/test_unit_types.c

Issue 11196031: Add copy of opus library in deps/third_party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « opus/celt/tests/test_unit_rotation.c ('k') | opus/celt/vq.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: opus/celt/tests/test_unit_types.c
===================================================================
--- opus/celt/tests/test_unit_types.c (revision 0)
+++ opus/celt/tests/test_unit_types.c (revision 0)
@@ -0,0 +1,23 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "opus_types.h"
+#include <stdio.h>
+
+int main(void)
+{
+ opus_int16 i = 1;
+ i <<= 14;
+ if (i>>14 != 1)
+ {
+ fprintf(stderr, "opus_int16 isn't 16 bits\n");
+ return 1;
+ }
+ if (sizeof(opus_int16)*2 != sizeof(opus_int32))
+ {
+ fprintf(stderr, "16*2 != 32\n");
+ return 1;
+ }
+ return 0;
+}
Property changes on: opus/celt/tests/test_unit_types.c
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « opus/celt/tests/test_unit_rotation.c ('k') | opus/celt/vq.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698