int_const.h revision 1.3
11.3Stnozaki/*	$NetBSD: int_const.h,v 1.3 2010/05/29 17:33:57 tnozaki 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 *
191.1Sfredette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Sfredette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Sfredette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Sfredette * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Sfredette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Sfredette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Sfredette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Sfredette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Sfredette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Sfredette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Sfredette * POSSIBILITY OF SUCH DAMAGE.
301.1Sfredette */
311.1Sfredette
321.1Sfredette#ifndef _HPPA_INT_CONST_H_
331.1Sfredette#define _HPPA_INT_CONST_H_
341.1Sfredette
351.1Sfredette/*
361.1Sfredette * 7.18.4 Macros for integer constants
371.1Sfredette */
381.1Sfredette
391.1Sfredette/* 7.18.4.1 Macros for minimum-width integer constants */
401.1Sfredette
411.1Sfredette#define	INT8_C(c)	c
421.1Sfredette#define	INT16_C(c)	c
431.1Sfredette#define	INT32_C(c)	c
441.1Sfredette#define	INT64_C(c)	c ## LL
451.1Sfredette
461.3Stnozaki#define	UINT8_C(c)	c
471.3Stnozaki#define	UINT16_C(c)	c
481.1Sfredette#define	UINT32_C(c)	c ## U
491.1Sfredette#define	UINT64_C(c)	c ## ULL
501.1Sfredette
511.1Sfredette/* 7.18.4.2 Macros for greatest-width integer constants */
521.1Sfredette
531.1Sfredette#define	INTMAX_C(c)	c ## LL
541.1Sfredette#define	UINTMAX_C(c)	c ## ULL
551.1Sfredette
561.1Sfredette#endif /* !_HPPA_INT_CONST_H_ */
57