tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

_nto.cfg (3500B)


      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
      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/. */
      5 
      6 #ifndef nspr_cpucfg___
      7 #define nspr_cpucfg___
      8 
      9 #ifndef XP_UNIX
     10 #define XP_UNIX
     11 #endif
     12 
     13 #ifndef NTO
     14 #define NTO
     15 #endif
     16 
     17 #define PR_AF_INET6 24  /* same as AF_INET6 */
     18 
     19 #ifdef __i386__
     20 
     21 #define IS_LITTLE_ENDIAN 1
     22 #undef  IS_BIG_ENDIAN
     23 
     24 #define PR_BYTES_PER_BYTE   1L
     25 #define PR_BYTES_PER_SHORT  2L
     26 #define PR_BYTES_PER_INT    4L
     27 #define PR_BYTES_PER_INT64  8L
     28 #define PR_BYTES_PER_LONG   4L
     29 #define PR_BYTES_PER_FLOAT  4L
     30 #define PR_BYTES_PER_DOUBLE 8L
     31 #define PR_BYTES_PER_WORD   4L
     32 #define PR_BYTES_PER_DWORD  8L
     33 
     34 #define PR_BITS_PER_BYTE    8L
     35 #define PR_BITS_PER_SHORT   16L
     36 #define PR_BITS_PER_INT     32L
     37 #define PR_BITS_PER_INT64   64L
     38 #define PR_BITS_PER_LONG    32L
     39 #define PR_BITS_PER_FLOAT   32L
     40 #define PR_BITS_PER_DOUBLE  64L
     41 #define PR_BITS_PER_WORD    32L
     42 
     43 #define PR_BITS_PER_BYTE_LOG2   3L
     44 #define PR_BITS_PER_SHORT_LOG2  4L
     45 #define PR_BITS_PER_INT_LOG2    5L
     46 #define PR_BITS_PER_INT64_LOG2  6L
     47 #define PR_BITS_PER_LONG_LOG2   5L
     48 #define PR_BITS_PER_FLOAT_LOG2  5L
     49 #define PR_BITS_PER_DOUBLE_LOG2 6L
     50 #define PR_BITS_PER_WORD_LOG2   5L
     51 
     52 #define PR_ALIGN_OF_SHORT   2L
     53 #define PR_ALIGN_OF_INT     4L
     54 #define PR_ALIGN_OF_LONG    4L
     55 #define PR_ALIGN_OF_INT64   4L
     56 #define PR_ALIGN_OF_FLOAT   4L
     57 #define PR_ALIGN_OF_DOUBLE  4L
     58 #define PR_ALIGN_OF_POINTER 4L
     59 #define PR_ALIGN_OF_WORD    4L
     60 
     61 #define PR_BYTES_PER_WORD_LOG2   2L
     62 #define PR_BYTES_PER_DWORD_LOG2  3L
     63 #define PR_WORDS_PER_DWORD_LOG2  1L
     64 
     65 #else
     66 
     67 #error Undefined CPU Architecture
     68 
     69 #endif
     70 
     71 #ifndef HAVE_LONG_LONG
     72 #define HAVE_LONG_LONG
     73 #endif
     74 
     75 #ifndef NO_NSPR_10_SUPPORT
     76 
     77 #define BYTES_PER_BYTE		PR_BYTES_PER_BYTE
     78 #define BYTES_PER_SHORT 	PR_BYTES_PER_SHORT
     79 #define BYTES_PER_INT 		PR_BYTES_PER_INT
     80 #define BYTES_PER_INT64		PR_BYTES_PER_INT64
     81 #define BYTES_PER_LONG		PR_BYTES_PER_LONG
     82 #define BYTES_PER_FLOAT		PR_BYTES_PER_FLOAT
     83 #define BYTES_PER_DOUBLE	PR_BYTES_PER_DOUBLE
     84 #define BYTES_PER_WORD		PR_BYTES_PER_WORD
     85 #define BYTES_PER_DWORD		PR_BYTES_PER_DWORD
     86 
     87 #define BITS_PER_BYTE		PR_BITS_PER_BYTE
     88 #define BITS_PER_SHORT		PR_BITS_PER_SHORT
     89 #define BITS_PER_INT		PR_BITS_PER_INT
     90 #define BITS_PER_INT64		PR_BITS_PER_INT64
     91 #define BITS_PER_LONG		PR_BITS_PER_LONG
     92 #define BITS_PER_FLOAT		PR_BITS_PER_FLOAT
     93 #define BITS_PER_DOUBLE		PR_BITS_PER_DOUBLE
     94 #define BITS_PER_WORD		PR_BITS_PER_WORD
     95 
     96 #define BITS_PER_BYTE_LOG2	PR_BITS_PER_BYTE_LOG2
     97 #define BITS_PER_SHORT_LOG2	PR_BITS_PER_SHORT_LOG2
     98 #define BITS_PER_INT_LOG2	PR_BITS_PER_INT_LOG2
     99 #define BITS_PER_INT64_LOG2	PR_BITS_PER_INT64_LOG2
    100 #define BITS_PER_LONG_LOG2	PR_BITS_PER_LONG_LOG2
    101 #define BITS_PER_FLOAT_LOG2	PR_BITS_PER_FLOAT_LOG2
    102 #define BITS_PER_DOUBLE_LOG2 	PR_BITS_PER_DOUBLE_LOG2
    103 #define BITS_PER_WORD_LOG2	PR_BITS_PER_WORD_LOG2
    104 
    105 #define ALIGN_OF_SHORT		PR_ALIGN_OF_SHORT
    106 #define ALIGN_OF_INT		PR_ALIGN_OF_INT
    107 #define ALIGN_OF_LONG		PR_ALIGN_OF_LONG
    108 #define ALIGN_OF_INT64		PR_ALIGN_OF_INT64
    109 #define ALIGN_OF_FLOAT		PR_ALIGN_OF_FLOAT
    110 #define ALIGN_OF_DOUBLE		PR_ALIGN_OF_DOUBLE
    111 #define ALIGN_OF_POINTER	PR_ALIGN_OF_POINTER
    112 #define ALIGN_OF_WORD		PR_ALIGN_OF_WORD
    113 
    114 #define BYTES_PER_WORD_LOG2	PR_BYTES_PER_WORD_LOG2
    115 #define BYTES_PER_DWORD_LOG2	PR_BYTES_PER_DWORD_LOG2
    116 #define WORDS_PER_DWORD_LOG2	PR_WORDS_PER_DWORD_LOG2
    117 
    118 #endif /* NO_NSPR_10_SUPPORT */
    119 
    120 #endif /* nspr_cpucfg___ */