1b2b3ffcdSSimon Schubert /*- 2b2b3ffcdSSimon Schubert * Copyright (c) 2001, 2002 Mike Barcroft <mike@FreeBSD.org> 3b2b3ffcdSSimon Schubert * Copyright (c) 2001 The NetBSD Foundation, Inc. All rights reserved. 4b2b3ffcdSSimon Schubert * Copyright (c) 1990, 1993 The Regents of the University of California. 5b2b3ffcdSSimon Schubert * All rights reserved. 6b2b3ffcdSSimon Schubert * 7b2b3ffcdSSimon Schubert * This code is derived from software contributed to The NetBSD Foundation 8b2b3ffcdSSimon Schubert * by Klaus Klein. 9b2b3ffcdSSimon Schubert * 10b2b3ffcdSSimon Schubert * Redistribution and use in source and binary forms, with or without 11b2b3ffcdSSimon Schubert * modification, are permitted provided that the following conditions 12b2b3ffcdSSimon Schubert * are met: 13b2b3ffcdSSimon Schubert * 1. Redistributions of source code must retain the above copyright 14b2b3ffcdSSimon Schubert * notice, this list of conditions and the following disclaimer. 15b2b3ffcdSSimon Schubert * 2. Redistributions in binary form must reproduce the above copyright 16b2b3ffcdSSimon Schubert * notice, this list of conditions and the following disclaimer in the 17b2b3ffcdSSimon Schubert * documentation and/or other materials provided with the distribution. 18b2b3ffcdSSimon Schubert * 3. All advertising materials mentioning features or use of this software 19b2b3ffcdSSimon Schubert * must display the following acknowledgement: 20b2b3ffcdSSimon Schubert * This product includes software developed by the NetBSD 21b2b3ffcdSSimon Schubert * Foundation, Inc. and its contributors. 22b2b3ffcdSSimon Schubert * 4. Neither the name of The NetBSD Foundation nor the names of its 23b2b3ffcdSSimon Schubert * contributors may be used to endorse or promote products derived 24b2b3ffcdSSimon Schubert * from this software without specific prior written permission. 25b2b3ffcdSSimon Schubert * 26b2b3ffcdSSimon Schubert * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27b2b3ffcdSSimon Schubert * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28b2b3ffcdSSimon Schubert * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29b2b3ffcdSSimon Schubert * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30b2b3ffcdSSimon Schubert * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31b2b3ffcdSSimon Schubert * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32b2b3ffcdSSimon Schubert * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33b2b3ffcdSSimon Schubert * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34b2b3ffcdSSimon Schubert * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35b2b3ffcdSSimon Schubert * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36b2b3ffcdSSimon Schubert * POSSIBILITY OF SUCH DAMAGE. 37b2b3ffcdSSimon Schubert */ 38b2b3ffcdSSimon Schubert 39b2b3ffcdSSimon Schubert #ifndef _CPU_INT_CONST_H_ 40b2b3ffcdSSimon Schubert #define _CPU_INT_CONST_H_ 41b2b3ffcdSSimon Schubert 42b2b3ffcdSSimon Schubert #define INT8_C(c) (c) 43b2b3ffcdSSimon Schubert #define INT16_C(c) (c) 44b2b3ffcdSSimon Schubert #define INT32_C(c) (c) 45*2a61a476SAlexandre Perrin #define INT64_C(c) (c ## L) 46b2b3ffcdSSimon Schubert 47b2b3ffcdSSimon Schubert #define UINT8_C(c) (c) 48b2b3ffcdSSimon Schubert #define UINT16_C(c) (c) 49b2b3ffcdSSimon Schubert #define UINT32_C(c) (c ## U) 50*2a61a476SAlexandre Perrin #define UINT64_C(c) (c ## UL) 51b2b3ffcdSSimon Schubert 52*2a61a476SAlexandre Perrin #define INTMAX_C(c) (c ## L) 53*2a61a476SAlexandre Perrin #define UINTMAX_C(c) (c ## UL) 54b2b3ffcdSSimon Schubert 55b2b3ffcdSSimon Schubert #endif 56