FreeBSD Bugzilla – Attachment 152489 Details for
Bug 197259
[mips64] First Pass at clang enabled builds for mips64 (with clang36)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
c source file from clang36 crash #2
fixdfti-1cabaf.c (text/plain), 126.08 KB, created by
Sean Bruno
on 2015-02-02 17:28:58 UTC
(
hide
)
Description:
c source file from clang36 crash #2
Filename:
MIME Type:
Creator:
Sean Bruno
Created:
2015-02-02 17:28:58 UTC
Size:
126.08 KB
patch
obsolete
># 1 "<built-in>" ># 1 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/fixdfti.c" >/* ===-- fixdfti.c - Implement __fixdfti -----------------------------------=== > * > * The LLVM Compiler Infrastructure > * > * This file is dual licensed under the MIT and the University of Illinois Open > * Source Licenses. See LICENSE.TXT for details. > * > * ===----------------------------------------------------------------------=== > * > * This file implements __fixdfti for the compiler_rt library. > * > * ===----------------------------------------------------------------------=== > */ > >#if 0 /* expanded by -frewrite-includes */ >#include "int_lib.h" >#endif /* expanded by -frewrite-includes */ ># 15 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/fixdfti.c" ># 1 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 1 >/* ===-- int_lib.h - configuration header for compiler-rt -----------------=== > * > * The LLVM Compiler Infrastructure > * > * This file is dual licensed under the MIT and the University of Illinois Open > * Source Licenses. See LICENSE.TXT for details. > * > * ===----------------------------------------------------------------------=== > * > * This file is a configuration header for compiler-rt. > * This file is not part of the interface of this library. > * > * ===----------------------------------------------------------------------=== > */ > >#ifndef INT_LIB_H >#define INT_LIB_H > >/* Assumption: Signed integral is 2's complement. */ >/* Assumption: Right shift of signed negative is arithmetic shift. */ >/* Assumption: Endianness is little or big (not mixed). */ > >/* ABI macro definitions */ > >#if __ARM_EABI__ ># define ARM_EABI_FNALIAS(aeabi_name, name) \ > void __aeabi_##aeabi_name() __attribute__((alias("__" #name))); > ># if !defined(__clang__) && defined(__GNUC__) && \ > (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 5) >/* The pcs attribute was introduced in GCC 4.5.0 */ ># define COMPILER_RT_ABI ># else ># 34 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) ># endif ># 36 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" > >#else ># 38 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># define ARM_EABI_FNALIAS(aeabi_name, name) ># define COMPILER_RT_ABI >#endif ># 41 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" > >#if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE)) >/* > * Kernel and boot environment can't use normal headers, > * so use the equivalent system headers. > */ >#if 0 /* expanded by -frewrite-includes */ ># include <machine/limits.h> >#endif /* expanded by -frewrite-includes */ ># 47 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 48 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" >#if 0 /* expanded by -frewrite-includes */ ># include <sys/stdint.h> >#endif /* expanded by -frewrite-includes */ ># 48 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 49 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" >#if 0 /* expanded by -frewrite-includes */ ># include <sys/types.h> >#endif /* expanded by -frewrite-includes */ ># 49 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 50 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" >#else ># 51 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" >/* Include the standard compiler builtin headers we use functionality from. */ >#if 0 /* expanded by -frewrite-includes */ ># include <limits.h> >#endif /* expanded by -frewrite-includes */ ># 52 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 1 3 4 >/*- > * Copyright (c) 1988, 1993 > * The Regents of the University of California. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 3. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * @(#)limits.h 8.2 (Berkeley) 1/4/94 > * $FreeBSD: projects/clang360-import/include/limits.h 219271 2011-03-04 19:28:27Z jilles $ > */ > >#ifndef _LIMITS_H_ >#define _LIMITS_H_ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 36 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 1 3 4 >/*- > * Copyright (c) 1991, 1993 > * The Regents of the University of California. All rights reserved. > * > * This code is derived from software contributed to Berkeley by > * Berkeley Software Design, Inc. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 > * $FreeBSD: projects/clang360-import/sys/sys/cdefs.h 277896 2015-01-29 19:21:21Z dim $ > */ > >#ifndef _SYS_CDEFS_H_ >#define _SYS_CDEFS_H_ > >/* > * Testing against Clang-specific extensions. > */ > >#ifndef __has_extension >#define __has_extension __has_feature >#endif ># 46 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifndef __has_feature >#define __has_feature(x) 0 >#endif ># 49 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifndef __has_include >#define __has_include(x) 0 >#endif ># 52 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifndef __has_builtin >#define __has_builtin(x) 0 >#endif ># 55 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if defined(__cplusplus) >#define __BEGIN_DECLS extern "C" { >#define __END_DECLS } >#else ># 60 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __BEGIN_DECLS >#define __END_DECLS >#endif ># 63 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * This code has been put in place to help reduce the addition of > * compiler specific defines in FreeBSD code. It helps to aid in > * having a compiler-agnostic source tree. > */ > >#if defined(__GNUC__) || defined(__INTEL_COMPILER) > >#if __GNUC__ >= 3 || defined(__INTEL_COMPILER) >#define __GNUCLIKE_ASM 3 >#define __GNUCLIKE_MATH_BUILTIN_CONSTANTS >#else ># 76 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __GNUCLIKE_ASM 2 >#endif ># 78 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __GNUCLIKE___TYPEOF 1 >#define __GNUCLIKE___OFFSETOF 1 >#define __GNUCLIKE___SECTION 1 > >#ifndef __INTEL_COMPILER ># define __GNUCLIKE_CTOR_SECTION_HANDLING 1 >#endif ># 85 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#define __GNUCLIKE_BUILTIN_CONSTANT_P 1 ># if defined(__INTEL_COMPILER) && defined(__cplusplus) \ > && __INTEL_COMPILER < 800 ># undef __GNUCLIKE_BUILTIN_CONSTANT_P ># endif ># 91 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if (__GNUC_MINOR__ > 95 || __GNUC__ >= 3) && !defined(__INTEL_COMPILER) ># define __GNUCLIKE_BUILTIN_VARARGS 1 ># define __GNUCLIKE_BUILTIN_STDARG 1 ># define __GNUCLIKE_BUILTIN_VAALIST 1 >#endif ># 97 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if defined(__GNUC__) ># define __GNUC_VA_LIST_COMPATIBILITY 1 >#endif ># 101 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Compiler memory barriers, specific to gcc and clang. > */ >#if defined(__GNUC__) >#define __compiler_membar() __asm __volatile(" " : : : "memory") >#endif ># 108 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __INTEL_COMPILER ># define __GNUCLIKE_BUILTIN_NEXT_ARG 1 ># define __GNUCLIKE_MATH_BUILTIN_RELOPS >#endif ># 113 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#define __GNUCLIKE_BUILTIN_MEMCPY 1 > >/* XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced */ >#define __CC_SUPPORTS_INLINE 1 >#define __CC_SUPPORTS___INLINE 1 >#define __CC_SUPPORTS___INLINE__ 1 > >#define __CC_SUPPORTS___FUNC__ 1 >#define __CC_SUPPORTS_WARNING 1 > >#define __CC_SUPPORTS_VARADIC_XXX 1 /* see varargs.h */ > >#define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1 > >#endif /* __GNUC__ || __INTEL_COMPILER */ ># 129 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Macro to test if we're using a specific version of gcc or later. > */ >#if defined(__GNUC__) && !defined(__INTEL_COMPILER) >#define __GNUC_PREREQ__(ma, mi) \ > (__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi)) >#else ># 137 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __GNUC_PREREQ__(ma, mi) 0 >#endif ># 139 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * The __CONCAT macro is used to concatenate parts of symbol names, e.g. > * with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. > * The __CONCAT macro is a bit tricky to use if it must work in non-ANSI > * mode -- there must be no spaces between its arguments, and for nested > * __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also > * concatenate double-quoted strings produced by the __STRING macro, but > * this only works with ANSI C. > * > * __XSTRING is like __STRING, but it expands any macros in its argument > * first. It is only available with ANSI C. > */ >#if defined(__STDC__) || defined(__cplusplus) >#define __P(protos) protos /* full-blown ANSI C */ >#define __CONCAT1(x,y) x ## y >#define __CONCAT(x,y) __CONCAT1(x,y) >#define __STRING(x) #x /* stringify without expanding x */ >#define __XSTRING(x) __STRING(x) /* expand x, then stringify */ > >#define __const const /* define reserved names to standard */ >#define __signed signed >#define __volatile volatile >#if defined(__cplusplus) >#define __inline inline /* convert to C++ keyword */ >#else ># 165 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#if !(defined(__CC_SUPPORTS___INLINE)) >#define __inline /* delete GCC keyword */ >#endif /* ! __CC_SUPPORTS___INLINE */ ># 168 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif /* !__cplusplus */ ># 169 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#else /* !(__STDC__ || __cplusplus) */ ># 171 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __P(protos) () /* traditional C preprocessor */ >#define __CONCAT(x,y) x/**/y >#define __STRING(x) "x" > >#if !defined(__CC_SUPPORTS___INLINE) >#define __const /* delete pseudo-ANSI C keywords */ >#define __inline >#define __signed >#define __volatile >/* > * In non-ANSI C environments, new programs will want ANSI-only C keywords > * deleted from the program and old programs will want them left alone. > * When using a compiler other than gcc, programs using the ANSI C keywords > * const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS. > * When using "gcc -traditional", we assume that this is the intent; if > * __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone. > */ >#ifndef NO_ANSI_KEYWORDS >#define const /* delete ANSI C keywords */ >#define inline >#define signed >#define volatile >#endif /* !NO_ANSI_KEYWORDS */ ># 194 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif /* !__CC_SUPPORTS___INLINE */ ># 195 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif /* !(__STDC__ || __cplusplus) */ ># 196 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Compiler-dependent macros to help declare dead (non-returning) and > * pure (no side effects) functions, and unused variables. They are > * null except for versions of gcc that are known to support the features > * properly (old versions of gcc-2 supported the dead and pure features > * in a different (wrong) way). If we do not provide an implementation > * for a given compiler, let the compile fail if it is told to use > * a feature that we cannot live without. > */ >#ifdef lint >#define __dead2 >#define __pure2 >#define __unused >#define __packed >#define __aligned(x) >#define __section(x) >#define __weak >#else ># 215 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __weak __attribute__((__weak__)) >#if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER) >#define __dead2 >#define __pure2 >#define __unused >#endif ># 221 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#if __GNUC__ == 2 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 7 && !defined(__INTEL_COMPILER) >#define __dead2 __attribute__((__noreturn__)) >#define __pure2 __attribute__((__const__)) >#define __unused >/* XXX Find out what to do for __packed, __aligned and __section */ >#endif ># 227 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#if __GNUC_PREREQ__(2, 7) >#define __dead2 __attribute__((__noreturn__)) >#define __pure2 __attribute__((__const__)) >#define __unused __attribute__((__unused__)) >#define __used __attribute__((__used__)) >#define __packed __attribute__((__packed__)) >#define __aligned(x) __attribute__((__aligned__(x))) >#define __section(x) __attribute__((__section__(x))) >#endif ># 236 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#if defined(__INTEL_COMPILER) >#define __dead2 __attribute__((__noreturn__)) >#define __pure2 __attribute__((__const__)) >#define __unused __attribute__((__unused__)) >#define __used __attribute__((__used__)) >#define __packed __attribute__((__packed__)) >#define __aligned(x) __attribute__((__aligned__(x))) >#define __section(x) __attribute__((__section__(x))) >#endif ># 245 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 246 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if !__GNUC_PREREQ__(2, 95) >#define __alignof(x) __offsetof(struct { char __a; x __b; }, __b) >#endif ># 250 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Keywords added in C11. > */ > >#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L || defined(lint) > >#if !__has_extension(c_alignas) >#if (defined(__cplusplus) && __cplusplus >= 201103L) || \ > __has_extension(cxx_alignas) >#define _Alignas(x) alignas(x) >#else ># 262 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >/* XXX: Only emulates _Alignas(constant-expression); not _Alignas(type-name). */ >#define _Alignas(x) __aligned(x) >#endif ># 265 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 266 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if defined(__cplusplus) && __cplusplus >= 201103L >#define _Alignof(x) alignof(x) >#else ># 270 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define _Alignof(x) __alignof(x) >#endif ># 272 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if !__has_extension(c_atomic) && !__has_extension(cxx_atomic) >/* > * No native support for _Atomic(). Place object in structure to prevent > * most forms of direct non-atomic access. > */ >#define _Atomic(T) struct { T volatile __val; } >#endif ># 280 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if defined(__cplusplus) && __cplusplus >= 201103L >#define _Noreturn [[noreturn]] >#else ># 284 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define _Noreturn __dead2 >#endif ># 286 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if !__has_extension(c_static_assert) >#if (defined(__cplusplus) && __cplusplus >= 201103L) || \ > __has_extension(cxx_static_assert) >#define _Static_assert(x, y) static_assert(x, y) >#elif __GNUC_PREREQ__(4,6) ># 292 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >/* Nothing, gcc 4.6 and higher has _Static_assert built-in */ >#elif defined(__COUNTER__) ># 294 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define _Static_assert(x, y) __Static_assert(x, __COUNTER__) >#define __Static_assert(x, y) ___Static_assert(x, y) >#define ___Static_assert(x, y) typedef char __assert_ ## y[(x) ? 1 : -1] >#else ># 298 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define _Static_assert(x, y) struct __hack >#endif ># 300 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 301 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if !__has_extension(c_thread_local) >/* > * XXX: Some compilers (Clang 3.3, GCC 4.7) falsely announce C++11 mode > * without actually supporting the thread_local keyword. Don't check for > * the presence of C++11 when defining _Thread_local. > */ >#if /* (defined(__cplusplus) && __cplusplus >= 201103L) || */ \ > __has_extension(cxx_thread_local) >#define _Thread_local thread_local >#else ># 312 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define _Thread_local __thread >#endif ># 314 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 315 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#endif /* __STDC_VERSION__ || __STDC_VERSION__ < 201112L */ ># 317 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Emulation of C11 _Generic(). Unlike the previously defined C11 > * keywords, it is not possible to implement this using exactly the same > * syntax. Therefore implement something similar under the name > * __generic(). Unlike _Generic(), this macro can only distinguish > * between a single type, so it requires nested invocations to > * distinguish multiple cases. > */ > >#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \ > __has_extension(c_generic_selections) >#define __generic(expr, t, yes, no) \ > _Generic(expr, t: yes, default: no) >#elif __GNUC_PREREQ__(3, 1) && !defined(__cplusplus) ># 332 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __generic(expr, t, yes, no) \ > __builtin_choose_expr( \ > __builtin_types_compatible_p(__typeof(expr), t), yes, no) >#endif ># 336 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(2, 96) >#define __malloc_like __attribute__((__malloc__)) >#define __pure __attribute__((__pure__)) >#else ># 341 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __malloc_like >#define __pure >#endif ># 344 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(3, 1) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800) >#define __always_inline __attribute__((__always_inline__)) >#else ># 348 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __always_inline >#endif ># 350 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(3, 1) >#define __noinline __attribute__ ((__noinline__)) >#else ># 354 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __noinline >#endif ># 356 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(3, 3) >#define __nonnull(x) __attribute__((__nonnull__(x))) >#else ># 360 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __nonnull(x) >#endif ># 362 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(3, 4) >#define __fastcall __attribute__((__fastcall__)) >#else ># 366 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __fastcall >#endif ># 368 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(4, 1) >#define __returns_twice __attribute__((__returns_twice__)) >#else ># 372 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __returns_twice >#endif ># 374 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* XXX: should use `#if __STDC_VERSION__ < 199901'. */ >#if !__GNUC_PREREQ__(2, 7) && !defined(__INTEL_COMPILER) >#define __func__ NULL >#endif ># 379 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if (defined(__INTEL_COMPILER) || (defined(__GNUC__) && __GNUC__ >= 2)) && !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901 >#define __LONG_LONG_SUPPORTED >#endif ># 383 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* C++11 exposes a load of C99 stuff */ >#if defined(__cplusplus) && __cplusplus >= 201103L >#define __LONG_LONG_SUPPORTED >#ifndef __STDC_LIMIT_MACROS >#define __STDC_LIMIT_MACROS >#endif ># 390 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifndef __STDC_CONSTANT_MACROS >#define __STDC_CONSTANT_MACROS >#endif ># 393 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 394 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * GCC 2.95 provides `__restrict' as an extension to C90 to support the > * C99-specific `restrict' type qualifier. We happen to use `__restrict' as > * a way to define the `restrict' type qualifier without disturbing older > * software that is unaware of C99 keywords. > */ >#if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95) >#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 || defined(lint) >#define __restrict >#else ># 405 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __restrict restrict >#endif ># 407 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 408 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * GNU C version 2.96 adds explicit branch prediction so that > * the CPU back-end can hint the processor and also so that > * code blocks can be reordered such that the predicted path > * sees a more linear flow, thus improving cache behavior, etc. > * > * The following two macros provide us with a way to utilize this > * compiler feature. Use __predict_true() if you expect the expression > * to evaluate to true, and __predict_false() if you expect the > * expression to evaluate to false. > * > * A few notes about usage: > * > * * Generally, __predict_false() error condition checks (unless > * you have some _strong_ reason to do otherwise, in which case > * document it), and/or __predict_true() `no-error' condition > * checks, assuming you want to optimize for the no-error case. > * > * * Other than that, if you don't know the likelihood of a test > * succeeding from empirical or other `hard' evidence, don't > * make predictions. > * > * * These are meant to be used in places that are run `a lot'. > * It is wasteful to make predictions in code that is run > * seldomly (e.g. at subsystem initialization time) as the > * basic block reordering that this affects can often generate > * larger code. > */ >#if __GNUC_PREREQ__(2, 96) >#define __predict_true(exp) __builtin_expect((exp), 1) >#define __predict_false(exp) __builtin_expect((exp), 0) >#else ># 441 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __predict_true(exp) (exp) >#define __predict_false(exp) (exp) >#endif ># 444 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if __GNUC_PREREQ__(4, 2) >#define __hidden __attribute__((__visibility__("hidden"))) >#define __exported __attribute__((__visibility__("default"))) >#else ># 449 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __hidden >#define __exported >#endif ># 452 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h> > * require it. > */ >#if __GNUC_PREREQ__(4, 1) >#define __offsetof(type, field) __builtin_offsetof(type, field) >#else ># 460 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifndef __cplusplus >#define __offsetof(type, field) \ > ((__size_t)(__uintptr_t)((const volatile void *)&((type *)0)->field)) >#else ># 464 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __offsetof(type, field) \ > (__offsetof__ (reinterpret_cast <__size_t> \ > (&reinterpret_cast <const volatile char &> \ > (static_cast<type *> (0)->field)))) >#endif ># 469 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 470 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __rangeof(type, start, end) \ > (__offsetof(type, end) - __offsetof(type, start)) > >/* > * Given the pointer x to the member m of the struct s, return > * a pointer to the containing structure. When using GCC, we first > * assign pointer x to a local variable, to check that its type is > * compatible with member m. > */ >#if __GNUC_PREREQ__(3, 1) >#define __containerof(x, s, m) ({ \ > const volatile __typeof(((s *)0)->m) *__x = (x); \ > __DEQUALIFY(s *, (const volatile char *)__x - __offsetof(s, m));\ >}) >#else ># 485 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __containerof(x, s, m) \ > __DEQUALIFY(s *, (const volatile char *)(x) - __offsetof(s, m)) >#endif ># 488 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Compiler-dependent macros to declare that functions take printf-like > * or scanf-like arguments. They are null except for versions of gcc > * that are known to support the features properly (old versions of gcc-2 > * didn't permit keeping the keywords out of the application namespace). > */ >#if !__GNUC_PREREQ__(2, 7) && !defined(__INTEL_COMPILER) >#define __printflike(fmtarg, firstvararg) >#define __scanflike(fmtarg, firstvararg) >#define __format_arg(fmtarg) >#define __strfmonlike(fmtarg, firstvararg) >#define __strftimelike(fmtarg, firstvararg) >#else ># 502 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __printflike(fmtarg, firstvararg) \ > __attribute__((__format__ (__printf__, fmtarg, firstvararg))) >#define __scanflike(fmtarg, firstvararg) \ > __attribute__((__format__ (__scanf__, fmtarg, firstvararg))) >#define __format_arg(fmtarg) __attribute__((__format_arg__ (fmtarg))) >#define __strfmonlike(fmtarg, firstvararg) \ > __attribute__((__format__ (__strfmon__, fmtarg, firstvararg))) >#define __strftimelike(fmtarg, firstvararg) \ > __attribute__((__format__ (__strftime__, fmtarg, firstvararg))) >#endif ># 512 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ >#if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version >= 300001 && \ > defined(__GNUC__) && !defined(__INTEL_COMPILER) >#define __printf0like(fmtarg, firstvararg) \ > __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) >#else ># 519 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __printf0like(fmtarg, firstvararg) >#endif ># 521 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if defined(__GNUC__) || defined(__INTEL_COMPILER) >#ifndef __INTEL_COMPILER >#define __strong_reference(sym,aliassym) \ > extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) >#endif ># 527 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifdef __STDC__ >#define __weak_reference(sym,alias) \ > __asm__(".weak " #alias); \ > __asm__(".equ " #alias ", " #sym) >#define __warn_references(sym,msg) \ > __asm__(".section .gnu.warning." #sym); \ > __asm__(".asciz \"" msg "\""); \ > __asm__(".previous") >#define __sym_compat(sym,impl,verid) \ > __asm__(".symver " #impl ", " #sym "@" #verid) >#define __sym_default(sym,impl,verid) \ > __asm__(".symver " #impl ", " #sym "@@" #verid) >#else ># 540 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __weak_reference(sym,alias) \ > __asm__(".weak alias"); \ > __asm__(".equ alias, sym") >#define __warn_references(sym,msg) \ > __asm__(".section .gnu.warning.sym"); \ > __asm__(".asciz \"msg\""); \ > __asm__(".previous") >#define __sym_compat(sym,impl,verid) \ > __asm__(".symver impl, sym@verid") >#define __sym_default(impl,sym,verid) \ > __asm__(".symver impl, sym@@verid") >#endif /* __STDC__ */ ># 552 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif /* __GNUC__ || __INTEL_COMPILER */ ># 553 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#define __GLOBL1(sym) __asm__(".globl " #sym) >#define __GLOBL(sym) __GLOBL1(sym) > >#if defined(__GNUC__) || defined(__INTEL_COMPILER) >#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") >#else ># 560 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >/* > * The following definition might not work well if used in header files, > * but it should be better than nothing. If you want a "do nothing" > * version, then it should generate some harmless declaration, such as: > * #define __IDSTRING(name,string) struct __hack > */ >#define __IDSTRING(name,string) static const char name[] __unused = string >#endif ># 568 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Embed the rcs id of a source file in the resulting library. Note that in > * more recent ELF binutils, we use .ident allowing the ID to be stripped. > * Usage: > * __FBSDID("$FreeBSD: projects/clang360-import/sys/sys/cdefs.h 277896 2015-01-29 19:21:21Z dim $"); > */ >#ifndef __FBSDID >#if !defined(lint) && !defined(STRIP_FBSDID) >#define __FBSDID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) >#else ># 579 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __FBSDID(s) struct __hack >#endif ># 581 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 582 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __RCSID >#ifndef NO__RCSID >#define __RCSID(s) __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) >#else ># 587 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __RCSID(s) struct __hack >#endif ># 589 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 590 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __RCSID_SOURCE >#ifndef NO__RCSID_SOURCE >#define __RCSID_SOURCE(s) __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s) >#else ># 595 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __RCSID_SOURCE(s) struct __hack >#endif ># 597 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 598 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __SCCSID >#ifndef NO__SCCSID >#define __SCCSID(s) __IDSTRING(__CONCAT(__sccsid_,__LINE__),s) >#else ># 603 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __SCCSID(s) struct __hack >#endif ># 605 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 606 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __COPYRIGHT >#ifndef NO__COPYRIGHT >#define __COPYRIGHT(s) __IDSTRING(__CONCAT(__copyright_,__LINE__),s) >#else ># 611 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __COPYRIGHT(s) struct __hack >#endif ># 613 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 614 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __DECONST >#define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var)) >#endif ># 618 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __DEVOLATILE >#define __DEVOLATILE(type, var) ((type)(__uintptr_t)(volatile void *)(var)) >#endif ># 622 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#ifndef __DEQUALIFY >#define __DEQUALIFY(type, var) ((type)(__uintptr_t)(const volatile void *)(var)) >#endif ># 626 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/*- > * The following definitions are an extension of the behavior originally > * implemented in <sys/_posix.h>, but with a different level of granularity. > * POSIX.1 requires that the macros we test be defined before any standard > * header file is included. > * > * Here's a quick run-down of the versions: > * defined(_POSIX_SOURCE) 1003.1-1988 > * _POSIX_C_SOURCE == 1 1003.1-1990 > * _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option > * _POSIX_C_SOURCE == 199309 1003.1b-1993 > * _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995, > * and the omnibus ISO/IEC 9945-1: 1996 > * _POSIX_C_SOURCE == 200112 1003.1-2001 > * _POSIX_C_SOURCE == 200809 1003.1-2008 > * > * In addition, the X/Open Portability Guide, which is now the Single UNIX > * Specification, defines a feature-test macro which indicates the version of > * that specification, and which subsumes _POSIX_C_SOURCE. > * > * Our macros begin with two underscores to avoid namespace screwage. > */ > >/* Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1. */ >#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 1 >#undef _POSIX_C_SOURCE /* Probably illegal, but beyond caring now. */ >#define _POSIX_C_SOURCE 199009 >#endif ># 655 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2. */ >#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 2 >#undef _POSIX_C_SOURCE >#define _POSIX_C_SOURCE 199209 >#endif ># 661 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* Deal with various X/Open Portability Guides and Single UNIX Spec. */ >#ifdef _XOPEN_SOURCE >#if _XOPEN_SOURCE - 0 >= 700 >#define __XSI_VISIBLE 700 >#undef _POSIX_C_SOURCE >#define _POSIX_C_SOURCE 200809 >#elif _XOPEN_SOURCE - 0 >= 600 ># 669 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __XSI_VISIBLE 600 >#undef _POSIX_C_SOURCE >#define _POSIX_C_SOURCE 200112 >#elif _XOPEN_SOURCE - 0 >= 500 ># 673 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __XSI_VISIBLE 500 >#undef _POSIX_C_SOURCE >#define _POSIX_C_SOURCE 199506 >#endif ># 677 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 678 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Deal with all versions of POSIX. The ordering relative to the tests above is > * important. > */ >#if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) >#define _POSIX_C_SOURCE 198808 >#endif ># 686 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#ifdef _POSIX_C_SOURCE >#if _POSIX_C_SOURCE >= 200809 >#define __POSIX_VISIBLE 200809 >#define __ISO_C_VISIBLE 1999 >#elif _POSIX_C_SOURCE >= 200112 ># 691 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 200112 >#define __ISO_C_VISIBLE 1999 >#elif _POSIX_C_SOURCE >= 199506 ># 694 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 199506 >#define __ISO_C_VISIBLE 1990 >#elif _POSIX_C_SOURCE >= 199309 ># 697 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 199309 >#define __ISO_C_VISIBLE 1990 >#elif _POSIX_C_SOURCE >= 199209 ># 700 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 199209 >#define __ISO_C_VISIBLE 1990 >#elif _POSIX_C_SOURCE >= 199009 ># 703 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 199009 >#define __ISO_C_VISIBLE 1990 >#else ># 706 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 198808 >#define __ISO_C_VISIBLE 0 >#endif /* _POSIX_C_SOURCE */ ># 709 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#else ># 710 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >/*- > * Deal with _ANSI_SOURCE: > * If it is defined, and no other compilation environment is explicitly > * requested, then define our internal feature-test macros to zero. This > * makes no difference to the preprocessor (undefined symbols in preprocessing > * expressions are defined to have value zero), but makes it more convenient for > * a test program to print out the values. > * > * If a program mistakenly defines _ANSI_SOURCE and some other macro such as > * _POSIX_C_SOURCE, we will assume that it wants the broader compilation > * environment (and in fact we will never get here). > */ >#if defined(_ANSI_SOURCE) /* Hide almost everything. */ >#define __POSIX_VISIBLE 0 >#define __XSI_VISIBLE 0 >#define __BSD_VISIBLE 0 >#define __ISO_C_VISIBLE 1990 >#elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ ># 728 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 0 >#define __XSI_VISIBLE 0 >#define __BSD_VISIBLE 0 >#define __ISO_C_VISIBLE 1999 >#elif defined(_C11_SOURCE) /* Localism to specify strict C11 env. */ ># 733 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 0 >#define __XSI_VISIBLE 0 >#define __BSD_VISIBLE 0 >#define __ISO_C_VISIBLE 2011 >#else /* Default environment: show everything. */ ># 738 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __POSIX_VISIBLE 200809 >#define __XSI_VISIBLE 700 >#define __BSD_VISIBLE 1 >#define __ISO_C_VISIBLE 2011 >#endif ># 743 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#endif ># 744 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >#if defined(__mips) || defined(__powerpc64__) >#define __NO_TLS 1 >#endif ># 748 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* > * Lock annotations. > * > * Clang provides support for doing basic thread-safety tests at > * compile-time, by marking which locks will/should be held when > * entering/leaving a functions. > * > * Furthermore, it is also possible to annotate variables and structure > * members to enforce that they are only accessed when certain locks are > * held. > */ > >#if __has_extension(c_thread_safety_attributes) >#define __lock_annotate(x) __attribute__((x)) >#else ># 764 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 >#define __lock_annotate(x) >#endif ># 766 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 > >/* Structure implements a lock. */ >#define __lockable __lock_annotate(lockable) > >/* Function acquires an exclusive or shared lock. */ >#define __locks_exclusive(...) \ > __lock_annotate(exclusive_lock_function(__VA_ARGS__)) >#define __locks_shared(...) \ > __lock_annotate(shared_lock_function(__VA_ARGS__)) > >/* Function attempts to acquire an exclusive or shared lock. */ >#define __trylocks_exclusive(...) \ > __lock_annotate(exclusive_trylock_function(__VA_ARGS__)) >#define __trylocks_shared(...) \ > __lock_annotate(shared_trylock_function(__VA_ARGS__)) > >/* Function releases a lock. */ >#define __unlocks(...) __lock_annotate(unlock_function(__VA_ARGS__)) > >/* Function asserts that an exclusive or shared lock is held. */ >#define __asserts_exclusive(...) \ > __lock_annotate(assert_exclusive_lock(__VA_ARGS__)) >#define __asserts_shared(...) \ > __lock_annotate(assert_shared_lock(__VA_ARGS__)) > >/* Function requires that an exclusive or shared lock is or is not held. */ >#define __requires_exclusive(...) \ > __lock_annotate(exclusive_locks_required(__VA_ARGS__)) >#define __requires_shared(...) \ > __lock_annotate(shared_locks_required(__VA_ARGS__)) >#define __requires_unlocked(...) \ > __lock_annotate(locks_excluded(__VA_ARGS__)) > >/* Function should not be analyzed. */ >#define __no_lock_analysis __lock_annotate(no_thread_safety_analysis) > >/* Guard variables and structure members by lock. */ >#define __guarded_by(x) __lock_annotate(guarded_by(x)) >#define __pt_guarded_by(x) __lock_annotate(pt_guarded_by(x)) > >#endif /* !_SYS_CDEFS_H_ */ ># 807 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/cdefs.h" 3 4 ># 37 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 2 3 4 > >#if __POSIX_VISIBLE >#define _POSIX_ARG_MAX 4096 >#define _POSIX_LINK_MAX 8 >#define _POSIX_MAX_CANON 255 >#define _POSIX_MAX_INPUT 255 >#define _POSIX_NAME_MAX 14 >#define _POSIX_PIPE_BUF 512 >#define _POSIX_SSIZE_MAX 32767 >#define _POSIX_STREAM_MAX 8 > >#if __POSIX_VISIBLE >= 200112 >#define _POSIX_CHILD_MAX 25 >#define _POSIX_NGROUPS_MAX 8 >#define _POSIX_OPEN_MAX 20 >#define _POSIX_PATH_MAX 256 >#define _POSIX_TZNAME_MAX 6 >#else ># 55 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 >#define _POSIX_CHILD_MAX 6 >#define _POSIX_NGROUPS_MAX 0 >#define _POSIX_OPEN_MAX 16 >#define _POSIX_PATH_MAX 255 >#define _POSIX_TZNAME_MAX 3 >#endif ># 61 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */ >#define BC_DIM_MAX 2048 /* max array elements in bc(1) */ >#define BC_SCALE_MAX 99 /* max scale value in bc(1) */ >#define BC_STRING_MAX 1000 /* max const string length in bc(1) */ >#define COLL_WEIGHTS_MAX 0 /* max weights for order keyword */ >#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */ >#define LINE_MAX 2048 /* max bytes in an input line */ >#define RE_DUP_MAX 255 /* max RE's in interval notation */ > >#define _POSIX2_BC_BASE_MAX 99 >#define _POSIX2_BC_DIM_MAX 2048 >#define _POSIX2_BC_SCALE_MAX 99 >#define _POSIX2_BC_STRING_MAX 1000 >#define _POSIX2_EQUIV_CLASS_MAX 2 >#define _POSIX2_EXPR_NEST_MAX 32 >#define _POSIX2_LINE_MAX 2048 >#define _POSIX2_RE_DUP_MAX 255 >#endif ># 80 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#if __POSIX_VISIBLE >= 199309 >#define _POSIX_AIO_LISTIO_MAX 2 >#define _POSIX_AIO_MAX 1 >#define _POSIX_DELAYTIMER_MAX 32 >#define _POSIX_MQ_OPEN_MAX 8 >#define _POSIX_MQ_PRIO_MAX 32 >#define _POSIX_RTSIG_MAX 8 >#define _POSIX_SEM_NSEMS_MAX 256 >#define _POSIX_SEM_VALUE_MAX 32767 >#define _POSIX_SIGQUEUE_MAX 32 >#define _POSIX_TIMER_MAX 32 > >#define _POSIX_CLOCKRES_MIN 20000000 >#endif ># 95 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#if __POSIX_VISIBLE >= 199506 >#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 >#define _POSIX_THREAD_KEYS_MAX 128 >#define _POSIX_THREAD_THREADS_MAX 64 >#endif ># 101 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#if __POSIX_VISIBLE >= 200112 >#define _POSIX_HOST_NAME_MAX 255 >#define _POSIX_LOGIN_NAME_MAX 9 >#define _POSIX_SS_REPL_MAX 4 >#define _POSIX_SYMLINK_MAX 255 >#define _POSIX_SYMLOOP_MAX 8 >#define _POSIX_TRACE_EVENT_NAME_MAX 30 >#define _POSIX_TRACE_NAME_MAX 8 >#define _POSIX_TRACE_SYS_MAX 8 >#define _POSIX_TRACE_USER_EVENT_MAX 32 >#define _POSIX_TTY_NAME_MAX 9 >#define _POSIX2_CHARCLASS_NAME_MAX 14 >#define _POSIX2_COLL_WEIGHTS_MAX 2 > >#define _POSIX_RE_DUP_MAX _POSIX2_RE_DUP_MAX >#endif ># 118 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 >#define NL_ARGMAX 99 /* max # of position args for printf */ >#define NL_MSGMAX 32767 >#define NL_SETMAX 255 >#define NL_TEXTMAX 2048 >#endif ># 125 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#if __XSI_VISIBLE >#define _XOPEN_IOV_MAX 16 >#define _XOPEN_NAME_MAX 255 >#define _XOPEN_PATH_MAX 1024 >#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */ > >#define NL_LANGMAX 31 /* max LANG name length */ >#define NL_NMAX 1 >#endif ># 135 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#define MB_LEN_MAX 6 /* 31-bit UTF-8 */ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/limits.h> >#endif /* expanded by -frewrite-includes */ ># 138 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 1 3 4 >/*- > * Copyright (c) 1988, 1993 > * The Regents of the University of California. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * $FreeBSD: projects/clang360-import/sys/sys/limits.h 219271 2011-03-04 19:28:27Z jilles $ > */ > >#ifndef _SYS_LIMITS_H_ >#define _SYS_LIMITS_H_ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 35 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 ># 36 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 >#if 0 /* expanded by -frewrite-includes */ >#include <machine/_limits.h> >#endif /* expanded by -frewrite-includes */ ># 36 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_limits.h" 1 3 4 >/*- > * Copyright (c) 1988, 1993 > * The Regents of the University of California. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * @(#)limits.h 8.3 (Berkeley) 1/4/94 > * from: src/sys/i386/include/_limits.h,v 1.27 2005/01/06 22:18:15 imp > * $FreeBSD: projects/clang360-import/sys/mips/include/_limits.h 218266 2011-02-04 13:09:46Z tijl $ > */ > >#ifndef _MACHINE__LIMITS_H_ >#define _MACHINE__LIMITS_H_ > >/* > * According to ANSI (section 2.2.4.2), the values below must be usable by > * #if preprocessing directives. Additionally, the expression must have the > * same type as would an expression that is an object of the corresponding > * type converted according to the integral promotions. The subtraction for > * INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an > * unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2). > */ > >#define __CHAR_BIT 8 /* number of bits in a char */ > >#define __SCHAR_MAX 0x7f /* max value for a signed char */ >#define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ > >#define __UCHAR_MAX 0xff /* max value for an unsigned char */ > >#define __USHRT_MAX 0xffff /* max value for an unsigned short */ >#define __SHRT_MAX 0x7fff /* max value for a short */ >#define __SHRT_MIN (-0x7fff - 1) /* min value for a short */ > >#define __UINT_MAX 0xffffffff /* max value for an unsigned int */ >#define __INT_MAX 0x7fffffff /* max value for an int */ >#define __INT_MIN (-0x7fffffff - 1) /* min value for an int */ > >#ifdef __mips_n64 >#define __ULONG_MAX 0xffffffffffffffff >#define __LONG_MAX 0x7fffffffffffffff >#define __LONG_MIN (-0x7fffffffffffffff - 1) >#define __LONG_BIT 64 >#else ># 67 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_limits.h" 3 4 >#define __ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ >#define __LONG_MAX 0x7fffffffL /* max value for a long */ >#define __LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ >#define __LONG_BIT 32 >#endif ># 72 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_limits.h" 3 4 > > /* max value for an unsigned long long */ >#define __ULLONG_MAX 0xffffffffffffffffULL >#define __LLONG_MAX 0x7fffffffffffffffLL /* max value for a long long */ >#define __LLONG_MIN (-0x7fffffffffffffffLL - 1) /* min for a long long */ > >#define __SSIZE_MAX __LONG_MAX /* max value for a ssize_t */ > >#define __SIZE_T_MAX __ULONG_MAX /* max value for a size_t */ > >#define __OFF_MAX __LLONG_MAX /* max value for an off_t */ >#define __OFF_MIN __LLONG_MIN /* min value for an off_t */ > >/* Quads and long longs are the same size. Ensure they stay in sync. */ >#define __UQUAD_MAX __ULLONG_MAX /* max value for a uquad_t */ >#define __QUAD_MAX __LLONG_MAX /* max value for a quad_t */ >#define __QUAD_MIN __LLONG_MIN /* min value for a quad_t */ > >#define __WORD_BIT 32 > >#define __MINSIGSTKSZ (512 * 4) > >#endif /* !_MACHINE__LIMITS_H_ */ ># 95 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_limits.h" 3 4 ># 37 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 2 3 4 > >#define CHAR_BIT __CHAR_BIT /* number of bits in a char */ > >#define SCHAR_MAX __SCHAR_MAX /* max value for a signed char */ >#define SCHAR_MIN __SCHAR_MIN /* min value for a signed char */ > >#define UCHAR_MAX __UCHAR_MAX /* max value for an unsigned char */ > >#ifdef __CHAR_UNSIGNED__ >#define CHAR_MAX UCHAR_MAX /* max value for a char */ >#define CHAR_MIN 0 /* min value for a char */ >#else ># 49 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 >#define CHAR_MAX SCHAR_MAX >#define CHAR_MIN SCHAR_MIN >#endif ># 52 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#define USHRT_MAX __USHRT_MAX /* max value for an unsigned short */ >#define SHRT_MAX __SHRT_MAX /* max value for a short */ >#define SHRT_MIN __SHRT_MIN /* min value for a short */ > >#define UINT_MAX __UINT_MAX /* max value for an unsigned int */ >#define INT_MAX __INT_MAX /* max value for an int */ >#define INT_MIN __INT_MIN /* min value for an int */ > >#define ULONG_MAX __ULONG_MAX /* max for an unsigned long */ >#define LONG_MAX __LONG_MAX /* max for a long */ >#define LONG_MIN __LONG_MIN /* min for a long */ > >#ifdef __LONG_LONG_SUPPORTED >#define ULLONG_MAX __ULLONG_MAX /* max for an unsigned long long */ >#define LLONG_MAX __LLONG_MAX /* max for a long long */ >#define LLONG_MIN __LLONG_MIN /* min for a long long */ >#endif ># 70 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#if __POSIX_VISIBLE || __XSI_VISIBLE >#define SSIZE_MAX __SSIZE_MAX /* max value for an ssize_t */ >#endif ># 74 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >#define SIZE_T_MAX __SIZE_T_MAX /* max value for a size_t */ > >#define OFF_MAX __OFF_MAX /* max value for an off_t */ >#define OFF_MIN __OFF_MIN /* min value for an off_t */ >#endif ># 81 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#if __BSD_VISIBLE >#define GID_MAX UINT_MAX /* max value for a gid_t */ >#define UID_MAX UINT_MAX /* max value for a uid_t */ > >#define UQUAD_MAX (__UQUAD_MAX) /* max value for a uquad_t */ >#define QUAD_MAX (__QUAD_MAX) /* max value for a quad_t */ >#define QUAD_MIN (__QUAD_MIN) /* min value for a quad_t */ >#endif ># 90 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809 >#define LONG_BIT __LONG_BIT >#define WORD_BIT __WORD_BIT >#endif ># 95 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#if __POSIX_VISIBLE >#define MQ_PRIO_MAX 64 >#endif ># 99 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 > >#endif /* !_SYS_LIMITS_H_ */ ># 101 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/limits.h" 3 4 ># 139 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 2 3 4 > >#if __POSIX_VISIBLE >#if 0 /* expanded by -frewrite-includes */ >#include <sys/syslimits.h> >#endif /* expanded by -frewrite-includes */ ># 141 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 1 3 4 >/*- > * Copyright (c) 1988, 1993 > * The Regents of the University of California. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * @(#)syslimits.h 8.1 (Berkeley) 6/2/93 > * $FreeBSD: projects/clang360-import/sys/sys/syslimits.h 194498 2009-06-19 17:10:35Z brooks $ > */ > >#ifndef _SYS_SYSLIMITS_H_ >#define _SYS_SYSLIMITS_H_ > >#if !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_) >#ifndef _SYS_CDEFS_H_ >#error this file needs sys/cdefs.h as a prerequisite >#endif ># 40 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 >#ifdef __CC_SUPPORTS_WARNING >#warning "No user-serviceable parts inside." >#endif ># 43 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 >#endif ># 44 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 > >/* > * Do not add any new variables here. (See the comment at the end of > * the file for why.) > */ >#define ARG_MAX 262144 /* max bytes for an exec function */ >#ifndef CHILD_MAX >#define CHILD_MAX 40 /* max simultaneous processes */ >#endif ># 53 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 >#define LINK_MAX 32767 /* max file link count */ >#define MAX_CANON 255 /* max bytes in term canon input line */ >#define MAX_INPUT 255 /* max bytes in terminal input */ >#define NAME_MAX 255 /* max bytes in a file name */ >#ifndef NGROUPS_MAX >#define NGROUPS_MAX 1023 /* max supplemental group id's */ >#endif ># 60 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 >#ifndef OPEN_MAX >#define OPEN_MAX 64 /* max open files per process */ >#endif ># 63 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 >#define PATH_MAX 1024 /* max bytes in pathname */ >#define PIPE_BUF 512 /* max bytes for atomic pipe writes */ >#define IOV_MAX 1024 /* max elements in i/o vector */ > >/* > * We leave the following values undefined to force applications to either > * assume conservative values or call sysconf() to get the current value. > * > * HOST_NAME_MAX > * > * (We should do this for most of the values currently defined here, > * but many programs are not prepared to deal with this yet.) > */ >#endif ># 77 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/syslimits.h" 3 4 ># 142 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 2 3 4 >#endif ># 143 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 > >#endif /* !_LIMITS_H_ */ ># 145 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/limits.h" 3 4 ># 53 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 2 >#if 0 /* expanded by -frewrite-includes */ ># include <stdint.h> >#endif /* expanded by -frewrite-includes */ ># 53 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 1 3 4 >/*- > * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org> > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * > * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * $FreeBSD: projects/clang360-import/sys/sys/stdint.h 237517 2012-06-24 04:15:58Z andrew $ > */ > >#ifndef _SYS_STDINT_H_ >#define _SYS_STDINT_H_ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 32 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 ># 33 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 >#if 0 /* expanded by -frewrite-includes */ >#include <sys/_types.h> >#endif /* expanded by -frewrite-includes */ ># 33 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 1 3 4 >/*- > * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * > * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * $FreeBSD: projects/clang360-import/sys/sys/_types.h 276660 2015-01-04 15:26:02Z kevlo $ > */ > >#ifndef _SYS__TYPES_H_ >#define _SYS__TYPES_H_ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 32 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 3 4 ># 33 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 3 4 >#if 0 /* expanded by -frewrite-includes */ >#include <machine/_types.h> >#endif /* expanded by -frewrite-includes */ ># 33 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 1 3 4 >/*- > * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> > * Copyright (c) 1990, 1993 > * The Regents of the University of California. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 3. All advertising materials mentioning features or use of this software > * must display the following acknowledgement: > * This product includes software developed by the University of > * California, Berkeley and its contributors. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 > * From: @(#)types.h 8.3 (Berkeley) 1/5/94 > * from: src/sys/i386/include/_types.h,v 1.12 2005/07/02 23:13:31 thompsa > * $FreeBSD: projects/clang360-import/sys/mips/include/_types.h 263998 2014-04-01 14:46:11Z tijl $ > */ > >#ifndef _MACHINE__TYPES_H_ >#define _MACHINE__TYPES_H_ > >#ifndef _SYS_CDEFS_H_ >#error this file needs sys/cdefs.h as a prerequisite >#endif ># 46 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 > >/* > * Basic types upon which most other types are built. > */ >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef short __int16_t; >typedef unsigned short __uint16_t; >typedef int __int32_t; >typedef unsigned int __uint32_t; >#ifdef __mips_n64 >typedef long __int64_t; >typedef unsigned long __uint64_t; >#else ># 60 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >#ifndef lint >__extension__ >#endif ># 63 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >/* LONGLONG */ >typedef long long __int64_t; >#ifndef lint >__extension__ >#endif ># 68 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >/* LONGLONG */ >typedef unsigned long long __uint64_t; >#endif ># 71 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 > >/* > * Standard type definitions. > */ >typedef __int32_t __clock_t; /* clock()... */ >typedef double __double_t; >typedef float __float_t; >#ifdef __mips_n64 >typedef __int64_t __critical_t; >typedef __int64_t __intfptr_t; >typedef __int64_t __intptr_t; >#else ># 83 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __int32_t __critical_t; >typedef __int32_t __intfptr_t; >typedef __int32_t __intptr_t; >#endif ># 87 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __int64_t __intmax_t; >typedef __int32_t __int_fast8_t; >typedef __int32_t __int_fast16_t; >typedef __int32_t __int_fast32_t; >typedef __int64_t __int_fast64_t; >typedef __int8_t __int_least8_t; >typedef __int16_t __int_least16_t; >typedef __int32_t __int_least32_t; >typedef __int64_t __int_least64_t; >#if defined(__mips_n64) || defined(__mips_n32) >typedef __int64_t __register_t; >typedef __int64_t f_register_t; >#else ># 100 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __int32_t __register_t; >typedef __int32_t f_register_t; >#endif ># 103 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >#ifdef __mips_n64 >typedef __int64_t __ptrdiff_t; >typedef __int64_t __segsz_t; >typedef __uint64_t __size_t; >typedef __int64_t __ssize_t; >typedef __uint64_t __uintfptr_t; >typedef __uint64_t __uintptr_t; >#else ># 111 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __int32_t __ptrdiff_t; /* ptr1 - ptr2 */ >typedef __int32_t __segsz_t; /* segment size (in pages) */ >typedef __uint32_t __size_t; /* sizeof() */ >typedef __int32_t __ssize_t; /* byte count or error */ >typedef __uint32_t __uintfptr_t; >typedef __uint32_t __uintptr_t; >#endif ># 118 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __int64_t __time_t; /* time()... */ >typedef __uint64_t __uintmax_t; >typedef __uint32_t __uint_fast8_t; >typedef __uint32_t __uint_fast16_t; >typedef __uint32_t __uint_fast32_t; >typedef __uint64_t __uint_fast64_t; >typedef __uint8_t __uint_least8_t; >typedef __uint16_t __uint_least16_t; >typedef __uint32_t __uint_least32_t; >typedef __uint64_t __uint_least64_t; >#if defined(__mips_n64) || defined(__mips_n32) >typedef __uint64_t __u_register_t; >#else ># 131 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __uint32_t __u_register_t; >#endif ># 133 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >#ifdef __mips_n64 >typedef __uint64_t __vm_offset_t; >typedef __uint64_t __vm_size_t; >#else ># 137 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __uint32_t __vm_offset_t; >typedef __uint32_t __vm_size_t; >#endif ># 140 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >#if defined(__mips_n64) || defined(__mips_n32) /* PHYSADDR_64_BIT */ >typedef __uint64_t __vm_paddr_t; >#else ># 143 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef __uint32_t __vm_paddr_t; >#endif ># 145 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 > >typedef __int64_t __vm_ooffset_t; >typedef __uint64_t __vm_pindex_t; >typedef int ___wchar_t; > >#define __WCHAR_MIN __INT_MIN /* min value for a wchar_t */ >#define __WCHAR_MAX __INT_MAX /* max value for a wchar_t */ > >/* > * Unusual type definitions. > */ >#ifdef __GNUCLIKE_BUILTIN_VARARGS >typedef __builtin_va_list __va_list; /* internally known to gcc */ >#else ># 159 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >typedef char * __va_list; >#endif /* __GNUCLIKE_BUILTIN_VARARGS */ ># 161 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 >#if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \ > && !defined(__NO_GNUC_VA_LIST) >#define __GNUC_VA_LIST >typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ >#endif ># 166 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 > >#endif /* !_MACHINE__TYPES_H_ */ ># 168 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_types.h" 3 4 ># 34 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 2 3 4 > >/* > * Standard type definitions. > */ >typedef __int32_t __blksize_t; /* file block size */ >typedef __int64_t __blkcnt_t; /* file block count */ >typedef __int32_t __clockid_t; /* clock_gettime()... */ >typedef __uint32_t __fflags_t; /* file flags */ >typedef __uint64_t __fsblkcnt_t; >typedef __uint64_t __fsfilcnt_t; >typedef __uint32_t __gid_t; >typedef __int64_t __id_t; /* can hold a gid_t, pid_t, or uid_t */ >typedef __uint32_t __ino_t; /* inode number */ >typedef long __key_t; /* IPC key (for Sys V IPC) */ >typedef __int32_t __lwpid_t; /* Thread ID (a.k.a. LWP) */ >typedef __uint16_t __mode_t; /* permissions */ >typedef int __accmode_t; /* access permissions */ >typedef int __nl_item; >typedef __uint16_t __nlink_t; /* link count */ >typedef __int64_t __off_t; /* file offset */ >typedef __int32_t __pid_t; /* process [group] */ >typedef __int64_t __rlim_t; /* resource limit - intentionally */ > /* signed, because of legacy code */ > /* that uses -1 for RLIM_INFINITY */ >typedef __uint8_t __sa_family_t; >typedef __uint32_t __socklen_t; >typedef long __suseconds_t; /* microseconds (signed) */ >typedef struct __timer *__timer_t; /* timer_gettime()... */ >typedef struct __mq *__mqd_t; /* mq_open()... */ >typedef __uint32_t __uid_t; >typedef unsigned int __useconds_t; /* microseconds (unsigned) */ >typedef int __cpuwhich_t; /* which parameter for cpuset. */ >typedef int __cpulevel_t; /* level parameter for cpuset. */ >typedef int __cpusetid_t; /* cpuset identifier. */ > >/* > * Unusual type definitions. > */ >/* > * rune_t is declared to be an ``int'' instead of the more natural > * ``unsigned long'' or ``long''. Two things are happening here. It is not > * unsigned so that EOF (-1) can be naturally assigned to it and used. Also, > * it looks like 10646 will be a 31 bit standard. This means that if your > * ints cannot hold 32 bits, you will be in trouble. The reason an int was > * chosen over a long is that the is*() and to*() routines take ints (says > * ANSI C), but they use __ct_rune_t instead of int. > * > * NOTE: rune_t is not covered by ANSI nor other standards, and should not > * be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and > * rune_t must be the same type. Also, wint_t should be able to hold all > * members of the largest character set plus one extra value (WEOF), and > * must be at least 16 bits. > */ >typedef int __ct_rune_t; /* arg type for ctype funcs */ >typedef __ct_rune_t __rune_t; /* rune_t (see above) */ >typedef __ct_rune_t __wint_t; /* wint_t (see above) */ > >/* Clang already provides these types as built-ins, but only in C++ mode. */ >#if !defined(__clang__) || !defined(__cplusplus) >typedef __uint_least16_t __char16_t; >typedef __uint_least32_t __char32_t; >#endif ># 96 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 3 4 >/* In C++11, char16_t and char32_t are built-in types. */ >#if defined(__cplusplus) && __cplusplus >= 201103L >#define _CHAR16_T_DECLARED >#define _CHAR32_T_DECLARED >#endif ># 101 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 3 4 > >typedef __uint32_t __dev_t; /* device number */ > >typedef __uint32_t __fixpt_t; /* fixed point number */ > >/* > * mbstate_t is an opaque object to keep conversion state during multibyte > * stream conversions. > */ >typedef union { > char __mbstate8[128]; > __int64_t _mbstateL; /* for alignment */ >} __mbstate_t; > >#endif /* !_SYS__TYPES_H_ */ ># 116 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_types.h" 3 4 ># 34 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 2 3 4 > >#if 0 /* expanded by -frewrite-includes */ >#include <machine/_stdint.h> >#endif /* expanded by -frewrite-includes */ ># 35 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 1 3 4 >/*- > * Copyright (c) 2001, 2002 Mike Barcroft <mike@FreeBSD.org> > * Copyright (c) 2001 The NetBSD Foundation, Inc. > * All rights reserved. > * > * This code is derived from software contributed to The NetBSD Foundation > * by Klaus Klein. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 3. All advertising materials mentioning features or use of this software > * must display the following acknowledgement: > * This product includes software developed by the NetBSD > * Foundation, Inc. and its contributors. > * 4. Neither the name of The NetBSD Foundation nor the names of its > * contributors may be used to endorse or promote products derived > * from this software without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS > * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED > * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR > * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS > * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF > * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS > * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE > * POSSIBILITY OF SUCH DAMAGE. > * > * from: src/sys/i386/include/_stdint.h,v 1.2 2004/05/18 16:04:57 stefanf > * $FreeBSD: projects/clang360-import/sys/mips/include/_stdint.h 255194 2013-09-03 22:04:55Z imp $ > */ > >#ifndef _MACHINE__STDINT_H_ >#define _MACHINE__STDINT_H_ > >#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) > >#define INT8_C(c) (c) >#define INT16_C(c) (c) >#define INT32_C(c) (c) > >#define UINT8_C(c) (c) >#define UINT16_C(c) (c) >#define UINT32_C(c) (c ## U) > >#ifdef __mips_n64 >#define INT64_C(c) (c ## L) >#define UINT64_C(c) (c ## UL) >#else ># 58 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 >#define INT64_C(c) (c ## LL) >#define UINT64_C(c) (c ## ULL) >#endif ># 61 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 > >#define INTMAX_C(c) INT64_C(c) >#define UINTMAX_C(c) UINT64_C(c) > >#endif /* !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) */ ># 66 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 > >#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) > >#ifndef __INT64_C >#ifdef __mips_n64 >#define __INT64_C(c) (c ## L) >#define __UINT64_C(c) (c ## UL) >#else ># 74 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 >#define __INT64_C(c) (c ## LL) >#define __UINT64_C(c) (c ## ULL) >#endif ># 77 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 >#endif ># 78 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 > >/* > * ISO/IEC 9899:1999 > * 7.18.2.1 Limits of exact-width integer types > */ >/* Minimum values of exact-width signed integer types. */ >#define INT8_MIN (-0x7f-1) >#define INT16_MIN (-0x7fff-1) >#define INT32_MIN (-0x7fffffff-1) >#define INT64_MIN (-__INT64_C(0x7fffffffffffffff)-1) > >/* Maximum values of exact-width signed integer types. */ >#define INT8_MAX 0x7f >#define INT16_MAX 0x7fff >#define INT32_MAX 0x7fffffff >#define INT64_MAX __INT64_C(0x7fffffffffffffff) > >/* Maximum values of exact-width unsigned integer types. */ >#define UINT8_MAX 0xff >#define UINT16_MAX 0xffff >#define UINT32_MAX 0xffffffff >#define UINT64_MAX __UINT64_C(0xffffffffffffffff) > >/* > * ISO/IEC 9899:1999 > * 7.18.2.2 Limits of minimum-width integer types > */ >/* Minimum values of minimum-width signed integer types. */ >#define INT_LEAST8_MIN INT8_MIN >#define INT_LEAST16_MIN INT16_MIN >#define INT_LEAST32_MIN INT32_MIN >#define INT_LEAST64_MIN INT64_MIN > >/* Maximum values of minimum-width signed integer types. */ >#define INT_LEAST8_MAX INT8_MAX >#define INT_LEAST16_MAX INT16_MAX >#define INT_LEAST32_MAX INT32_MAX >#define INT_LEAST64_MAX INT64_MAX > >/* Maximum values of minimum-width unsigned integer types. */ >#define UINT_LEAST8_MAX UINT8_MAX >#define UINT_LEAST16_MAX UINT16_MAX >#define UINT_LEAST32_MAX UINT32_MAX >#define UINT_LEAST64_MAX UINT64_MAX > >/* > * ISO/IEC 9899:1999 > * 7.18.2.3 Limits of fastest minimum-width integer types > */ >/* Minimum values of fastest minimum-width signed integer types. */ >#define INT_FAST8_MIN INT32_MIN >#define INT_FAST16_MIN INT32_MIN >#define INT_FAST32_MIN INT32_MIN >#define INT_FAST64_MIN INT64_MIN > >/* Maximum values of fastest minimum-width signed integer types. */ >#define INT_FAST8_MAX INT32_MAX >#define INT_FAST16_MAX INT32_MAX >#define INT_FAST32_MAX INT32_MAX >#define INT_FAST64_MAX INT64_MAX > >/* Maximum values of fastest minimum-width unsigned integer types. */ >#define UINT_FAST8_MAX UINT32_MAX >#define UINT_FAST16_MAX UINT32_MAX >#define UINT_FAST32_MAX UINT32_MAX >#define UINT_FAST64_MAX UINT64_MAX > >/* > * ISO/IEC 9899:1999 > * 7.18.2.4 Limits of integer types capable of holding object pointers > */ >#ifdef __mips_n64 >#define INTPTR_MIN INT64_MIN >#define INTPTR_MAX INT64_MAX >#define UINTPTR_MAX UINT64_MAX >#else ># 154 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 >#define INTPTR_MIN INT32_MIN >#define INTPTR_MAX INT32_MAX >#define UINTPTR_MAX UINT32_MAX >#endif ># 158 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 > >/* > * ISO/IEC 9899:1999 > * 7.18.2.5 Limits of greatest-width integer types > */ >#define INTMAX_MIN INT64_MIN >#define INTMAX_MAX INT64_MAX >#define UINTMAX_MAX UINT64_MAX > >/* > * ISO/IEC 9899:1999 > * 7.18.3 Limits of other integer types > */ >#ifdef __mips_n64 >/* Limits of ptrdiff_t. */ >#define PTRDIFF_MIN INT64_MIN >#define PTRDIFF_MAX INT64_MAX > >/* Limit of size_t. */ >#define SIZE_MAX UINT64_MAX >#else ># 179 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 >/* Limits of ptrdiff_t. */ >#define PTRDIFF_MIN INT32_MIN >#define PTRDIFF_MAX INT32_MAX > >/* Limit of size_t. */ >#define SIZE_MAX UINT32_MAX >#endif ># 186 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 > >/* Limits of sig_atomic_t. */ >#define SIG_ATOMIC_MIN INT32_MIN >#define SIG_ATOMIC_MAX INT32_MAX > >/* Limits of wint_t. */ >#define WINT_MIN INT32_MIN >#define WINT_MAX INT32_MAX > >#endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ ># 196 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 > >#endif /* !_MACHINE__STDINT_H_ */ ># 198 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/_stdint.h" 3 4 ># 36 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 2 3 4 >#if 0 /* expanded by -frewrite-includes */ >#include <sys/_stdint.h> >#endif /* expanded by -frewrite-includes */ ># 36 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 1 3 4 >/*- > * Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org> > * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org> > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * > * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * $FreeBSD: projects/clang360-import/sys/sys/_stdint.h 222813 2011-06-07 08:46:13Z attilio $ > */ > >#ifndef _SYS__STDINT_H_ >#define _SYS__STDINT_H_ > >#ifndef _INT8_T_DECLARED >typedef __int8_t int8_t; >#define _INT8_T_DECLARED >#endif ># 37 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _INT16_T_DECLARED >typedef __int16_t int16_t; >#define _INT16_T_DECLARED >#endif ># 42 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _INT32_T_DECLARED >typedef __int32_t int32_t; >#define _INT32_T_DECLARED >#endif ># 47 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _INT64_T_DECLARED >typedef __int64_t int64_t; >#define _INT64_T_DECLARED >#endif ># 52 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _UINT8_T_DECLARED >typedef __uint8_t uint8_t; >#define _UINT8_T_DECLARED >#endif ># 57 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _UINT16_T_DECLARED >typedef __uint16_t uint16_t; >#define _UINT16_T_DECLARED >#endif ># 62 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _UINT32_T_DECLARED >typedef __uint32_t uint32_t; >#define _UINT32_T_DECLARED >#endif ># 67 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _UINT64_T_DECLARED >typedef __uint64_t uint64_t; >#define _UINT64_T_DECLARED >#endif ># 72 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#ifndef _INTPTR_T_DECLARED >typedef __intptr_t intptr_t; >#define _INTPTR_T_DECLARED >#endif ># 77 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 >#ifndef _UINTPTR_T_DECLARED >typedef __uintptr_t uintptr_t; >#define _UINTPTR_T_DECLARED >#endif ># 81 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 > >#endif /* !_SYS__STDINT_H_ */ ># 83 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/_stdint.h" 3 4 ># 37 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 2 3 4 > >typedef __int_least8_t int_least8_t; >typedef __int_least16_t int_least16_t; >typedef __int_least32_t int_least32_t; >typedef __int_least64_t int_least64_t; > >typedef __uint_least8_t uint_least8_t; >typedef __uint_least16_t uint_least16_t; >typedef __uint_least32_t uint_least32_t; >typedef __uint_least64_t uint_least64_t; > >typedef __int_fast8_t int_fast8_t; >typedef __int_fast16_t int_fast16_t; >typedef __int_fast32_t int_fast32_t; >typedef __int_fast64_t int_fast64_t; > >typedef __uint_fast8_t uint_fast8_t; >typedef __uint_fast16_t uint_fast16_t; >typedef __uint_fast32_t uint_fast32_t; >typedef __uint_fast64_t uint_fast64_t; > >#ifndef _INTMAX_T_DECLARED >typedef __intmax_t intmax_t; >#define _INTMAX_T_DECLARED >#endif ># 62 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 >#ifndef _UINTMAX_T_DECLARED >typedef __uintmax_t uintmax_t; >#define _UINTMAX_T_DECLARED >#endif ># 66 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 > >/* GNU and Darwin define this and people seem to think it's portable */ >#if defined(UINTPTR_MAX) && defined(UINT64_MAX) && (UINTPTR_MAX == UINT64_MAX) >#define __WORDSIZE 64 >#else ># 71 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 >#define __WORDSIZE 32 >#endif ># 73 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 > >/* Limits of wchar_t. */ >#define WCHAR_MIN __WCHAR_MIN >#define WCHAR_MAX __WCHAR_MAX > >#endif /* !_SYS_STDINT_H_ */ ># 79 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdint.h" 3 4 ># 54 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 2 >#if 0 /* expanded by -frewrite-includes */ ># include <stdbool.h> >#endif /* expanded by -frewrite-includes */ ># 54 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdbool.h" 1 3 4 >/* > * Copyright (c) 2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * > * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * $FreeBSD: projects/clang360-import/include/stdbool.h 228878 2011-12-25 20:15:41Z ed $ > */ > >#ifndef __bool_true_false_are_defined >#define __bool_true_false_are_defined 1 > >#ifndef __cplusplus > >#define false 0 >#define true 1 > >#define bool _Bool >#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER) >typedef int _Bool; >#endif ># 41 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdbool.h" 3 4 > >#endif /* !__cplusplus */ ># 43 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdbool.h" 3 4 >#endif /* __bool_true_false_are_defined */ ># 44 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/stdbool.h" 3 4 ># 55 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 2 >#if 0 /* expanded by -frewrite-includes */ ># include <float.h> >#endif /* expanded by -frewrite-includes */ ># 55 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 1 3 4 >/*- > * Copyright (c) 1989 Regents of the University of California. > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * from: @(#)float.h 7.1 (Berkeley) 5/8/90 > * from: src/sys/i386/include/float.h,v 1.8 1999/08/28 00:44:11 peter > * JNPR: float.h,v 1.4 2006/12/02 09:53:41 katta > * $FreeBSD: projects/clang360-import/sys/mips/include/float.h 230475 2012-01-23 06:36:41Z das $ > */ > >#ifndef _MACHINE_FLOAT_H_ >#define _MACHINE_FLOAT_H_ 1 > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 38 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 ># 39 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 > >__BEGIN_DECLS >extern int __flt_rounds(void); >__END_DECLS > >#define FLT_RADIX 2 /* b */ >#ifdef CPU_HAVEFPU >#define FLT_ROUNDS __flt_rounds() /* FP addition rounds to nearest */ >#else ># 48 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 >#define FLT_ROUNDS (-1) >#endif ># 50 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 > >#if __ISO_C_VISIBLE >= 1999 >#define FLT_EVAL_METHOD 0 >#define DECIMAL_DIG 17 >#endif ># 55 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 > >#define FLT_MANT_DIG 24 /* p */ >#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ >#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ >#define FLT_MIN_EXP (-125) /* emin */ >#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */ >#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */ >#define FLT_MAX_EXP 128 /* emax */ >#define FLT_MAX 3.40282347E+38F /* (1-b**(-p))*b**emax */ >#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */ >#if __ISO_C_VISIBLE >= 2011 >#define FLT_TRUE_MIN 1.40129846E-45F /* b**(emin-p) */ >#define FLT_DECIMAL_DIG 9 /* ceil(1+p*log10(b)) */ >#define FLT_HAS_SUBNORM 1 >#endif /* __ISO_C_VISIBLE >= 2011 */ ># 70 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 > >#define DBL_MANT_DIG 53 >#define DBL_EPSILON 2.2204460492503131E-16 >#define DBL_DIG 15 >#define DBL_MIN_EXP (-1021) >#define DBL_MIN 2.2250738585072014E-308 >#define DBL_MIN_10_EXP (-307) >#define DBL_MAX_EXP 1024 >#define DBL_MAX 1.7976931348623157E+308 >#define DBL_MAX_10_EXP 308 >#if __ISO_C_VISIBLE >= 2011 >#define DBL_TRUE_MIN 4.9406564584124654E-324 >#define DBL_DECIMAL_DIG 17 >#define DBL_HAS_SUBNORM 1 >#endif /* __ISO_C_VISIBLE >= 2011 */ ># 85 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 > >#define LDBL_MANT_DIG DBL_MANT_DIG >#define LDBL_EPSILON ((long double)DBL_EPSILON) >#define LDBL_DIG DBL_DIG >#define LDBL_MIN_EXP DBL_MIN_EXP >#define LDBL_MIN ((long double)DBL_MIN) >#define LDBL_MIN_10_EXP DBL_MIN_10_EXP >#define LDBL_MAX_EXP DBL_MAX_EXP >#define LDBL_MAX ((long double)DBL_MAX) >#define LDBL_MAX_10_EXP DBL_MAX_10_EXP >#if __ISO_C_VISIBLE >= 2011 >#define LDBL_TRUE_MIN ((long double)DBL_TRUE_MIN) >#define LDBL_DECIMAL_DIG DBL_DECIMAL_DIG >#define LDBL_HAS_SUBNORM DBL_HAS_SUBNORM >#endif /* __ISO_C_VISIBLE >= 2011 */ ># 100 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 > >#endif /* _MACHINE_FLOAT_H_ */ ># 102 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/float.h" 3 4 ># 56 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 2 >#endif ># 57 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" > >/* Include the commonly used internal type definitions. */ >#if 0 /* expanded by -frewrite-includes */ >#include "int_types.h" >#endif /* expanded by -frewrite-includes */ ># 59 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 1 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" 1 >/* ===-- int_lib.h - configuration header for compiler-rt -----------------=== > * > * The LLVM Compiler Infrastructure > * > * This file is dual licensed under the MIT and the University of Illinois Open > * Source Licenses. See LICENSE.TXT for details. > * > * ===----------------------------------------------------------------------=== > * > * This file is not part of the interface of this library. > * > * This file defines various standard types, most importantly a number of unions > * used to access parts of larger types. > * > * ===----------------------------------------------------------------------=== > */ > >#ifndef INT_TYPES_H >#define INT_TYPES_H > >#if 0 /* expanded by -frewrite-includes */ >#include "int_endianness.h" >#endif /* expanded by -frewrite-includes */ ># 21 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" ># 1 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" 1 >/* ===-- int_endianness.h - configuration header for compiler-rt ------------=== > * > * The LLVM Compiler Infrastructure > * > * This file is dual licensed under the MIT and the University of Illinois Open > * Source Licenses. See LICENSE.TXT for details. > * > * ===----------------------------------------------------------------------=== > * > * This file is a configuration header for compiler-rt. > * This file is not part of the interface of this library. > * > * ===----------------------------------------------------------------------=== > */ > >#ifndef INT_ENDIANNESS_H >#define INT_ENDIANNESS_H > >#if defined(__SVR4) && defined(__sun) >#if 0 /* expanded by -frewrite-includes */ >#include <sys/byteorder.h> >#endif /* expanded by -frewrite-includes */ ># 20 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" ># 21 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#if defined(_BIG_ENDIAN) >#define _YUGA_LITTLE_ENDIAN 0 >#define _YUGA_BIG_ENDIAN 1 >#elif defined(_LITTLE_ENDIAN) ># 26 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#define _YUGA_LITTLE_ENDIAN 1 >#define _YUGA_BIG_ENDIAN 0 >#else /* !_LITTLE_ENDIAN */ ># 29 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#error "unknown endianness" >#endif /* !_LITTLE_ENDIAN */ ># 31 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#endif /* Solaris and AuroraUX. */ ># 33 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >/* .. */ > >#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ > defined(__minix) >#if 0 /* expanded by -frewrite-includes */ >#include <sys/endian.h> >#endif /* expanded by -frewrite-includes */ ># 38 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 1 3 4 >/*- > * Copyright (c) 2002 Thomas Moestl <tmm@FreeBSD.org> > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * > * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * $FreeBSD: projects/clang360-import/sys/sys/endian.h 208331 2010-05-20 06:16:13Z phk $ > */ > >#ifndef _SYS_ENDIAN_H_ >#define _SYS_ENDIAN_H_ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 32 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 ># 33 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 >#if 0 /* expanded by -frewrite-includes */ >#include <sys/_types.h> >#endif /* expanded by -frewrite-includes */ ># 33 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 ># 34 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 >#if 0 /* expanded by -frewrite-includes */ >#include <machine/endian.h> >#endif /* expanded by -frewrite-includes */ ># 34 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 ># 1 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 1 3 4 >/*- > * Copyright (c) 1987, 1991 Regents of the University of California. > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions > * are met: > * 1. Redistributions of source code must retain the above copyright > * notice, this list of conditions and the following disclaimer. > * 2. Redistributions in binary form must reproduce the above copyright > * notice, this list of conditions and the following disclaimer in the > * documentation and/or other materials provided with the distribution. > * 4. Neither the name of the University nor the names of its contributors > * may be used to endorse or promote products derived from this software > * without specific prior written permission. > * > * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND > * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE > * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > * SUCH DAMAGE. > * > * @(#)endian.h 7.8 (Berkeley) 4/3/91 > * $FreeBSD: projects/clang360-import/sys/mips/include/endian.h 211159 2010-08-11 02:28:39Z neel $ > */ > >#ifndef _MACHINE_ENDIAN_H_ >#define _MACHINE_ENDIAN_H_ > >#if 0 /* expanded by -frewrite-includes */ >#include <sys/cdefs.h> >#endif /* expanded by -frewrite-includes */ ># 36 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 ># 37 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 >#ifndef __ASSEMBLER__ >#if 0 /* expanded by -frewrite-includes */ >#include <sys/_types.h> >#endif /* expanded by -frewrite-includes */ ># 38 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 ># 39 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 >#endif ># 40 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >#ifdef __cplusplus >extern "C" { >#endif ># 44 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >/* > * Definitions for byte order, according to byte significance from low > * address to high. > */ >#define _LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ >#define _BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ >#define _PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ > >#ifdef __MIPSEB__ >#define _BYTE_ORDER _BIG_ENDIAN >#else ># 56 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 >#define _BYTE_ORDER _LITTLE_ENDIAN >#endif /* __MIBSEB__ */ ># 58 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >/* > * Deprecated variants that don't have enough underscores to be useful in more > * strict namespaces. > */ >#if __BSD_VISIBLE >#define LITTLE_ENDIAN _LITTLE_ENDIAN >#define BIG_ENDIAN _BIG_ENDIAN >#define PDP_ENDIAN _PDP_ENDIAN >#define BYTE_ORDER _BYTE_ORDER >#endif ># 69 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >#ifndef __ASSEMBLER__ >#if defined(__GNUCLIKE_BUILTIN_CONSTANT_P) && defined(__OPTIMIZE__) >#define __is_constant(x) __builtin_constant_p(x) >#else ># 74 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 >#define __is_constant(x) 0 >#endif ># 76 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >#define __bswap16_const(x) (((x) >> 8) | (((x) << 8) & 0xff00)) >#define __bswap32_const(x) (((x) >> 24) | (((x) >> 8) & 0xff00) | \ > (((x) << 8) & 0xff0000) | (((x) << 24) & 0xff000000)) >#define __bswap64_const(x) (((x) >> 56) | (((x) >> 40) & 0xff00) | \ > (((x) >> 24) & 0xff0000) | (((x) >> 8) & 0xff000000) | \ > (((x) << 8) & ((__uint64_t)0xff << 32)) | \ > (((x) << 24) & ((__uint64_t)0xff << 40)) | \ > (((x) << 40) & ((__uint64_t)0xff << 48)) | (((x) << 56))) > >static __inline __uint16_t >__bswap16_var(__uint16_t _x) >{ > > return ((_x >> 8) | ((_x << 8) & 0xff00)); >} > >static __inline __uint32_t >__bswap32_var(__uint32_t _x) >{ > > return ((_x >> 24) | ((_x >> 8) & 0xff00) | ((_x << 8) & 0xff0000) | > ((_x << 24) & 0xff000000)); >} > >static __inline __uint64_t >__bswap64_var(__uint64_t _x) >{ > > return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) | > ((_x >> 8) & 0xff000000) | ((_x << 8) & ((__uint64_t)0xff << 32)) | > ((_x << 24) & ((__uint64_t)0xff << 40)) | > ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56))); >} > >#define __bswap16(x) ((__uint16_t)(__is_constant((x)) ? \ > __bswap16_const((__uint16_t)(x)) : __bswap16_var((__uint16_t)(x)))) >#define __bswap32(x) ((__uint32_t)(__is_constant((x)) ? \ > __bswap32_const((__uint32_t)(x)) : __bswap32_var((__uint32_t)(x)))) >#define __bswap64(x) ((__uint64_t)(__is_constant((x)) ? \ > __bswap64_const((__uint64_t)(x)) : __bswap64_var((__uint64_t)(x)))) > >#ifdef __MIPSEB__ >#define __htonl(x) ((__uint32_t)(x)) >#define __htons(x) ((__uint16_t)(x)) >#define __ntohl(x) ((__uint32_t)(x)) >#define __ntohs(x) ((__uint16_t)(x)) >/* > * Define the order of 32-bit words in 64-bit words. > */ >/* > * XXXMIPS: Additional parentheses to make gcc more happy. > */ >#define _QUAD_HIGHWORD 0 >#define _QUAD_LOWWORD 1 >#else ># 132 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 >#define _QUAD_HIGHWORD 1 >#define _QUAD_LOWWORD 0 >#define __ntohl(x) (__bswap32((x))) >#define __ntohs(x) (__bswap16((x))) >#define __htonl(x) (__bswap32((x))) >#define __htons(x) (__bswap16((x))) >#endif /* _MIPSEB */ ># 139 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >#endif /* _ASSEMBLER_ */ ># 141 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >#ifdef __cplusplus >} >#endif ># 145 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 > >#endif /* !_MACHINE_ENDIAN_H_ */ ># 147 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/machine/endian.h" 3 4 ># 35 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 2 3 4 > >#ifndef _UINT8_T_DECLARED >typedef __uint8_t uint8_t; >#define _UINT8_T_DECLARED >#endif ># 40 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 > >#ifndef _UINT16_T_DECLARED >typedef __uint16_t uint16_t; >#define _UINT16_T_DECLARED >#endif ># 45 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 > >#ifndef _UINT32_T_DECLARED >typedef __uint32_t uint32_t; >#define _UINT32_T_DECLARED >#endif ># 50 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 > >#ifndef _UINT64_T_DECLARED >typedef __uint64_t uint64_t; >#define _UINT64_T_DECLARED >#endif ># 55 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 > >/* > * General byte order swapping functions. > */ >#define bswap16(x) __bswap16(x) >#define bswap32(x) __bswap32(x) >#define bswap64(x) __bswap64(x) > >/* > * Host to big endian, host to little endian, big endian to host, and little > * endian to host byte order functions as detailed in byteorder(9). > */ >#if _BYTE_ORDER == _LITTLE_ENDIAN >#define htobe16(x) bswap16((x)) >#define htobe32(x) bswap32((x)) >#define htobe64(x) bswap64((x)) >#define htole16(x) ((uint16_t)(x)) >#define htole32(x) ((uint32_t)(x)) >#define htole64(x) ((uint64_t)(x)) > >#define be16toh(x) bswap16((x)) >#define be32toh(x) bswap32((x)) >#define be64toh(x) bswap64((x)) >#define le16toh(x) ((uint16_t)(x)) >#define le32toh(x) ((uint32_t)(x)) >#define le64toh(x) ((uint64_t)(x)) >#else /* _BYTE_ORDER != _LITTLE_ENDIAN */ ># 82 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 >#define htobe16(x) ((uint16_t)(x)) >#define htobe32(x) ((uint32_t)(x)) >#define htobe64(x) ((uint64_t)(x)) >#define htole16(x) bswap16((x)) >#define htole32(x) bswap32((x)) >#define htole64(x) bswap64((x)) > >#define be16toh(x) ((uint16_t)(x)) >#define be32toh(x) ((uint32_t)(x)) >#define be64toh(x) ((uint64_t)(x)) >#define le16toh(x) bswap16((x)) >#define le32toh(x) bswap32((x)) >#define le64toh(x) bswap64((x)) >#endif /* _BYTE_ORDER == _LITTLE_ENDIAN */ ># 96 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 > >/* Alignment-agnostic encode/decode bytestream to/from little/big endian. */ > >static __inline uint16_t >be16dec(const void *pp) >{ > uint8_t const *p = (uint8_t const *)pp; > > return ((p[0] << 8) | p[1]); >} > >static __inline uint32_t >be32dec(const void *pp) >{ > uint8_t const *p = (uint8_t const *)pp; > > return (((unsigned)p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]); >} > >static __inline uint64_t >be64dec(const void *pp) >{ > uint8_t const *p = (uint8_t const *)pp; > > return (((uint64_t)be32dec(p) << 32) | be32dec(p + 4)); >} > >static __inline uint16_t >le16dec(const void *pp) >{ > uint8_t const *p = (uint8_t const *)pp; > > return ((p[1] << 8) | p[0]); >} > >static __inline uint32_t >le32dec(const void *pp) >{ > uint8_t const *p = (uint8_t const *)pp; > > return (((unsigned)p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]); >} > >static __inline uint64_t >le64dec(const void *pp) >{ > uint8_t const *p = (uint8_t const *)pp; > > return (((uint64_t)le32dec(p + 4) << 32) | le32dec(p)); >} > >static __inline void >be16enc(void *pp, uint16_t u) >{ > uint8_t *p = (uint8_t *)pp; > > p[0] = (u >> 8) & 0xff; > p[1] = u & 0xff; >} > >static __inline void >be32enc(void *pp, uint32_t u) >{ > uint8_t *p = (uint8_t *)pp; > > p[0] = (u >> 24) & 0xff; > p[1] = (u >> 16) & 0xff; > p[2] = (u >> 8) & 0xff; > p[3] = u & 0xff; >} > >static __inline void >be64enc(void *pp, uint64_t u) >{ > uint8_t *p = (uint8_t *)pp; > > be32enc(p, (uint32_t)(u >> 32)); > be32enc(p + 4, (uint32_t)(u & 0xffffffffU)); >} > >static __inline void >le16enc(void *pp, uint16_t u) >{ > uint8_t *p = (uint8_t *)pp; > > p[0] = u & 0xff; > p[1] = (u >> 8) & 0xff; >} > >static __inline void >le32enc(void *pp, uint32_t u) >{ > uint8_t *p = (uint8_t *)pp; > > p[0] = u & 0xff; > p[1] = (u >> 8) & 0xff; > p[2] = (u >> 16) & 0xff; > p[3] = (u >> 24) & 0xff; >} > >static __inline void >le64enc(void *pp, uint64_t u) >{ > uint8_t *p = (uint8_t *)pp; > > le32enc(p, (uint32_t)(u & 0xffffffffU)); > le32enc(p + 4, (uint32_t)(u >> 32)); >} > >#endif /* _SYS_ENDIAN_H_ */ ># 206 "/var/tmp/mips.mips64/home/sbruno/bsd/clang360-import/tmp/usr/include/sys/endian.h" 3 4 ># 39 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" 2 > >#if _BYTE_ORDER == _BIG_ENDIAN >#define _YUGA_LITTLE_ENDIAN 0 >#define _YUGA_BIG_ENDIAN 1 >#elif _BYTE_ORDER == _LITTLE_ENDIAN ># 44 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#define _YUGA_LITTLE_ENDIAN 1 >#define _YUGA_BIG_ENDIAN 0 >#endif /* _BYTE_ORDER */ ># 47 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#endif /* *BSD */ ># 49 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#if defined(__OpenBSD__) || defined(__Bitrig__) >#if 0 /* expanded by -frewrite-includes */ >#include <machine/endian.h> >#endif /* expanded by -frewrite-includes */ ># 51 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" ># 52 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#if _BYTE_ORDER == _BIG_ENDIAN >#define _YUGA_LITTLE_ENDIAN 0 >#define _YUGA_BIG_ENDIAN 1 >#elif _BYTE_ORDER == _LITTLE_ENDIAN ># 57 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#define _YUGA_LITTLE_ENDIAN 1 >#define _YUGA_BIG_ENDIAN 0 >#endif /* _BYTE_ORDER */ ># 60 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#endif /* OpenBSD and Bitrig. */ ># 62 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >/* .. */ > >/* Mac OSX has __BIG_ENDIAN__ or __LITTLE_ENDIAN__ automatically set by the > * compiler (at least with GCC) */ >#if defined(__APPLE__) || defined(__ellcc__ ) > >#ifdef __BIG_ENDIAN__ >#if __BIG_ENDIAN__ >#define _YUGA_LITTLE_ENDIAN 0 >#define _YUGA_BIG_ENDIAN 1 >#endif ># 74 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#endif /* __BIG_ENDIAN__ */ ># 75 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#ifdef __LITTLE_ENDIAN__ >#if __LITTLE_ENDIAN__ >#define _YUGA_LITTLE_ENDIAN 1 >#define _YUGA_BIG_ENDIAN 0 >#endif ># 81 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#endif /* __LITTLE_ENDIAN__ */ ># 82 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#endif /* Mac OSX */ ># 84 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >/* .. */ > >#if defined(__linux__) > >#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ >#define _YUGA_LITTLE_ENDIAN 0 >#define _YUGA_BIG_ENDIAN 1 >#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ># 93 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" >#define _YUGA_LITTLE_ENDIAN 1 >#define _YUGA_BIG_ENDIAN 0 >#endif /* __BYTE_ORDER__ */ ># 96 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#endif /* GNU/Linux */ ># 98 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#if defined(_WIN32) > >#define _YUGA_LITTLE_ENDIAN 1 >#define _YUGA_BIG_ENDIAN 0 > >#endif /* Windows */ ># 105 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >/* . */ > >#if !defined(_YUGA_LITTLE_ENDIAN) || !defined(_YUGA_BIG_ENDIAN) >#error Unable to determine endian >#endif /* Check we found an endianness correctly. */ ># 111 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" > >#endif /* INT_ENDIANNESS_H */ ># 113 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_endianness.h" ># 22 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" 2 > >typedef int si_int; >typedef unsigned su_int; > >typedef long long di_int; >typedef unsigned long long du_int; > >typedef union >{ > di_int all; > struct > { >#if _YUGA_LITTLE_ENDIAN > su_int low; > si_int high; >#else ># 38 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > si_int high; > su_int low; >#endif /* _YUGA_LITTLE_ENDIAN */ ># 41 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > }s; >} dwords; > >typedef union >{ > du_int all; > struct > { >#if _YUGA_LITTLE_ENDIAN > su_int low; > su_int high; >#else ># 53 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > su_int high; > su_int low; >#endif /* _YUGA_LITTLE_ENDIAN */ ># 56 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > }s; >} udwords; > >#if __LP64__ >#define CRT_HAS_128BIT >#endif ># 62 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > >#ifdef CRT_HAS_128BIT >typedef int ti_int __attribute__ ((mode (TI))); >typedef unsigned tu_int __attribute__ ((mode (TI))); > >typedef union >{ > ti_int all; > struct > { >#if _YUGA_LITTLE_ENDIAN > du_int low; > di_int high; >#else ># 76 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > di_int high; > du_int low; >#endif /* _YUGA_LITTLE_ENDIAN */ ># 79 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > }s; >} twords; > >typedef union >{ > tu_int all; > struct > { >#if _YUGA_LITTLE_ENDIAN > du_int low; > du_int high; >#else ># 91 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > du_int high; > du_int low; >#endif /* _YUGA_LITTLE_ENDIAN */ ># 94 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > }s; >} utwords; > >static inline ti_int make_ti(di_int h, di_int l) { > twords r; > r.s.high = h; > r.s.low = l; > return r.all; >} > >static inline tu_int make_tu(du_int h, du_int l) { > utwords r; > r.s.high = h; > r.s.low = l; > return r.all; >} > >#endif /* CRT_HAS_128BIT */ ># 112 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > >typedef union >{ > su_int u; > float f; >} float_bits; > >typedef union >{ > udwords u; > double f; >} double_bits; > >typedef struct >{ >#if _YUGA_LITTLE_ENDIAN > udwords low; > udwords high; >#else ># 131 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > udwords high; > udwords low; >#endif /* _YUGA_LITTLE_ENDIAN */ ># 134 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" >} uqwords; > >typedef union >{ > uqwords u; > long double f; >} long_double_bits; > >#endif /* INT_TYPES_H */ ># 143 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_types.h" > ># 60 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 2 > >/* Include internal utility function declarations. */ >#if 0 /* expanded by -frewrite-includes */ >#include "int_util.h" >#endif /* expanded by -frewrite-includes */ ># 62 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 1 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_util.h" 1 >/* ===-- int_util.h - internal utility functions ----------------------------=== > * > * The LLVM Compiler Infrastructure > * > * This file is dual licensed under the MIT and the University of Illinois Open > * Source Licenses. See LICENSE.TXT for details. > * > * ===-----------------------------------------------------------------------=== > * > * This file is not part of the interface of this library. > * > * This file defines non-inline utilities which are available for use in the > * library. The function definitions themselves are all contained in int_util.c > * which will always be compiled into any compiler-rt library. > * > * ===-----------------------------------------------------------------------=== > */ > >#ifndef INT_UTIL_H >#define INT_UTIL_H > >/** \brief Trigger a program abort (or panic for kernel code). */ >#define compilerrt_abort() compilerrt_abort_impl(__FILE__, __LINE__, \ > __func__) > >void compilerrt_abort_impl(const char *file, int line, > const char *function) __attribute__((noreturn)); > >#endif /* INT_UTIL_H */ ># 30 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_util.h" ># 63 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" 2 > >/* > * Workaround for LLVM bug 11663. Prevent endless recursion in > * __c?zdi2(), where calls to __builtin_c?z() are expanded to > * __c?zdi2() instead of __c?zsi2(). > * > * Instead of placing this workaround in c?zdi2.c, put it in this > * global header to prevent other C files from making the detour > * through __c?zdi2() as well. > * > * This problem has only been observed on FreeBSD for sparc64 and > * mips64 with GCC 4.2.1. > */ >#if defined(__FreeBSD__) && (defined(__sparc64__) || \ > defined(__mips_n64) || defined(__mips_o64)) >si_int __clzsi2(si_int); >si_int __ctzsi2(si_int); >#define __builtin_clz __clzsi2 >#define __builtin_ctz __ctzsi2 >#endif /* FreeBSD && (sparc64 || mips_n64 || mips_o64) */ ># 83 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" > >COMPILER_RT_ABI si_int __paritysi2(si_int a); >COMPILER_RT_ABI si_int __paritydi2(di_int a); > >COMPILER_RT_ABI di_int __divdi3(di_int a, di_int b); >COMPILER_RT_ABI si_int __divsi3(si_int a, si_int b); >COMPILER_RT_ABI su_int __udivsi3(su_int n, su_int d); > >COMPILER_RT_ABI su_int __udivmodsi4(su_int a, su_int b, su_int* rem); >COMPILER_RT_ABI du_int __udivmoddi4(du_int a, du_int b, du_int* rem); >#ifdef CRT_HAS_128BIT >COMPILER_RT_ABI si_int __clzti2(ti_int a); >COMPILER_RT_ABI tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); >#endif ># 97 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" > >#endif /* INT_LIB_H */ ># 99 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/int_lib.h" ># 16 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/fixdfti.c" 2 > >#ifdef CRT_HAS_128BIT > >/* Returns: convert a to a signed long long, rounding toward zero. */ > >/* Assumption: double is a IEEE 64 bit floating point type > * su_int is a 32 bit integral type > * value in double is representable in ti_int (no range checking performed) > */ > >/* seee eeee eeee mmmm mmmm mmmm mmmm mmmm | mmmm mmmm mmmm mmmm mmmm mmmm mmmm mmmm */ > >COMPILER_RT_ABI ti_int >__fixdfti(double a) >{ > double_bits fb; > fb.f = a; > int e = ((fb.u.s.high & 0x7FF00000) >> 20) - 1023; > if (e < 0) > return 0; > ti_int s = (si_int)(fb.u.s.high & 0x80000000) >> 31; > ti_int r = 0x0010000000000000uLL | (0x000FFFFFFFFFFFFFuLL & fb.u.all); > if (e > 52) > r <<= (e - 52); > else > r >>= (52 - e); > return (r ^ s) - s; >} > >#endif /* CRT_HAS_128BIT */ ># 46 "/home/sbruno/bsd/clang360-import/lib/libcompiler_rt/../../contrib/compiler-rt/lib/builtins/fixdfti.c"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 197259
:
152461
|
152462
| 152489 |
152490
|
152502
|
152522
|
152527
|
152528