Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Defines the types and macros from prtypes.h needed by sha512.cc. | |
| 6 | |
| 7 #ifndef CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ | |
| 8 #define CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ | |
| 9 | |
| 10 #include <limits.h> | |
| 11 #include <stdint.h> | |
| 12 | |
| 13 #include "build/build_config.h" | |
| 14 | |
| 15 #if defined(ARCH_CPU_LITTLE_ENDIAN) | |
| 16 #define IS_LITTLE_ENDIAN 1 | |
| 17 #else | |
| 18 #define IS_BIG_ENDIAN 1 | |
| 19 #endif | |
| 20 | |
| 21 #if LONG_MAX > INT_MAX | |
| 22 #define PR_BYTES_PER_LONG 8 | |
| 23 #else | |
| 24 #define PR_BYTES_PER_LONG 4 | |
| 25 #endif | |
|
Ryan Sleevi
2014/03/24 19:14:10
This one needs a bit more justification/explanatio
Mark Mentovai
2014/03/24 20:11:25
Ryan Sleevi wrote:
wtc
2014/03/24 21:55:11
Done.
| |
| 26 | |
| 27 #define HAVE_LONG_LONG | |
| 28 | |
| 29 #if defined(__linux__) | |
| 30 #define LINUX | |
| 31 #endif | |
| 32 | |
| 33 typedef uint8_t PRUint8; | |
| 34 typedef uint32_t PRUint32; | |
| 35 | |
| 36 typedef int PRBool; | |
| 37 | |
| 38 #define PR_MIN(x,y) ((x)<(y)?(x):(y)) | |
| 39 | |
| 40 #endif // CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ | |
| OLD | NEW |