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

Side by Side Diff: nspr/pr/include/md/_linux.cfg

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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 | Annotate | Revision Log
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 /* This Source Code Form is subject to the terms of the Mozilla Public 2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 /* 6 /*
7 * This file is used by not only Linux but also other glibc systems 7 * This file is used by not only Linux but also other glibc systems
8 * such as GNU/Hurd and GNU/k*BSD. 8 * such as GNU/Hurd and GNU/k*BSD.
9 */ 9 */
10 10
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 #ifdef __MIPSEB__ 501 #ifdef __MIPSEB__
502 #define IS_BIG_ENDIAN 1 502 #define IS_BIG_ENDIAN 1
503 #undef IS_LITTLE_ENDIAN 503 #undef IS_LITTLE_ENDIAN
504 #elif defined(__MIPSEL__) 504 #elif defined(__MIPSEL__)
505 #define IS_LITTLE_ENDIAN 1 505 #define IS_LITTLE_ENDIAN 1
506 #undef IS_BIG_ENDIAN 506 #undef IS_BIG_ENDIAN
507 #else 507 #else
508 #error "Unknown MIPS endianness." 508 #error "Unknown MIPS endianness."
509 #endif 509 #endif
510 510
511 #if _MIPS_SIM == _ABI64
512
513 #define IS_64
514
511 #define PR_BYTES_PER_BYTE 1 515 #define PR_BYTES_PER_BYTE 1
512 #define PR_BYTES_PER_SHORT 2 516 #define PR_BYTES_PER_SHORT 2
513 #define PR_BYTES_PER_INT 4 517 #define PR_BYTES_PER_INT 4
518 #define PR_BYTES_PER_INT64 8
519 #define PR_BYTES_PER_LONG 8
520 #define PR_BYTES_PER_FLOAT 4
521 #define PR_BYTES_PER_DOUBLE 8
522 #define PR_BYTES_PER_WORD 8
523 #define PR_BYTES_PER_DWORD 8
524
525 #define PR_BITS_PER_BYTE 8
526 #define PR_BITS_PER_SHORT 16
527 #define PR_BITS_PER_INT 32
528 #define PR_BITS_PER_INT64 64
529 #define PR_BITS_PER_LONG 64
530 #define PR_BITS_PER_FLOAT 32
531 #define PR_BITS_PER_DOUBLE 64
532 #define PR_BITS_PER_WORD 64
533
534 #define PR_BITS_PER_BYTE_LOG2 3
535 #define PR_BITS_PER_SHORT_LOG2 4
536 #define PR_BITS_PER_INT_LOG2 5
537 #define PR_BITS_PER_INT64_LOG2 6
538 #define PR_BITS_PER_LONG_LOG2 6
539 #define PR_BITS_PER_FLOAT_LOG2 5
540 #define PR_BITS_PER_DOUBLE_LOG2 6
541 #define PR_BITS_PER_WORD_LOG2 6
542
543 #define PR_ALIGN_OF_SHORT 2
544 #define PR_ALIGN_OF_INT 4
545 #define PR_ALIGN_OF_LONG 8
546 #define PR_ALIGN_OF_INT64 8
547 #define PR_ALIGN_OF_FLOAT 4
548 #define PR_ALIGN_OF_DOUBLE 8
549 #define PR_ALIGN_OF_POINTER 8
550 #define PR_ALIGN_OF_WORD 8
551
552 #define PR_BYTES_PER_WORD_LOG2 3
553 #define PR_BYTES_PER_DWORD_LOG2 3
554
555 #else /* _ABI64 */
556
557 #define PR_BYTES_PER_BYTE 1
558 #define PR_BYTES_PER_SHORT 2
559 #define PR_BYTES_PER_INT 4
514 #define PR_BYTES_PER_INT64 8 560 #define PR_BYTES_PER_INT64 8
515 #define PR_BYTES_PER_LONG 4 561 #define PR_BYTES_PER_LONG 4
516 #define PR_BYTES_PER_FLOAT 4 562 #define PR_BYTES_PER_FLOAT 4
517 #define PR_BYTES_PER_DOUBLE 8 563 #define PR_BYTES_PER_DOUBLE 8
518 #define PR_BYTES_PER_WORD 4 564 #define PR_BYTES_PER_WORD 4
519 #define PR_BYTES_PER_DWORD 8 565 #define PR_BYTES_PER_DWORD 8
520 566
521 #define PR_BITS_PER_BYTE 8 567 #define PR_BITS_PER_BYTE 8
522 #define PR_BITS_PER_SHORT 16 568 #define PR_BITS_PER_SHORT 16
523 #define PR_BITS_PER_INT 32 569 #define PR_BITS_PER_INT 32
(...skipping 17 matching lines...) Expand all
541 #define PR_ALIGN_OF_LONG 4 587 #define PR_ALIGN_OF_LONG 4
542 #define PR_ALIGN_OF_INT64 8 588 #define PR_ALIGN_OF_INT64 8
543 #define PR_ALIGN_OF_FLOAT 4 589 #define PR_ALIGN_OF_FLOAT 4
544 #define PR_ALIGN_OF_DOUBLE 8 590 #define PR_ALIGN_OF_DOUBLE 8
545 #define PR_ALIGN_OF_POINTER 4 591 #define PR_ALIGN_OF_POINTER 4
546 #define PR_ALIGN_OF_WORD 4 592 #define PR_ALIGN_OF_WORD 4
547 593
548 #define PR_BYTES_PER_WORD_LOG2 2 594 #define PR_BYTES_PER_WORD_LOG2 2
549 #define PR_BYTES_PER_DWORD_LOG2 3 595 #define PR_BYTES_PER_DWORD_LOG2 3
550 596
597 #endif /* _ABI64 */
598
551 #elif defined(__arm__) 599 #elif defined(__arm__)
552 600
553 #ifdef __ARMEB__ 601 #ifdef __ARMEB__
554 #undef IS_LITTLE_ENDIAN 602 #undef IS_LITTLE_ENDIAN
555 #define IS_BIG_ENDIAN 1 603 #define IS_BIG_ENDIAN 1
556 #elif defined(__ARMEL__) 604 #elif defined(__ARMEL__)
557 #define IS_LITTLE_ENDIAN 1 605 #define IS_LITTLE_ENDIAN 1
558 #undef IS_BIG_ENDIAN 606 #undef IS_BIG_ENDIAN
559 #else 607 #else
560 #error "Unknown ARM endianness." 608 #error "Unknown ARM endianness."
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 #define PR_ALIGN_OF_LONG 4 965 #define PR_ALIGN_OF_LONG 4
918 #define PR_ALIGN_OF_INT64 4 966 #define PR_ALIGN_OF_INT64 4
919 #define PR_ALIGN_OF_FLOAT 4 967 #define PR_ALIGN_OF_FLOAT 4
920 #define PR_ALIGN_OF_DOUBLE 4 968 #define PR_ALIGN_OF_DOUBLE 4
921 #define PR_ALIGN_OF_POINTER 4 969 #define PR_ALIGN_OF_POINTER 4
922 #define PR_ALIGN_OF_WORD 4 970 #define PR_ALIGN_OF_WORD 4
923 971
924 #define PR_BYTES_PER_WORD_LOG2 2 972 #define PR_BYTES_PER_WORD_LOG2 2
925 #define PR_BYTES_PER_DWORD_LOG2 3 973 #define PR_BYTES_PER_DWORD_LOG2 3
926 974
975 #elif defined(__or1k__)
976
977 #undef IS_LITTLE_ENDIAN
978 #define IS_BIG_ENDIAN 1
979
980 #define PR_BYTES_PER_BYTE 1
981 #define PR_BYTES_PER_SHORT 2
982 #define PR_BYTES_PER_INT 4
983 #define PR_BYTES_PER_INT64 8
984 #define PR_BYTES_PER_LONG 4
985 #define PR_BYTES_PER_FLOAT 4
986 #define PR_BYTES_PER_DOUBLE 8
987 #define PR_BYTES_PER_WORD 4
988 #define PR_BYTES_PER_DWORD 8
989
990 #define PR_BITS_PER_BYTE 8
991 #define PR_BITS_PER_SHORT 16
992 #define PR_BITS_PER_INT 32
993 #define PR_BITS_PER_INT64 64
994 #define PR_BITS_PER_LONG 32
995 #define PR_BITS_PER_FLOAT 32
996 #define PR_BITS_PER_DOUBLE 64
997 #define PR_BITS_PER_WORD 32
998
999 #define PR_BITS_PER_BYTE_LOG2 3
1000 #define PR_BITS_PER_SHORT_LOG2 4
1001 #define PR_BITS_PER_INT_LOG2 5
1002 #define PR_BITS_PER_INT64_LOG2 6
1003 #define PR_BITS_PER_LONG_LOG2 5
1004 #define PR_BITS_PER_FLOAT_LOG2 5
1005 #define PR_BITS_PER_DOUBLE_LOG2 6
1006 #define PR_BITS_PER_WORD_LOG2 5
1007
1008 #define PR_ALIGN_OF_SHORT 2
1009 #define PR_ALIGN_OF_INT 4
1010 #define PR_ALIGN_OF_LONG 4
1011 #define PR_ALIGN_OF_INT64 4
1012 #define PR_ALIGN_OF_FLOAT 4
1013 #define PR_ALIGN_OF_DOUBLE 4
1014 #define PR_ALIGN_OF_POINTER 4
1015 #define PR_ALIGN_OF_WORD 4
1016
1017 #define PR_BYTES_PER_WORD_LOG2 2
1018 #define PR_BYTES_PER_DWORD_LOG2 3
1019
927 #else 1020 #else
928 1021
929 #error "Unknown CPU architecture" 1022 #error "Unknown CPU architecture"
930 1023
931 #endif 1024 #endif
932 1025
933 #ifndef HAVE_LONG_LONG 1026 #ifndef HAVE_LONG_LONG
934 #define HAVE_LONG_LONG 1027 #define HAVE_LONG_LONG
935 #endif 1028 #endif
936 #if PR_ALIGN_OF_DOUBLE == 8 1029 #if PR_ALIGN_OF_DOUBLE == 8
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER 1072 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
980 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD 1073 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD
981 1074
982 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 1075 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
983 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 1076 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
984 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 1077 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
985 1078
986 #endif /* NO_NSPR_10_SUPPORT */ 1079 #endif /* NO_NSPR_10_SUPPORT */
987 1080
988 #endif /* nspr_cpucfg___ */ 1081 #endif /* nspr_cpucfg___ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698