targparam.h revision 91587
1145256Sjkoshy/* $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:19 thorpej Exp $ */ 2174395Sjkoshy 3174395Sjkoshy/* 4145256Sjkoshy * Copyright (c) 1994, 1995 Jochen Pohl 5145256Sjkoshy * All Rights Reserved. 6174395Sjkoshy * 7174395Sjkoshy * Redistribution and use in source and binary forms, with or without 8174395Sjkoshy * modification, are permitted provided that the following conditions 9145256Sjkoshy * are met: 10145256Sjkoshy * 1. Redistributions of source code must retain the above copyright 11145256Sjkoshy * notice, this list of conditions and the following disclaimer. 12145256Sjkoshy * 2. Redistributions in binary form must reproduce the above copyright 13145256Sjkoshy * notice, this list of conditions and the following disclaimer in the 14145256Sjkoshy * documentation and/or other materials provided with the distribution. 15145256Sjkoshy * 3. All advertising materials mentioning features or use of this software 16145256Sjkoshy * must display the following acknowledgement: 17145256Sjkoshy * This product includes software developed by Jochen Pohl for 18145256Sjkoshy * The NetBSD Project. 19145256Sjkoshy * 4. The name of the author may not be used to endorse or promote products 20145256Sjkoshy * derived from this software without specific prior written permission. 21145256Sjkoshy * 22145256Sjkoshy * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23145256Sjkoshy * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24145256Sjkoshy * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25145256Sjkoshy * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26145256Sjkoshy * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27145256Sjkoshy * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28145256Sjkoshy * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29145256Sjkoshy * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30145256Sjkoshy * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31145256Sjkoshy * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32145256Sjkoshy */ 33145256Sjkoshy 34145256Sjkoshy/* 35145256Sjkoshy * Machine-dependent target parameters for lint1. 36145256Sjkoshy */ 37145256Sjkoshy 38145256Sjkoshy#include "ilp32.h" 39145256Sjkoshy 40145256Sjkoshy/* 41145338Smarcel * Should be set to 1 if the difference of two pointers is of type long 42145256Sjkoshy * or the value of sizeof is of type unsigned long. Note this MUST be 43145256Sjkoshy * kept in sync with the compiler! 44145256Sjkoshy */ 45174395Sjkoshy 46147191Sjkoshy#define PTRDIFF_IS_LONG 0 47145256Sjkoshy#define SIZEOF_IS_ULONG 0 48147191Sjkoshy 49145256Sjkoshy#define FLOAT_SIZE (4 * CHAR_BIT) 50153110Sru#define DOUBLE_SIZE (8 * CHAR_BIT) 51147191Sjkoshy#define LDOUBLE_SIZE (8 * CHAR_BIT) 52145256Sjkoshy 53145256Sjkoshy#define ENUM_SIZE (4 * CHAR_BIT) 54145256Sjkoshy