_stdint.h (217147) | _stdint.h (218266) |
---|---|
1/*- 2 * Copyright (c) 2001, 2002 Mike Barcroft <mike@FreeBSD.org> 3 * Copyright (c) 2001 The NetBSD Foundation, Inc. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to The NetBSD Foundation 7 * by Klaus Klein. 8 * --- 21 unchanged lines hidden (view full) --- 30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * 37 * from: src/sys/i386/include/_stdint.h,v 1.2 2004/05/18 16:04:57 stefanf | 1/*- 2 * Copyright (c) 2001, 2002 Mike Barcroft <mike@FreeBSD.org> 3 * Copyright (c) 2001 The NetBSD Foundation, Inc. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to The NetBSD Foundation 7 * by Klaus Klein. 8 * --- 21 unchanged lines hidden (view full) --- 30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * 37 * from: src/sys/i386/include/_stdint.h,v 1.2 2004/05/18 16:04:57 stefanf |
38 * $FreeBSD: head/sys/mips/include/_stdint.h 217147 2011-01-08 12:43:05Z tijl $ | 38 * $FreeBSD: head/sys/mips/include/_stdint.h 218266 2011-02-04 13:09:46Z tijl $ |
39 */ 40 41#ifndef _MACHINE__STDINT_H_ 42#define _MACHINE__STDINT_H_ 43 44#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) 45 46#define INT8_C(c) (c) 47#define INT16_C(c) (c) 48#define INT32_C(c) (c) 49 50#define UINT8_C(c) (c) 51#define UINT16_C(c) (c) 52#define UINT32_C(c) (c ## U) 53 | 39 */ 40 41#ifndef _MACHINE__STDINT_H_ 42#define _MACHINE__STDINT_H_ 43 44#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) 45 46#define INT8_C(c) (c) 47#define INT16_C(c) (c) 48#define INT32_C(c) (c) 49 50#define UINT8_C(c) (c) 51#define UINT16_C(c) (c) 52#define UINT32_C(c) (c ## U) 53 |
54#ifdef __LP64__ | 54#ifdef __mips_n64 |
55#define INT64_C(c) (c ## L) 56#define UINT64_C(c) (c ## UL) 57#else 58#define INT64_C(c) (c ## LL) 59#define UINT64_C(c) (c ## ULL) 60#endif 61 62#define INTMAX_C(c) INT64_C(c) --- 68 unchanged lines hidden (view full) --- 131#define UINT_FAST16_MAX UINT32_MAX 132#define UINT_FAST32_MAX UINT32_MAX 133#define UINT_FAST64_MAX UINT64_MAX 134 135/* 136 * ISO/IEC 9899:1999 137 * 7.18.2.4 Limits of integer types capable of holding object pointers 138 */ | 55#define INT64_C(c) (c ## L) 56#define UINT64_C(c) (c ## UL) 57#else 58#define INT64_C(c) (c ## LL) 59#define UINT64_C(c) (c ## ULL) 60#endif 61 62#define INTMAX_C(c) INT64_C(c) --- 68 unchanged lines hidden (view full) --- 131#define UINT_FAST16_MAX UINT32_MAX 132#define UINT_FAST32_MAX UINT32_MAX 133#define UINT_FAST64_MAX UINT64_MAX 134 135/* 136 * ISO/IEC 9899:1999 137 * 7.18.2.4 Limits of integer types capable of holding object pointers 138 */ |
139#ifdef __LP64__ | 139#ifdef __mips_n64 |
140#define INTPTR_MIN INT64_MIN 141#define INTPTR_MAX INT64_MAX 142#define UINTPTR_MAX UINT64_MAX 143#else 144#define INTPTR_MIN INT32_MIN 145#define INTPTR_MAX INT32_MAX 146#define UINTPTR_MAX UINT32_MAX 147#endif --- 5 unchanged lines hidden (view full) --- 153#define INTMAX_MIN INT64_MIN 154#define INTMAX_MAX INT64_MAX 155#define UINTMAX_MAX UINT64_MAX 156 157/* 158 * ISO/IEC 9899:1999 159 * 7.18.3 Limits of other integer types 160 */ | 140#define INTPTR_MIN INT64_MIN 141#define INTPTR_MAX INT64_MAX 142#define UINTPTR_MAX UINT64_MAX 143#else 144#define INTPTR_MIN INT32_MIN 145#define INTPTR_MAX INT32_MAX 146#define UINTPTR_MAX UINT32_MAX 147#endif --- 5 unchanged lines hidden (view full) --- 153#define INTMAX_MIN INT64_MIN 154#define INTMAX_MAX INT64_MAX 155#define UINTMAX_MAX UINT64_MAX 156 157/* 158 * ISO/IEC 9899:1999 159 * 7.18.3 Limits of other integer types 160 */ |
161#ifdef __LP64__ | 161#ifdef __mips_n64 |
162/* Limits of ptrdiff_t. */ 163#define PTRDIFF_MIN INT64_MIN 164#define PTRDIFF_MAX INT64_MAX 165 166/* Limit of size_t. */ 167#define SIZE_MAX UINT64_MAX 168#else 169/* Limits of ptrdiff_t. */ --- 24 unchanged lines hidden --- | 162/* Limits of ptrdiff_t. */ 163#define PTRDIFF_MIN INT64_MIN 164#define PTRDIFF_MAX INT64_MAX 165 166/* Limit of size_t. */ 167#define SIZE_MAX UINT64_MAX 168#else 169/* Limits of ptrdiff_t. */ --- 24 unchanged lines hidden --- |