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

Side by Side Diff: source/libvpx/vpx_ports/mem.h

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 13 matching lines...) Expand all
24 #endif 24 #endif
25 #endif 25 #endif
26 26
27 27
28 /* Declare an aligned array on the stack, for situations where the stack 28 /* Declare an aligned array on the stack, for situations where the stack
29 * pointer may not have the alignment we expect. Creates an array with a 29 * pointer may not have the alignment we expect. Creates an array with a
30 * modified name, then defines val to be a pointer, and aligns that pointer 30 * modified name, then defines val to be a pointer, and aligns that pointer
31 * within the array. 31 * within the array.
32 */ 32 */
33 #define DECLARE_ALIGNED_ARRAY(a,typ,val,n)\ 33 #define DECLARE_ALIGNED_ARRAY(a,typ,val,n)\
34 typ val##_[(n)+(a)/sizeof(typ)+1];\ 34 typ val##_[(n)+(a)/sizeof(typ)+1];\
35 typ *val = (typ*)((((intptr_t)val##_)+(a)-1)&((intptr_t)-(a))) 35 typ *val = (typ*)((((intptr_t)val##_)+(a)-1)&((intptr_t)-(a)))
36 36
37 37
38 /* Indicates that the usage of the specified variable has been audited to assure 38 /* Indicates that the usage of the specified variable has been audited to assure
39 * that it's safe to use uninitialized. Silences 'may be used uninitialized' 39 * that it's safe to use uninitialized. Silences 'may be used uninitialized'
40 * warnings on gcc. 40 * warnings on gcc.
41 */ 41 */
42 #if defined(__GNUC__) && __GNUC__ 42 #if defined(__GNUC__) && __GNUC__
43 #define UNINITIALIZED_IS_SAFE(x) x=x 43 #define UNINITIALIZED_IS_SAFE(x) x=x
44 #else 44 #else
45 #define UNINITIALIZED_IS_SAFE(x) x 45 #define UNINITIALIZED_IS_SAFE(x) x
46 #endif 46 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698