int_const.h revision 1.1
11.1Sfredette/*	$NetBSD: int_const.h,v 1.1 2002/06/05 01:04:22 fredette Exp $	*/
21.1Sfredette
31.1Sfredette/*-
41.1Sfredette * Copyright (c) 2001 The NetBSD Foundation, Inc.
51.1Sfredette * All rights reserved.
61.1Sfredette *
71.1Sfredette * This code is derived from software contributed to The NetBSD Foundation
81.1Sfredette * by Klaus Klein.
91.1Sfredette *
101.1Sfredette * Redistribution and use in source and binary forms, with or without
111.1Sfredette * modification, are permitted provided that the following conditions
121.1Sfredette * are met:
131.1Sfredette * 1. Redistributions of source code must retain the above copyright
141.1Sfredette *    notice, this list of conditions and the following disclaimer.
151.1Sfredette * 2. Redistributions in binary form must reproduce the above copyright
161.1Sfredette *    notice, this list of conditions and the following disclaimer in the
171.1Sfredette *    documentation and/or other materials provided with the distribution.
181.1Sfredette * 3. All advertising materials mentioning features or use of this software
191.1Sfredette *    must display the following acknowledgement:
201.1Sfredette *        This product includes software developed by the NetBSD
211.1Sfredette *        Foundation, Inc. and its contributors.
221.1Sfredette * 4. Neither the name of The NetBSD Foundation nor the names of its
231.1Sfredette *    contributors may be used to endorse or promote products derived
241.1Sfredette *    from this software without specific prior written permission.
251.1Sfredette *
261.1Sfredette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.1Sfredette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.1Sfredette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.1Sfredette * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.1Sfredette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.1Sfredette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.1Sfredette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.1Sfredette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.1Sfredette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.1Sfredette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.1Sfredette * POSSIBILITY OF SUCH DAMAGE.
371.1Sfredette */
381.1Sfredette
391.1Sfredette#ifndef _HPPA_INT_CONST_H_
401.1Sfredette#define _HPPA_INT_CONST_H_
411.1Sfredette
421.1Sfredette/*
431.1Sfredette * 7.18.4 Macros for integer constants
441.1Sfredette */
451.1Sfredette
461.1Sfredette/* 7.18.4.1 Macros for minimum-width integer constants */
471.1Sfredette
481.1Sfredette#define	INT8_C(c)	c
491.1Sfredette#define	INT16_C(c)	c
501.1Sfredette#define	INT32_C(c)	c
511.1Sfredette#define	INT64_C(c)	c ## LL
521.1Sfredette
531.1Sfredette#define	UINT8_C(c)	c ## U
541.1Sfredette#define	UINT16_C(c)	c ## U
551.1Sfredette#define	UINT32_C(c)	c ## U
561.1Sfredette#define	UINT64_C(c)	c ## ULL
571.1Sfredette
581.1Sfredette/* 7.18.4.2 Macros for greatest-width integer constants */
591.1Sfredette
601.1Sfredette#define	INTMAX_C(c)	c ## LL
611.1Sfredette#define	UINTMAX_C(c)	c ## ULL
621.1Sfredette
631.1Sfredette#endif /* !_HPPA_INT_CONST_H_ */
64