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

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

Issue 13849011: libvpx: Pull from upstream (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 8 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 | « source/libvpx/vpx/vpx_integer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 11
12 #ifndef VPX_PORTS_MEM_H 12 #ifndef VPX_PORTS_MEM_H
13 #define VPX_PORTS_MEM_H 13 #define VPX_PORTS_MEM_H
14
14 #include "vpx_config.h" 15 #include "vpx_config.h"
15 #include "vpx/vpx_integer.h" 16 #include "vpx/vpx_integer.h"
16 17
17 #if (defined(__GNUC__) && __GNUC__) || defined(__SUNPRO_C) 18 #if (defined(__GNUC__) && __GNUC__) || defined(__SUNPRO_C)
18 #define DECLARE_ALIGNED(n,typ,val) typ val __attribute__ ((aligned (n))) 19 #define DECLARE_ALIGNED(n,typ,val) typ val __attribute__ ((aligned (n)))
19 #elif defined(_MSC_VER) 20 #elif defined(_MSC_VER)
20 #define DECLARE_ALIGNED(n,typ,val) __declspec(align(n)) typ val 21 #define DECLARE_ALIGNED(n,typ,val) __declspec(align(n)) typ val
21 #else 22 #else
22 #warning No alignment directives known for this compiler. 23 #warning No alignment directives known for this compiler.
23 #define DECLARE_ALIGNED(n,typ,val) typ val 24 #define DECLARE_ALIGNED(n,typ,val) typ val
(...skipping 13 matching lines...) Expand all
37 38
38 /* Indicates that the usage of the specified variable has been audited to assure 39 /* 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' 40 * that it's safe to use uninitialized. Silences 'may be used uninitialized'
40 * warnings on gcc. 41 * warnings on gcc.
41 */ 42 */
42 #if defined(__GNUC__) && __GNUC__ 43 #if defined(__GNUC__) && __GNUC__
43 #define UNINITIALIZED_IS_SAFE(x) x=x 44 #define UNINITIALIZED_IS_SAFE(x) x=x
44 #else 45 #else
45 #define UNINITIALIZED_IS_SAFE(x) x 46 #define UNINITIALIZED_IS_SAFE(x) x
46 #endif 47 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vpx/vpx_integer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698