VirtualBox

Ignore:
Timestamp:
Jan 30, 2009 12:47:40 AM (16 years ago)
Author:
vboxsync
Message:

XPCOM-darwin/amd64: Updated _darwin.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_darwin.cfg

    r589 r16400  
    4949#define PR_AF_INET6 30  /* same as AF_INET6 */
    5050
    51 #if defined(i386)
     51#if defined(i386) || defined(__amd64__)
    5252#undef IS_BIG_ENDIAN
    5353#define  IS_LITTLE_ENDIAN 1
     
    5858
    5959#define HAVE_LONG_LONG
     60#if defined(__amd64__)
     61#define HAVE_ALIGNED_DOUBLES
     62#else
    6063#undef  HAVE_ALIGNED_DOUBLES
     64#endif
    6165#define HAVE_ALIGNED_LONGLONGS 1
    6266
     
    6569#define PR_BYTES_PER_INT    4
    6670#define PR_BYTES_PER_INT64  8
     71#if defined(__amd64__)
     72#define PR_BYTES_PER_LONG   8
     73#else
    6774#define PR_BYTES_PER_LONG   4
     75#endif
    6876#define PR_BYTES_PER_FLOAT  4
    6977#define PR_BYTES_PER_DOUBLE 8
     
    7785#define PR_BITS_PER_INT     32
    7886#define PR_BITS_PER_INT64   64
     87#if defined(__amd64__)
     88#define PR_BITS_PER_LONG    64
     89#else
    7990#define PR_BITS_PER_LONG    32
     91#endif
    8092#define PR_BITS_PER_FLOAT   32
    8193#define PR_BITS_PER_DOUBLE  64
     
    8799#define PR_BITS_PER_INT_LOG2    5
    88100#define PR_BITS_PER_INT64_LOG2  6
     101#if defined(__amd64__)
     102#define PR_BITS_PER_LONG_LOG2   6
     103#else
    89104#define PR_BITS_PER_LONG_LOG2   5
     105#endif
    90106#define PR_BITS_PER_FLOAT_LOG2  5
    91107#define PR_BITS_PER_DOUBLE_LOG2 6
     
    94110#define PR_ALIGN_OF_SHORT   2
    95111#define PR_ALIGN_OF_INT     4
     112#if defined(__amd64__)
     113#define PR_ALIGN_OF_LONG    8
     114#define PR_ALIGN_OF_INT64   8
     115#define PR_ALIGN_OF_FLOAT   8
     116#define PR_ALIGN_OF_DOUBLE  8
     117#define PR_ALIGN_OF_POINTER 8
     118#else
    96119#define PR_ALIGN_OF_LONG    4
    97120#define PR_ALIGN_OF_INT64   4
     
    99122#define PR_ALIGN_OF_DOUBLE  4
    100123#define PR_ALIGN_OF_POINTER 4
     124#endif
    101125
    102126#ifndef NO_NSPR_10_SUPPORT
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette