OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #else | 50 #else |
51 #error Please add support for your architecture in typedefs.h | 51 #error Please add support for your architecture in typedefs.h |
52 #endif | 52 #endif |
53 | 53 |
54 #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN)) | 54 #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN)) |
55 #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN | 55 #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN |
56 #endif | 56 #endif |
57 | 57 |
58 // TODO(zhongwei.yao): WEBRTC_CPU_DETECTION is only used in one place; we should | 58 // TODO(zhongwei.yao): WEBRTC_CPU_DETECTION is only used in one place; we should |
59 // probably just remove it. | 59 // probably just remove it. |
60 #if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) || \ | 60 #if (defined(WEBRTC_ARCH_X86_FAMILY) && !defined(__SSE2__)) |
61 defined(WEBRTC_DETECT_NEON) | |
62 #define WEBRTC_CPU_DETECTION | 61 #define WEBRTC_CPU_DETECTION |
63 #endif | 62 #endif |
64 | 63 |
65 // TODO(pbos): Use webrtc/base/basictypes.h instead to include fixed-size ints. | 64 // TODO(pbos): Use webrtc/base/basictypes.h instead to include fixed-size ints. |
66 #include <stdint.h> | 65 #include <stdint.h> |
67 | 66 |
68 // Annotate a function indicating the caller must examine the return value. | 67 // Annotate a function indicating the caller must examine the return value. |
69 // Use like: | 68 // Use like: |
70 // int foo() WARN_UNUSED_RESULT; | 69 // int foo() WARN_UNUSED_RESULT; |
71 // To explicitly ignore a result, see |ignore_result()| in <base/macros.h>. | 70 // To explicitly ignore a result, see |ignore_result()| in <base/macros.h>. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Annotate a function that will not return control flow to the caller. | 102 // Annotate a function that will not return control flow to the caller. |
104 #if defined(_MSC_VER) | 103 #if defined(_MSC_VER) |
105 #define NO_RETURN __declspec(noreturn) | 104 #define NO_RETURN __declspec(noreturn) |
106 #elif defined(__GNUC__) | 105 #elif defined(__GNUC__) |
107 #define NO_RETURN __attribute__ ((__noreturn__)) | 106 #define NO_RETURN __attribute__ ((__noreturn__)) |
108 #else | 107 #else |
109 #define NO_RETURN | 108 #define NO_RETURN |
110 #endif | 109 #endif |
111 | 110 |
112 #endif // WEBRTC_TYPEDEFS_H_ | 111 #endif // WEBRTC_TYPEDEFS_H_ |
OLD | NEW |