mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
78 lines
2.1 KiB
INI
78 lines
2.1 KiB
INI
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.1 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
|
|
#ifndef nspr_cpucfg___
|
|
#define nspr_cpucfg___
|
|
|
|
#ifndef XP_UNIX
|
|
#define XP_UNIX
|
|
#endif
|
|
|
|
#ifndef QNX
|
|
#define QNX
|
|
#endif
|
|
|
|
#define IS_LITTLE_ENDIAN 1
|
|
#undef IS_BIG_ENDIAN
|
|
#undef HAVE_LONG_LONG
|
|
#undef HAVE_ALIGNED_DOUBLES
|
|
#undef HAVE_ALIGNED_LONGLONGS
|
|
|
|
#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 1
|
|
#define PR_ALIGN_OF_INT 1
|
|
#define PR_ALIGN_OF_LONG 1
|
|
#define PR_ALIGN_OF_INT64 1
|
|
#define PR_ALIGN_OF_FLOAT 1
|
|
#define PR_ALIGN_OF_DOUBLE 1
|
|
#define PR_ALIGN_OF_POINTER 1
|
|
#define PR_ALIGN_OF_WORD 1
|
|
|
|
#define PR_BYTES_PER_WORD_LOG2 2
|
|
#define PR_BYTES_PER_DWORD_LOG2 3
|
|
#define PR_WORDS_PER_DWORD_LOG2 1
|
|
|
|
#endif /* nspr_cpucfg___ */
|