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

Side by Side Diff: base/third_party/nspr/prcpucfg_nacl.h

Issue 192883003: [MIPS] Include MIPS part in the config file for native client (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK ***** 2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * 4 *
5 * The contents of this file are subject to the Mozilla Public License Version 5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with 6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at 7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/ 8 * http://www.mozilla.org/MPL/
9 * 9 *
10 * Software distributed under the License is distributed on an "AS IS" basis, 10 * Software distributed under the License is distributed on an "AS IS" basis,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 #define PR_ALIGN_OF_LONG 4 177 #define PR_ALIGN_OF_LONG 4
178 #define PR_ALIGN_OF_INT64 4 178 #define PR_ALIGN_OF_INT64 4
179 #define PR_ALIGN_OF_FLOAT 4 179 #define PR_ALIGN_OF_FLOAT 4
180 #define PR_ALIGN_OF_DOUBLE 4 180 #define PR_ALIGN_OF_DOUBLE 4
181 #define PR_ALIGN_OF_POINTER 4 181 #define PR_ALIGN_OF_POINTER 4
182 #define PR_ALIGN_OF_WORD 4 182 #define PR_ALIGN_OF_WORD 4
183 183
184 #define PR_BYTES_PER_WORD_LOG2 2 184 #define PR_BYTES_PER_WORD_LOG2 2
185 #define PR_BYTES_PER_DWORD_LOG2 3 185 #define PR_BYTES_PER_DWORD_LOG2 3
186 186
187 #elif defined(__mips__)
188
189 #define IS_LITTLE_ENDIAN 1
190 #undef IS_BIG_ENDIAN
191
192 #define PR_BYTES_PER_BYTE 1
193 #define PR_BYTES_PER_SHORT 2
194 #define PR_BYTES_PER_INT 4
195 #define PR_BYTES_PER_INT64 8
196 #define PR_BYTES_PER_LONG 4
197 #define PR_BYTES_PER_FLOAT 4
198 #define PR_BYTES_PER_DOUBLE 8
199 #define PR_BYTES_PER_WORD 4
200 #define PR_BYTES_PER_DWORD 8
201
202 #define PR_BITS_PER_BYTE 8
203 #define PR_BITS_PER_SHORT 16
204 #define PR_BITS_PER_INT 32
205 #define PR_BITS_PER_INT64 64
206 #define PR_BITS_PER_LONG 32
207 #define PR_BITS_PER_FLOAT 32
208 #define PR_BITS_PER_DOUBLE 64
209 #define PR_BITS_PER_WORD 32
210
211 #define PR_BITS_PER_BYTE_LOG2 3
212 #define PR_BITS_PER_SHORT_LOG2 4
213 #define PR_BITS_PER_INT_LOG2 5
214 #define PR_BITS_PER_INT64_LOG2 6
215 #define PR_BITS_PER_LONG_LOG2 5
216 #define PR_BITS_PER_FLOAT_LOG2 5
217 #define PR_BITS_PER_DOUBLE_LOG2 6
218 #define PR_BITS_PER_WORD_LOG2 5
219
220 #define PR_ALIGN_OF_SHORT 2
221 #define PR_ALIGN_OF_INT 4
222 #define PR_ALIGN_OF_LONG 4
223 #define PR_ALIGN_OF_INT64 8
224 #define PR_ALIGN_OF_FLOAT 4
225 #define PR_ALIGN_OF_DOUBLE 8
226 #define PR_ALIGN_OF_POINTER 4
227 #define PR_ALIGN_OF_WORD 4
228
229 #define PR_BYTES_PER_WORD_LOG2 2
230 #define PR_BYTES_PER_DWORD_LOG2 3
231
187 #else 232 #else
188 233
189 #error "Unknown CPU architecture" 234 #error "Unknown CPU architecture"
190 235
191 #endif 236 #endif
192 237
193 #define HAVE_LONG_LONG 238 #define HAVE_LONG_LONG
194 #if PR_ALIGN_OF_DOUBLE == 8 239 #if PR_ALIGN_OF_DOUBLE == 8
195 #define HAVE_ALIGNED_DOUBLES 240 #define HAVE_ALIGNED_DOUBLES
196 #endif 241 #endif
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER 282 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
238 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD 283 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD
239 284
240 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 285 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
241 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 286 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
242 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 287 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
243 288
244 #endif /* NO_NSPR_10_SUPPORT */ 289 #endif /* NO_NSPR_10_SUPPORT */
245 290
246 #endif /* nspr_cpucfg___ */ 291 #endif /* nspr_cpucfg___ */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698