caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync/* ***** BEGIN LICENSE BLOCK *****
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * Version: MPL 1.1/GPL 2.0/LGPL 2.1
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * The contents of this file are subject to the Mozilla Public License Version
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * 1.1 (the "License"); you may not use this file except in compliance with
aae8a6a38fd27661046ab1d06cb2cb5c096c40edvboxsync * the License. You may obtain a copy of the License at
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * http://www.mozilla.org/MPL/
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * Software distributed under the License is distributed on an "AS IS" basis,
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * for the specific language governing rights and limitations under the
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * License.
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * The Original Code is the Netscape Portable Runtime (NSPR).
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * The Initial Developer of the Original Code is
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * Netscape Communications Corporation.
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * Portions created by the Initial Developer are Copyright (C) 1998-2000
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * the Initial Developer. All Rights Reserved.
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync * Contributor(s):
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync * Alternatively, the contents of this file may be used under the terms of
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * either the GNU General Public License Version 2 or later (the "GPL"), or
2d97f8baccdd684bc0a8a15eb86bbe9ff2b85374vboxsync * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync * in which case the provisions of the GPL or the LGPL are applicable instead
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * of those above. If you wish to allow use of your version of this file only
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * under the terms of either the GPL or the LGPL, and not to allow others to
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * use your version of this file under the terms of the MPL, indicate your
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * decision by deleting the provisions above and replace them with the notice
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * and other provisions required by the GPL or the LGPL. If you do not delete
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * the provisions above, a recipient may use your version of this file under
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * the terms of any one of the MPL, the GPL or the LGPL.
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync *
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync * ***** END LICENSE BLOCK ***** */
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#ifndef nspr_cpucfg___
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define nspr_cpucfg___
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#ifndef XP_UNIX
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define XP_UNIX
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#endif
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#ifndef SCO
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define SCO
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#endif
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define IS_LITTLE_ENDIAN 1
1b68cc0f95e7b0033b20dfc4fdbc260b7a2cef68vboxsync#undef IS_BIG_ENDIAN
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#undef HAVE_LONG_LONG
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#undef HAVE_ALIGNED_DOUBLES
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#undef HAVE_ALIGNED_LONGLONGS
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_BYTE 1
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_SHORT 2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_INT 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_INT64 8
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_LONG 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_FLOAT 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_DOUBLE 8
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_WORD 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_DWORD 8
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_WORD_LOG2 2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BYTES_PER_DWORD_LOG2 3
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_BYTE 8
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_SHORT 16
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_INT 32
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_INT64 64
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_LONG 32
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_FLOAT 32
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_DOUBLE 64
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_WORD 32
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_BYTE_LOG2 3
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_SHORT_LOG2 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_INT_LOG2 5
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_INT64_LOG2 6
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_LONG_LOG2 5
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_FLOAT_LOG2 5
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_DOUBLE_LOG2 6
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_BITS_PER_WORD_LOG2 5
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_SHORT 2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_INT 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_LONG 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_INT64 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_FLOAT 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_DOUBLE 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define PR_ALIGN_OF_POINTER 4
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define _PR_POLL_BACKCOMPAT
1b68cc0f95e7b0033b20dfc4fdbc260b7a2cef68vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#ifndef NO_NSPR_10_SUPPORT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_BYTE PR_BYTES_PER_BYTE
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_SHORT PR_BYTES_PER_SHORT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_INT PR_BYTES_PER_INT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_INT64 PR_BYTES_PER_INT64
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_LONG PR_BYTES_PER_LONG
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_WORD PR_BYTES_PER_WORD
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_DWORD PR_BYTES_PER_DWORD
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_BYTE PR_BITS_PER_BYTE
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_SHORT PR_BITS_PER_SHORT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_INT PR_BITS_PER_INT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_INT64 PR_BITS_PER_INT64
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_LONG PR_BITS_PER_LONG
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_FLOAT PR_BITS_PER_FLOAT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_WORD PR_BITS_PER_WORD
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_INT PR_ALIGN_OF_INT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_LONG PR_ALIGN_OF_LONG
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define ALIGN_OF_WORD PR_ALIGN_OF_WORD
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
1b68cc0f95e7b0033b20dfc4fdbc260b7a2cef68vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#endif /* NO_NSPR_10_SUPPORT */
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync#endif /* nspr_cpucfg___ */
caa941f0c7e5e632e27efc23a253533dd72148a5vboxsync