diff options
author | petarj@mips.com <petarj@mips.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 00:05:32 +0000 |
---|---|---|
committer | petarj@mips.com <petarj@mips.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 00:05:32 +0000 |
commit | df60d2172e7ac28fa37a06a02640595de7a119cd (patch) | |
tree | c3df15d08b7feeee02c485b4162e5a63c473a6d1 /base/third_party | |
parent | e2f33d465731b1d1af32952c0283fdee8a280b81 (diff) | |
download | chromium_src-df60d2172e7ac28fa37a06a02640595de7a119cd.zip chromium_src-df60d2172e7ac28fa37a06a02640595de7a119cd.tar.gz chromium_src-df60d2172e7ac28fa37a06a02640595de7a119cd.tar.bz2 |
[MIPS] Include MIPS part in the config file for native client
Add missing definitions for MIPS NaCl.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=2275
TEST= build and run Chromium with NaCl
Review URL: https://codereview.chromium.org/192883003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/third_party')
-rw-r--r-- | base/third_party/nspr/prcpucfg_nacl.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/base/third_party/nspr/prcpucfg_nacl.h b/base/third_party/nspr/prcpucfg_nacl.h index ed44dd7..ba92726 100644 --- a/base/third_party/nspr/prcpucfg_nacl.h +++ b/base/third_party/nspr/prcpucfg_nacl.h @@ -184,6 +184,51 @@ #define PR_BYTES_PER_WORD_LOG2 2 #define PR_BYTES_PER_DWORD_LOG2 3 +#elif defined(__mips__) + +#define IS_LITTLE_ENDIAN 1 +#undef IS_BIG_ENDIAN + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 4 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 4 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 32 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 32 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 5 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 5 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 4 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 4 +#define PR_ALIGN_OF_WORD 4 + +#define PR_BYTES_PER_WORD_LOG2 2 +#define PR_BYTES_PER_DWORD_LOG2 3 + #else #error "Unknown CPU architecture" |