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

Side by Side Diff: webrtc/base/basictypes.h

Issue 1186093004: Define uint64 and int64 using long long. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | webrtc/base/basictypes_unittest.cc » ('j') | 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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 typedef uint64_t uint64; 42 typedef uint64_t uint64;
43 typedef int64_t int64; 43 typedef int64_t int64;
44 #ifndef INT64_C 44 #ifndef INT64_C
45 #define INT64_C(x) x ## LL 45 #define INT64_C(x) x ## LL
46 #endif 46 #endif
47 #ifndef UINT64_C 47 #ifndef UINT64_C
48 #define UINT64_C(x) x ## ULL 48 #define UINT64_C(x) x ## ULL
49 #endif 49 #endif
50 #define INT64_F "l" 50 #define INT64_F "l"
51 #elif defined(__LP64__) 51 #elif defined(__LP64__)
52 typedef unsigned long uint64; // NOLINT 52 typedef unsigned long long uint64; // NOLINT
53 typedef long int64; // NOLINT 53 typedef long long int64; // NOLINT
54 #ifndef INT64_C 54 #ifndef INT64_C
55 #define INT64_C(x) x ## L 55 #define INT64_C(x) x ## L
56 #endif 56 #endif
57 #ifndef UINT64_C 57 #ifndef UINT64_C
58 #define UINT64_C(x) x ## UL 58 #define UINT64_C(x) x ## UL
59 #endif 59 #endif
60 #define INT64_F "l" 60 #define INT64_F "l"
61 #else // __LP64__ 61 #else // __LP64__
62 typedef unsigned long long uint64; // NOLINT 62 typedef unsigned long long uint64; // NOLINT
63 typedef long long int64; // NOLINT 63 typedef long long int64; // NOLINT
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 #endif 118 #endif
119 #define RTC_IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1))) 119 #define RTC_IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1)))
120 120
121 // Use these to declare and define a static local variable (static T;) so that 121 // Use these to declare and define a static local variable (static T;) so that
122 // it is leaked so that its destructors are not called at exit. 122 // it is leaked so that its destructors are not called at exit.
123 #define RTC_DEFINE_STATIC_LOCAL(type, name, arguments) \ 123 #define RTC_DEFINE_STATIC_LOCAL(type, name, arguments) \
124 static type& name = *new type arguments 124 static type& name = *new type arguments
125 125
126 #endif // __cplusplus 126 #endif // __cplusplus
127 #endif // WEBRTC_BASE_BASICTYPES_H_ 127 #endif // WEBRTC_BASE_BASICTYPES_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/basictypes_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698