OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * ARM firmware platform-specific definitions | 5 * ARM firmware platform-specific definitions |
6 */ | 6 */ |
7 | 7 |
8 #ifndef __ARCH_ARM_BIOSINCLUDES_H__ | 8 #ifndef __ARCH_ARM_BIOSINCLUDES_H__ |
9 #define __ARCH_ARM_BIOSINCLUDES_H__ | 9 #define __ARCH_ARM_BIOSINCLUDES_H__ |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #ifdef __STRICT_ANSI__ | 28 #ifdef __STRICT_ANSI__ |
29 #define INLINE | 29 #define INLINE |
30 #else | 30 #else |
31 #define INLINE inline | 31 #define INLINE inline |
32 #endif | 32 #endif |
33 | 33 |
34 #define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby)) | 34 #define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby)) |
35 #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby))) | 35 #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby))) |
36 | 36 |
| 37 #ifndef UINT32_MAX |
| 38 #define UINT32_MAX (UINT32_C(0xffffffffU)) |
| 39 #endif |
| 40 |
37 #ifndef UINT64_MAX | 41 #ifndef UINT64_MAX |
38 #define UINT64_MAX (UINT64_C(0xffffffffffffffffULL)) | 42 #define UINT64_MAX (UINT64_C(0xffffffffffffffffULL)) |
39 #endif | 43 #endif |
40 | 44 |
41 #endif /*__ARCH_ARM_BIOSINCLUDES_H__ */ | 45 #endif /*__ARCH_ARM_BIOSINCLUDES_H__ */ |
OLD | NEW |