# 1 "" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" /* * SpanDSP - a series of DSP components for telephony * * gsm0610_lpc.c - GSM 06.10 full rate speech codec. * * Written by Steve Underwood * * Copyright (C) 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * This code is based on the widely used GSM 06.10 code available from * http://kbs.cs.tu-berlin.de/~jutta/toast.html * * $Id: gsm0610_lpc.c,v 1.29 2009/02/05 15:57:27 steveu Exp $ */ /*! \file */ #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE_CONFIG_H) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #if 0 /* expanded by -frewrite-includes */ #include "config.h" #endif /* expanded by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 35 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #endif # 36 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 1 3 4 /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, 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. * 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. */ /** * @file assert.h * @brief Assertions. * * There's no include guard in this file because may usefully be * included multiple times, with and without NDEBUG defined. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 1 3 4 /* $NetBSD: cdefs.h,v 1.58 2004/12/11 05:59:00 christos Exp $ */ /* * 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. * 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. * * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /** * `__BIONIC__` is always defined if you're building with bionic. See * https://android.googlesource.com/platform/bionic/+/master/docs/defines.md. */ #define __BIONIC__ 1 #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __BEGIN_DECLS extern "C" { #define __END_DECLS } #else # 49 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __BEGIN_DECLS #define __END_DECLS #endif # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __strong_alias(alias, sym) \ __asm__(".global " #alias "\n" \ #alias " = " #sym); #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __BIONIC_CAST(_k,_t,_v) (_k<_t>(_v)) #else # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __BIONIC_CAST(_k,_t,_v) ((_t) (_v)) #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __BIONIC_ALIGN(__value, __alignment) (((__value) + (__alignment)-1) & ~((__alignment)-1)) /* * 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 -- make sure you don't put spaces * in between its arguments. __CONCAT can also concatenate double-quoted * strings produced by the __STRING macro, but this only works with ANSI C. */ #define __P(protos) protos /* full-blown ANSI C */ #define __CONCAT1(x,y) x ## y #define __CONCAT(x,y) __CONCAT1(x,y) #define ___CONCAT(x,y) __CONCAT(x,y) #define __STRING(x) #x #define ___STRING(x) __STRING(x) #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 83 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __inline inline /* convert to C++ keyword */ #endif /* !__cplusplus */ # 85 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __always_inline __attribute__((__always_inline__)) #define __attribute_const__ __attribute__((__const__)) #define __attribute_pure__ __attribute__((__pure__)) #define __dead __attribute__((__noreturn__)) #define __noreturn __attribute__((__noreturn__)) #define __mallocfunc __attribute__((__malloc__)) #define __packed __attribute__((__packed__)) #define __returns_twice __attribute__((__returns_twice__)) #define __unused __attribute__((__unused__)) #define __used __attribute__((__used__)) #define __printflike(x, y) __attribute__((__format__(printf, x, y))) #define __scanflike(x, y) __attribute__((__format__(scanf, x, y))) #define __strftimelike(x) __attribute__((__format__(strftime, x, 0))) /* * GNU C version 2.96 added 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 use 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. */ #define __predict_true(exp) __builtin_expect((exp) != 0, 1) #define __predict_false(exp) __builtin_expect((exp) != 0, 0) #define __wur __attribute__((__warn_unused_result__)) #define __errorattr(msg) __attribute__((unavailable(msg))) #define __warnattr(msg) __attribute__((deprecated(msg))) #define __warnattr_real(msg) __attribute__((deprecated(msg))) #define __enable_if(cond, msg) __attribute__((enable_if(cond, msg))) #define __clang_error_if(cond, msg) __attribute__((diagnose_if(cond, msg, "error"))) #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning"))) #if 0 /* disabled by -frewrite-includes */ #if defined(ANDROID_STRICT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 142 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * For things that are sketchy, but not necessarily an error. FIXME: Enable * this. */ # define __warnattr_strict(msg) /* __warnattr(msg) */ #else # 148 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __warnattr_strict(msg) #endif # 150 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * Some BSD source needs these macros. * Originally they embedded the rcs versions of each source file * in the generated binary. We strip strings during build anyway,. */ #define __IDSTRING(_prefix,_s) /* nothing */ #define __COPYRIGHT(_s) /* nothing */ #define __FBSDID(_s) /* nothing */ #define __RCSID(_s) /* nothing */ #define __SCCSID(_s) /* nothing */ /* * With bionic, you always get all C and POSIX API. * * If you want BSD and/or GNU extensions, _BSD_SOURCE and/or _GNU_SOURCE are * expected to be defined by callers before *any* standard header file is * included. * * In our header files we test against __USE_BSD and __USE_GNU. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_GNU_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 172 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __USE_BSD 1 # define __USE_GNU 1 #endif # 175 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_BSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 177 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __USE_BSD 1 #endif # 179 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * _FILE_OFFSET_BITS 64 support. * See https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__LP64__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 185 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __USE_FILE_OFFSET64 1 /* * Note that __RENAME_IF_FILE_OFFSET64 is only valid if the off_t and off64_t * functions were both added at the same API level because if you use this, * you only have one declaration to attach __INTRODUCED_IN to. */ # define __RENAME_IF_FILE_OFFSET64(func) __RENAME(func) #else # 193 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __RENAME_IF_FILE_OFFSET64(func) #endif # 195 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * For LP32, `long double` == `double`. Historically many `long double` functions were incorrect * on x86, missing on most architectures, and even if they are present and correct, linking to * them just bloats your ELF file by adding extra relocations. The __BIONIC_LP32_USE_LONG_DOUBLE * macro lets us test the headers both ways (and adds an escape valve). * * Note that some functions have their __RENAME_LDBL commented out as a sign that although we could * use __RENAME_LDBL it would actually cause the function to be introduced later because the * `long double` variant appeared before the `double` variant. * * The _NO_GUARD_FOR_NDK variants keep the __VERSIONER_NO_GUARD behavior working for the NDK. This * allows libc++ to refer to these functions in inlines without needing to guard them, needed since * libc++ doesn't currently guard these calls. There's no risk to the apps though because using * those APIs will still cause a link error. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) || defined(__BIONIC_LP32_USE_LONG_DOUBLE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 212 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __RENAME_LDBL(rewrite,rewrite_api_level,regular_api_level) __INTRODUCED_IN(regular_api_level) #define __RENAME_LDBL_NO_GUARD_FOR_NDK(rewrite,rewrite_api_level,regular_api_level) __INTRODUCED_IN_NO_GUARD_FOR_NDK(regular_api_level) #else # 215 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __RENAME_LDBL(rewrite,rewrite_api_level,regular_api_level) __RENAME(rewrite) __INTRODUCED_IN(rewrite_api_level) #define __RENAME_LDBL_NO_GUARD_FOR_NDK(rewrite,rewrite_api_level,regular_api_level) __RENAME(rewrite) __INTRODUCED_IN_NO_GUARD_FOR_NDK(rewrite_api_level) #endif # 218 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * On all architectures, `struct stat` == `struct stat64`, but LP32 didn't gain the *64 functions * until API level 21. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) || defined(__BIONIC_LP32_USE_STAT64) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 224 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __RENAME_STAT64(rewrite,rewrite_api_level,regular_api_level) __INTRODUCED_IN(regular_api_level) #else # 226 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __RENAME_STAT64(rewrite,rewrite_api_level,regular_api_level) __RENAME(rewrite) __INTRODUCED_IN(rewrite_api_level) #endif # 228 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* glibc compatibility. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 231 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __WORDSIZE 64 #else # 233 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __WORDSIZE 32 #endif # 235 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * When _FORTIFY_SOURCE is defined, automatic bounds checking is * added to commonly used libc functions. If a buffer overrun is * detected, the program is safely aborted. * * https://android-developers.googleblog.com/2017/04/fortify-in-android.html */ #define __BIONIC_FORTIFY_UNKNOWN_SIZE ((size_t) -1) #if 0 /* disabled by -frewrite-includes */ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 247 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* FORTIFY can interfere with pattern-matching of clang-tidy/the static analyzer. */ #if 0 /* disabled by -frewrite-includes */ # if !defined(__clang_analyzer__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 249 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __BIONIC_FORTIFY 1 /* ASAN has interceptors that FORTIFY's _chk functions can break. */ #if 0 /* disabled by -frewrite-includes */ # if __has_feature(address_sanitizer) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 252 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED 0 # else # 254 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED 1 # endif # 256 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # endif # 257 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #endif # 258 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 // As we move some FORTIFY checks to be always on, __bos needs to be // always available. #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_FORTIFY) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 262 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ # if _FORTIFY_SOURCE == 2 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 263 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __bos_level 1 # else # 265 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __bos_level 0 # endif # 267 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #else # 268 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __bos_level 0 #endif # 270 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __bosn(s, n) __builtin_object_size((s), (n)) #define __bos(s) __bosn((s), __bos_level) #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_FORTIFY) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 275 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __bos0(s) __bosn((s), 0) # define __pass_object_size_n(n) __attribute__((pass_object_size(n))) /* * FORTIFY'ed functions all have either enable_if or pass_object_size, which * makes taking their address impossible. Saying (&read)(foo, bar, baz); will * therefore call the unFORTIFYed version of read. */ # define __call_bypassing_fortify(fn) (&fn) /* * Because clang-FORTIFY uses overloads, we can't mark functions as `extern inline` without making * them available externally. FORTIFY'ed functions try to be as close to possible as 'invisible'; * having stack protectors detracts from that (b/182948263). */ # define __BIONIC_FORTIFY_INLINE static __inline__ __attribute__((no_stack_protector)) \ __always_inline __VERSIONER_FORTIFY_INLINE /* * We should use __BIONIC_FORTIFY_VARIADIC instead of __BIONIC_FORTIFY_INLINE * for variadic functions because compilers cannot inline them. * The __always_inline attribute is useless, misleading, and could trigger * clang compiler bug to incorrectly inline variadic functions. */ # define __BIONIC_FORTIFY_VARIADIC static __inline__ /* Error functions don't have bodies, so they can just be static. */ # define __BIONIC_ERROR_FUNCTION_VISIBILITY static __attribute__((unused)) #else # 300 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* Further increase sharing for some inline functions */ # define __pass_object_size_n(n) #endif # 303 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __pass_object_size __pass_object_size_n(__bos_level) #define __pass_object_size0 __pass_object_size_n(0) /* Intended for use in unevaluated contexts, e.g. diagnose_if conditions. */ #define __bos_unevaluated_lt(bos_val, val) \ ((bos_val) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (bos_val) < (val)) #define __bos_unevaluated_le(bos_val, val) \ ((bos_val) != __BIONIC_FORTIFY_UNKNOWN_SIZE && (bos_val) <= (val)) /* Intended for use in evaluated contexts. */ #define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \ ((bos_val) == __BIONIC_FORTIFY_UNKNOWN_SIZE || \ (__builtin_constant_p(index) && bos_val op index && (cond))) #define __bos_dynamic_check_impl(bos_val, op, index) \ __bos_dynamic_check_impl_and(bos_val, op, index, 1) #define __bos_trivially_ge(bos_val, index) __bos_dynamic_check_impl((bos_val), >=, (index)) #define __bos_trivially_gt(bos_val, index) __bos_dynamic_check_impl((bos_val), >, (index)) #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_FORTIFY) || defined(__BIONIC_DECLARE_FORTIFY_HELPERS) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 325 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # define __BIONIC_INCLUDE_FORTIFY_HEADERS 1 #endif # 327 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __overloadable __attribute__((overloadable)) #define __diagnose_as_builtin(...) __attribute__((diagnose_as_builtin(__VA_ARGS__))) /* Used to tag non-static symbols that are private and never exposed by the shared library. */ #define __LIBC_HIDDEN__ __attribute__((visibility("hidden"))) /* * Used to tag symbols that should be hidden for 64-bit, * but visible to preserve binary compatibility for LP32. */ #ifdef __LP64__ #define __LIBC32_LEGACY_PUBLIC__ __attribute__((visibility("hidden"))) #else # 342 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __LIBC32_LEGACY_PUBLIC__ __attribute__((visibility("default"))) #endif # 344 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* Used to rename functions so that the compiler emits a call to 'x' rather than the function this was applied to. */ #define __RENAME(x) __asm__(#x) #if 0 /* disabled by -frewrite-includes */ #if __has_builtin(__builtin_umul_overflow) || __GNUC__ >= 5 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 349 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 350 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __size_mul_overflow(a, b, result) __builtin_umull_overflow(a, b, result) #else # 352 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #define __size_mul_overflow(a, b, result) __builtin_umul_overflow(a, b, result) #endif # 354 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #else # 355 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 extern __inline__ __always_inline __attribute__((gnu_inline)) int __size_mul_overflow(__SIZE_TYPE__ a, __SIZE_TYPE__ b, __SIZE_TYPE__ *result) { *result = a * b; static const __SIZE_TYPE__ mul_no_overflow = 1UL << (sizeof(__SIZE_TYPE__) * 4); return (a >= mul_no_overflow || b >= mul_no_overflow) && a > 0 && (__SIZE_TYPE__)-1 / a < b; } #endif # 362 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 /* * Used when we need to check for overflow when multiplying x and y. This * should only be used where __size_mul_overflow can not work, because it makes * assumptions that __size_mul_overflow doesn't (x and y are positive, ...), * *and* doesn't make use of compiler intrinsics, so it's probably slower than * __size_mul_overflow. */ #define __unsafe_check_mul_overflow(x, y) ((__SIZE_TYPE__)-1 / (x) < (y)) #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 372 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 1 3 4 /* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 18 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 // The `annotate` attribute always pulls the annotated (inline) function into the object files, thus // we should only annotate headers when we are running versioner. #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_VERSIONER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN(api_level) __attribute__((annotate("introduced_in=" #api_level))) #define __INTRODUCED_IN_NO_GUARD_FOR_NDK(api_level) __attribute__((annotate("introduced_in=" #api_level))) __VERSIONER_NO_GUARD #define __DEPRECATED_IN(api_level) __attribute__((annotate("deprecated_in=" #api_level))) #define __REMOVED_IN(api_level) __attribute__((annotate("obsoleted_in=" #api_level))) #define __INTRODUCED_IN_32(api_level) __attribute__((annotate("introduced_in_32=" #api_level))) #define __INTRODUCED_IN_64(api_level) __attribute__((annotate("introduced_in_64=" #api_level))) #define __INTRODUCED_IN_ARM(api_level) __attribute__((annotate("introduced_in_arm=" #api_level))) #define __INTRODUCED_IN_X86(api_level) __attribute__((annotate("introduced_in_x86=" #api_level))) #define __INTRODUCED_IN_X86_NO_GUARD_FOR_NDK(api_level) __attribute__((annotate("introduced_in_x86=" #api_level))) __VERSIONER_NO_GUARD #define __VERSIONER_NO_GUARD __attribute__((annotate("versioner_no_guard"))) #define __VERSIONER_FORTIFY_INLINE __attribute__((annotate("versioner_fortify_inline"))) #else # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 // When headers are not processed by the versioner (i.e. compiled into object files), // the availability attributed is emitted instead. The clang compiler will make the symbol weak // when targeting old api_level and enforce the reference to the symbol to be guarded with // __builtin_available(android api_level, *). // The 'strict' flag is required for NDK clients where the use of "-Wunguarded-availability" cannot // be enforced. In the case, the absence of 'strict' makes it possible to call an unavailable API // without the __builtin_available check, which will cause a link error at runtime. // Android platform build system defines this macro along with -Wunguarded-availability // // The _NO_GUARD_FOR_NDK variants keep the __VERSIONER_NO_GUARD behavior working for the NDK. This // allows libc++ to refer to these functions in inlines without needing to guard them, needed since // libc++ doesn't currently guard these calls. There's no risk to the apps though because using // those APIs will still cause a link error. #if 0 /* disabled by -frewrite-includes */ #if defined(__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 53 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __BIONIC_AVAILABILITY(__what) __attribute__((__availability__(android,__what))) #define __INTRODUCED_IN_NO_GUARD_FOR_NDK(api_level) __INTRODUCED_IN(api_level) #define __INTRODUCED_IN_X86_NO_GUARD_FOR_NDK(api_level) __INTRODUCED_IN_X86(api_level) #else # 57 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __BIONIC_AVAILABILITY(__what) __attribute__((__availability__(android,strict,__what))) #define __INTRODUCED_IN_NO_GUARD_FOR_NDK(api_level) #define __INTRODUCED_IN_X86_NO_GUARD_FOR_NDK(api_level) #endif # 61 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN(api_level) __BIONIC_AVAILABILITY(introduced=api_level) #define __DEPRECATED_IN(api_level) __BIONIC_AVAILABILITY(deprecated=api_level) #define __REMOVED_IN(api_level) __BIONIC_AVAILABILITY(obsoleted=api_level) // The same availability attribute can't be annotated multiple times. Therefore, the macros are // defined for the configuration that it is valid for so that declarations like the below doesn't // cause inconsistent availability values which is an error with -Wavailability: // // void foo() __INTRODUCED_IN_32(30) __INTRODUCED_IN_64(31); // // This also takes the advantage of the fact that we never use bitness-specific macro with // arch-specific macro. In other words, // // void foo() __INTRODUCED_IN_ARM(30) __INTRODUCED_IN_64(31); // // hasn't been supported and won't be. #if 0 /* disabled by -frewrite-includes */ #if !defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN_32(api_level) __BIONIC_AVAILABILITY(introduced=api_level) #define __INTRODUCED_IN_64(api_level) #else # 82 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN_32(api_level) #define __INTRODUCED_IN_64(api_level) __BIONIC_AVAILABILITY(introduced=api_level) #endif # 85 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__arm__) || defined(__aarch64__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 87 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN_ARM(api_level) __BIONIC_AVAILABILITY(introduced=api_level) #define __INTRODUCED_IN_X86(api_level) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__i386__) || defined(__x86_64__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 90 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN_ARM(api_level) #define __INTRODUCED_IN_X86(api_level) __BIONIC_AVAILABILITY(introduced=api_level) #else # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __INTRODUCED_IN_ARM(api_level) #define __INTRODUCED_IN_X86(api_level) #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 #define __VERSIONER_NO_GUARD #define __VERSIONER_FORTIFY_INLINE #endif // defined(__BIONIC_VERSIONER) # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/versioning.h" 3 4 # 373 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 373 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 /** * @defgroup apilevels API Levels * * Defines functions and constants for working with Android API levels. * @{ */ /** * @file android/api-level.h * @brief Functions and constants for dealing with multiple API levels. * * See * https://android.googlesource.com/platform/bionic/+/master/docs/defines.md. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 __BEGIN_DECLS /** * Magic version number for an Android OS build which has not yet turned * into an official release, for comparison against `__ANDROID_API__`. See * https://android.googlesource.com/platform/bionic/+/master/docs/defines.md. */ #define __ANDROID_API_FUTURE__ 10000 /* This #ifndef should never be true except when doxygen is generating docs. */ #ifndef __ANDROID_API__ /** * `__ANDROID_API__` is the [API * level](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) * this code is being built for. The resulting binaries are only guaranteed to * be compatible with devices which have an API level greater than or equal to * `__ANDROID_API__`. * * For NDK and APEX builds, this macro will always be defined. It is set * automatically by Clang using the version suffix that is a part of the target * name. For example, `__ANDROID_API__` will be 24 when Clang is given the * argument `-target aarch64-linux-android24`. * * For non-APEX OS code, this defaults to __ANDROID_API_FUTURE__. * * The value of `__ANDROID_API__` can be compared to the named constants in * ``. * * The interpretation of `__ANDROID_API__` is similar to the AndroidManifest.xml * `minSdkVersion`. In most cases `__ANDROID_API__` will be identical to * `minSdkVersion`, but as it is a build time constant it is possible for * library code to use a different value than the app it will be included in. * When libraries and applications build for different API levels, the * `minSdkVersion` of the application must be at least as high as the highest * API level used by any of its libraries which are loaded unconditionally. * * Note that in some cases the resulting binaries may load successfully on * devices with an older API level. That behavior should not be relied upon, * even if you are careful to avoid using new APIs, as the toolchain may make * use of new features by default. For example, additional FORTIFY features may * implicitly make use of new APIs, SysV hashes may be omitted in favor of GNU * hashes to improve library load times, or relocation packing may be enabled to * reduce binary size. * * See android_get_device_api_level(), * android_get_application_target_sdk_version() and * https://android.googlesource.com/platform/bionic/+/master/docs/defines.md. */ #define __ANDROID_API__ __ANDROID_API_FUTURE__ #endif # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 /** Names the Gingerbread API level (9), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_G__ 9 /** Names the Ice-Cream Sandwich API level (14), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_I__ 14 /** Names the Jellybean API level (16), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_J__ 16 /** Names the Jellybean MR1 API level (17), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_J_MR1__ 17 /** Names the Jellybean MR2 API level (18), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_J_MR2__ 18 /** Names the KitKat API level (19), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_K__ 19 /** Names the Lollipop API level (21), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_L__ 21 /** Names the Lollipop MR1 API level (22), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_L_MR1__ 22 /** Names the Marshmallow API level (23), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_M__ 23 /** Names the Nougat API level (24), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_N__ 24 /** Names the Nougat MR1 API level (25), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_N_MR1__ 25 /** Names the Oreo API level (26), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_O__ 26 /** Names the Oreo MR1 API level (27), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_O_MR1__ 27 /** Names the Pie API level (28), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_P__ 28 /** * Names the Android 10 (aka "Q" or "Quince Tart") API level (29), for * comparison against `__ANDROID_API__`. */ #define __ANDROID_API_Q__ 29 /** * Names the Android 11 (aka "R" or "Red Velvet Cake") API level (30), for * comparison against `__ANDROID_API__`. */ #define __ANDROID_API_R__ 30 /** * Names the Android 12 (aka "S" or "Snowcone") API level (31), for * comparison against `__ANDROID_API__`. */ #define __ANDROID_API_S__ 31 /** * Names the Android 13 (aka "T" or "Tiramisu") API level (33), for * comparison against `__ANDROID_API__`. */ #define __ANDROID_API_T__ 33 /** Names the "U" API level (34), for comparison against `__ANDROID_API__`. */ #define __ANDROID_API_U__ 34 /* This file is included in , and might be used from .S files. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__ASSEMBLY__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 170 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 /** * Returns the `targetSdkVersion` of the caller, or `__ANDROID_API_FUTURE__` if * there is no known target SDK version (for code not running in the context of * an app). * * The returned values correspond to the named constants in ``, * and is equivalent to the AndroidManifest.xml `targetSdkVersion`. * * See also android_get_device_api_level(). * * Available since API level 24. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 185 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 int android_get_application_target_sdk_version() __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 187 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < 29 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 190 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 /* android_get_device_api_level is a static inline before API level 29. */ #define __BIONIC_GET_DEVICE_API_LEVEL_INLINE static __inline #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 193 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/get_device_api_level_inlines.h" 1 3 4 /* * Copyright (C) 2018 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/get_device_api_level_inlines.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_GET_DEVICE_API_LEVEL_INLINE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/get_device_api_level_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/get_device_api_level_inlines.h" 3 4 # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/get_device_api_level_inlines.h" 3 4 __BEGIN_DECLS // Avoid circular dependencies since this is exposed from . int __system_property_get(const char* __name, char* __value); int atoi(const char* __s) __attribute_pure__; __BIONIC_GET_DEVICE_API_LEVEL_INLINE int android_get_device_api_level() { char value[92] = { 0 }; if (__system_property_get("ro.build.version.sdk", value) < 1) return -1; int api_level = atoi(value); return (api_level > 0) ? api_level : -1; } __END_DECLS #endif // __BIONIC_GET_DEVICE_API_LEVEL_INLINE # 51 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/get_device_api_level_inlines.h" 3 4 # 194 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 2 3 4 #undef __BIONIC_GET_DEVICE_API_LEVEL_INLINE #else # 197 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 /** * Returns the API level of the device we're actually running on, or -1 on failure. * The returned values correspond to the named constants in ``, * and is equivalent to the Java `Build.VERSION.SDK_INT` API. * * See also android_get_application_target_sdk_version(). */ int android_get_device_api_level() __INTRODUCED_IN(29); #endif # 208 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 #endif /* defined(__ASSEMBLY__) */ # 210 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/api-level.h" 3 4 __END_DECLS /** @} */ # 374 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __has_include() #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 375 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 375 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/ndk-version.h" 1 3 4 #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 2 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/ndk-version.h" 3 4 /** * Set to 1 if this is an NDK, unset otherwise. See * https://android.googlesource.com/platform/bionic/+/master/docs/defines.md. */ #define __ANDROID_NDK__ 1 /** * Major version of this NDK. * * For example: 16 for r16. */ #define __NDK_MAJOR__ 25 /** * Minor version of this NDK. * * For example: 0 for r16 and 1 for r16b. */ #define __NDK_MINOR__ 2 /** * Set to 0 if this is a release build, or 1 for beta 1, * 2 for beta 2, and so on. */ #define __NDK_BETA__ 0 /** * Build number for this NDK. * * For a local development build of the NDK, this is -1. */ #define __NDK_BUILD__ 9519653 /** * Set to 1 if this is a canary build, 0 if not. */ #define __NDK_CANARY__ 0 # 376 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 2 3 4 #endif # 377 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/cdefs.h" 3 4 # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 2 3 4 #undef assert #undef __assert_no_op /** Internal implementation detail. Do not use. */ #define __assert_no_op __BIONIC_CAST(static_cast, void, 0) #ifdef NDEBUG # define assert(e) __assert_no_op #else # 54 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 #if 0 /* disabled by -frewrite-includes */ # if defined(__cplusplus) || __STDC_VERSION__ >= 199901L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 55 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 # define assert(e) ((e) ? __assert_no_op : __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, #e)) # else # 57 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 /** * assert() aborts the program after logging an error message, if the * expression evaluates to false. * * On Android, the error goes to both stderr and logcat. */ # define assert(e) ((e) ? __assert_no_op : __assert(__FILE__, __LINE__, #e)) # endif # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 #endif # 66 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) && __STDC_VERSION__ >= 201112L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 # undef static_assert # define static_assert _Static_assert #endif # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/assert.h" 3 4 __BEGIN_DECLS /** * __assert() is called by assert() on failure. Most users want assert() * instead, but this can be useful for reporting other failures. */ void __assert(const char* __file, int __line, const char* __msg) __noreturn; /** * __assert2() is called by assert() on failure. Most users want assert() * instead, but this can be useful for reporting other failures. */ void __assert2(const char* __file, int __line, const char* __function, const char* __msg) __noreturn; __END_DECLS # 38 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 1 3 /*===---- inttypes.h - Standard header for integer printf macros ----------===*\ * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * \*===----------------------------------------------------------------------===*/ #ifndef __CLANG_INTTYPES_H // AIX system headers need inttypes.h to be re-enterable while _STD_TYPES_T // is defined until an inclusion of it without _STD_TYPES_T occurs, in which // case the header guard macro is defined. #if 0 /* disabled by -frewrite-includes */ #if !defined(_AIX) || !defined(_STD_TYPES_T) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 14 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 #define __CLANG_INTTYPES_H #endif # 16 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_VER) && _MSC_VER < 1800 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 18 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 #error MSVC does not have inttypes.h prior to Visual Studio 2013 #endif # 20 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 #if 0 /* expanded by -frewrite-includes */ #include_next #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/inttypes.h" 1 3 /* * Copyright (C) 2013 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/inttypes.h" 3 #if 0 /* expanded by -frewrite-includes */ #include_next #endif /* expanded by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/inttypes.h" 3 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 1 3 4 /* $OpenBSD: inttypes.h,v 1.9 2006/01/15 00:47:51 millert Exp $ */ /* * Copyright (c) 1997, 2005 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _INTTYPES_H_ #define _INTTYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 1 3 4 /*===---- stdint.h - Standard header for sized integer types --------------===*\ * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * \*===----------------------------------------------------------------------===*/ #ifndef __CLANG_STDINT_H // AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T // is defined until an inclusion of it without _STD_TYPES_T occurs, in which // case the header guard macro is defined. #if 0 /* disabled by -frewrite-includes */ #if !defined(_AIX) || !defined(_STD_TYPES_T) || !defined(__STDC_HOSTED__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 14 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #define __CLANG_STDINT_H #endif # 16 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* If we're hosted, fall back to the system's stdint.h, which might have * additional definitions. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_HOSTED__ && __has_include_next() #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 // C99 7.18.3 Limits of other integer types // // Footnote 219, 220: C++ implementations should define these macros only when // __STDC_LIMIT_MACROS is defined before is included. // // Footnote 222: C++ implementations should define these macros only when // __STDC_CONSTANT_MACROS is defined before is included. // // C++11 [cstdint.syn]p2: // // The macros defined by are provided unconditionally. In particular, // the symbols __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS (mentioned in // footnotes 219, 220, and 222 in the C standard) play no role in C++. // // C11 removed the problematic footnotes. // // Work around this inconsistency by always defining those macros in C++ mode, // so that a C library implementation which follows the C99 standard can be // used in C++. # ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__STDC_LIMIT_MACROS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS_DEFINED_BY_CLANG # endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ # if !defined(__STDC_CONSTANT_MACROS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG # endif # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # endif # 51 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ # include_next #endif /* expanded by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _STDINT_H #define _STDINT_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 1 3 4 /* * Copyright (C) 2014 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 3 4 /** * @file bits/wchar_limits.h * @brief `wchar_t` limits. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 3 4 /** The maximum value of a `wchar_t`. */ #define WCHAR_MAX __WCHAR_MAX__ /* As of 3.4, clang still doesn't define __WCHAR_MIN__. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__WCHAR_UNSIGNED__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 3 4 /** The minimum value of a `wchar_t`. */ # define WCHAR_MIN L'\0' #else # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 3 4 /** The minimum value of a `wchar_t`. */ # define WCHAR_MIN (-(WCHAR_MAX) - 1) #endif # 49 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wchar_limits.h" 3 4 # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 1 3 4 /*===---- stddef.h - Basic type definitions --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 13 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ !defined(__need_wchar_t) && !defined(__need_NULL) && \ !defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define miscellaneous pieces when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __STDDEF_H #endif # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __need_ptrdiff_t #define __need_size_t #define __need_wchar_t #define __need_NULL #define __need_STDDEF_H_misc /* __need_wint_t is intentionally not defined here. */ #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_ptrdiff_t) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTRDIFF_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define ptrdiff_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _PTRDIFF_T #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_ptrdiff_t #endif /* defined(__need_ptrdiff_t) */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_size_t) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_SIZE_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define size_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _SIZE_T #endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ size_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_size_t #endif /*defined(__need_size_t) */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is * enabled. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ !defined(_RSIZE_T)) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define rsize_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _RSIZE_T #endif # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ rsize_t; #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif /* defined(__need_STDDEF_H_misc) */ # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wchar_t) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifndef __cplusplus /* Always define wchar_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WCHAR_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T_DEFINED #endif # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WCHAR_TYPE__ wchar_t; #endif # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wchar_t #endif /* defined(__need_wchar_t) */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_NULL) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 81 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef NULL #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__MINGW32__) && !defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL __null # else # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL 0 # endif # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #else # 89 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL ((void*)0) #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 namespace std { typedef decltype(nullptr) nullptr_t; } using ::std::nullptr_t; #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_NULL #endif /* defined(__need_NULL) */ # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include "__stddef_max_align_t.h" #endif /* expanded by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h" 1 3 4 /*===---- __stddef_max_align_t.h - Definition of max_align_t for modules ---=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #ifndef __CLANG_MAX_ALIGN_T_DEFINED #define __CLANG_MAX_ALIGN_T_DEFINED #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 14 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h" 3 4 typedef double max_align_t; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__APPLE__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 16 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h" 3 4 typedef long double max_align_t; #else # 18 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h" 3 4 // Define 'max_align_t' to match the GCC definition. typedef struct { long long __clang_max_align_nonce1 __attribute__((__aligned__(__alignof__(long long)))); long double __clang_max_align_nonce2 __attribute__((__aligned__(__alignof__(long double)))); } max_align_t; #endif # 26 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h" 3 4 #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/__stddef_max_align_t.h" 3 4 # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 2 3 4 #endif # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define offsetof(t, d) __builtin_offsetof(t, d) #undef __need_STDDEF_H_misc #endif /* defined(__need_STDDEF_H_misc) */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define wint_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WINT_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WINT_T #endif # 116 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WINT_TYPE__ wint_t; #endif # 118 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wint_t #endif /* __need_wint_t */ # 120 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 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; #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef long __int64_t; typedef unsigned long __uint64_t; #else # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef long long __int64_t; typedef unsigned long long __uint64_t; #endif # 49 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 51 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef long __intptr_t; typedef unsigned long __uintptr_t; #else # 54 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef int __intptr_t; typedef unsigned int __uintptr_t; #endif # 57 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef __int8_t int8_t; typedef __uint8_t uint8_t; typedef __int16_t int16_t; typedef __uint16_t uint16_t; typedef __int32_t int32_t; typedef __uint32_t uint32_t; typedef __int64_t int64_t; typedef __uint64_t uint64_t; typedef __intptr_t intptr_t; typedef __uintptr_t uintptr_t; typedef int8_t int_least8_t; typedef uint8_t uint_least8_t; typedef int16_t int_least16_t; typedef uint16_t uint_least16_t; typedef int32_t int_least32_t; typedef uint32_t uint_least32_t; typedef int64_t int_least64_t; typedef uint64_t uint_least64_t; typedef int8_t int_fast8_t; typedef uint8_t uint_fast8_t; typedef int64_t int_fast64_t; typedef uint64_t uint_fast64_t; #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 92 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef int64_t int_fast16_t; typedef uint64_t uint_fast16_t; typedef int64_t int_fast32_t; typedef uint64_t uint_fast32_t; #else # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef int32_t int_fast16_t; typedef uint32_t uint_fast16_t; typedef int32_t int_fast32_t; typedef uint32_t uint_fast32_t; #endif # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 typedef uint64_t uintmax_t; typedef int64_t intmax_t; /* Keep the kernel from trying to define these types... */ #define __BIT_TYPES_DEFINED__ #define INT8_C(c) c #define INT_LEAST8_C(c) INT8_C(c) #define INT_FAST8_C(c) INT8_C(c) #define UINT8_C(c) c #define UINT_LEAST8_C(c) UINT8_C(c) #define UINT_FAST8_C(c) UINT8_C(c) #define INT16_C(c) c #define INT_LEAST16_C(c) INT16_C(c) #define INT_FAST16_C(c) INT32_C(c) #define UINT16_C(c) c #define UINT_LEAST16_C(c) UINT16_C(c) #define UINT_FAST16_C(c) UINT32_C(c) #define INT32_C(c) c #define INT_LEAST32_C(c) INT32_C(c) #define INT_FAST32_C(c) INT32_C(c) #define UINT32_C(c) c ## U #define UINT_LEAST32_C(c) UINT32_C(c) #define UINT_FAST32_C(c) UINT32_C(c) #define INT_LEAST64_C(c) INT64_C(c) #define INT_FAST64_C(c) INT64_C(c) #define UINT_LEAST64_C(c) UINT64_C(c) #define UINT_FAST64_C(c) UINT64_C(c) #define INTMAX_C(c) INT64_C(c) #define UINTMAX_C(c) UINT64_C(c) #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 141 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # define INT64_C(c) c ## L # define UINT64_C(c) c ## UL # define INTPTR_C(c) INT64_C(c) # define UINTPTR_C(c) UINT64_C(c) # define PTRDIFF_C(c) INT64_C(c) #else # 147 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # define INT64_C(c) c ## LL # define UINT64_C(c) c ## ULL # define INTPTR_C(c) INT32_C(c) # define UINTPTR_C(c) UINT32_C(c) # define PTRDIFF_C(c) INT32_C(c) #endif # 153 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 #define INT8_MIN (-128) #define INT8_MAX (127) #define INT_LEAST8_MIN INT8_MIN #define INT_LEAST8_MAX INT8_MAX #define INT_FAST8_MIN INT8_MIN #define INT_FAST8_MAX INT8_MAX #define UINT8_MAX (255) #define UINT_LEAST8_MAX UINT8_MAX #define UINT_FAST8_MAX UINT8_MAX #define INT16_MIN (-32768) #define INT16_MAX (32767) #define INT_LEAST16_MIN INT16_MIN #define INT_LEAST16_MAX INT16_MAX #define INT_FAST16_MIN INT32_MIN #define INT_FAST16_MAX INT32_MAX #define UINT16_MAX (65535) #define UINT_LEAST16_MAX UINT16_MAX #define UINT_FAST16_MAX UINT32_MAX #define INT32_MIN (-2147483647-1) #define INT32_MAX (2147483647) #define INT_LEAST32_MIN INT32_MIN #define INT_LEAST32_MAX INT32_MAX #define INT_FAST32_MIN INT32_MIN #define INT_FAST32_MAX INT32_MAX #define UINT32_MAX (4294967295U) #define UINT_LEAST32_MAX UINT32_MAX #define UINT_FAST32_MAX UINT32_MAX #define INT64_MIN (INT64_C(-9223372036854775807)-1) #define INT64_MAX (INT64_C(9223372036854775807)) #define INT_LEAST64_MIN INT64_MIN #define INT_LEAST64_MAX INT64_MAX #define INT_FAST64_MIN INT64_MIN #define INT_FAST64_MAX INT64_MAX #define UINT64_MAX (UINT64_C(18446744073709551615)) #define UINT_LEAST64_MAX UINT64_MAX #define UINT_FAST64_MAX UINT64_MAX #define INTMAX_MIN INT64_MIN #define INTMAX_MAX INT64_MAX #define UINTMAX_MAX UINT64_MAX #define SIG_ATOMIC_MAX INT32_MAX #define SIG_ATOMIC_MIN INT32_MIN #if 0 /* disabled by -frewrite-includes */ #if defined(__WINT_UNSIGNED__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 206 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # define WINT_MAX UINT32_MAX # define WINT_MIN 0 #else # 209 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # define WINT_MAX INT32_MAX # define WINT_MIN INT32_MIN #endif # 212 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 214 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # define INTPTR_MIN INT64_MIN # define INTPTR_MAX INT64_MAX # define UINTPTR_MAX UINT64_MAX # define PTRDIFF_MIN INT64_MIN # define PTRDIFF_MAX INT64_MAX # define SIZE_MAX UINT64_MAX #else # 221 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # define INTPTR_MIN INT32_MIN # define INTPTR_MAX INT32_MAX # define UINTPTR_MAX UINT32_MAX # define PTRDIFF_MIN INT32_MIN # define PTRDIFF_MAX INT32_MAX # define SIZE_MAX UINT32_MAX #endif # 228 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 #endif /* _STDINT_H */ # 230 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdint.h" 3 4 # 53 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 2 3 4 # ifdef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG # undef __STDC_LIMIT_MACROS # undef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG # endif # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # ifdef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG # undef __STDC_CONSTANT_MACROS # undef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG # endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #else # 64 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* C99 7.18.1.1 Exact-width integer types. * C99 7.18.1.2 Minimum-width integer types. * C99 7.18.1.3 Fastest minimum-width integer types. * * The standard requires that exact-width type be defined for 8-, 16-, 32-, and * 64-bit types if they are implemented. Other exact width types are optional. * This implementation defines an exact-width types for every integer width * that is represented in the standard integer types. * * The standard also requires minimum-width types be defined for 8-, 16-, 32-, * and 64-bit widths regardless of whether there are corresponding exact-width * types. * * To accommodate targets that are missing types that are exactly 8, 16, 32, or * 64 bits wide, this implementation takes an approach of cascading * redefinitions, redefining __int_leastN_t to successively smaller exact-width * types. It is therefore important that the types are defined in order of * descending widths. * * We currently assume that the minimum-width types and the fastest * minimum-width types are the same. This is allowed by the standard, but is * suboptimal. * * In violation of the standard, some targets do not implement a type that is * wide enough to represent all of the required widths (8-, 16-, 32-, 64-bit). * To accommodate these targets, a required minimum-width type is only * defined if there exists an exact-width type of equal or greater width. */ #ifdef __INT64_TYPE__ # ifndef __int8_t_defined /* glibc sys/types.h also defines int64_t*/ typedef __INT64_TYPE__ int64_t; # endif /* __int8_t_defined */ # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 typedef __UINT64_TYPE__ uint64_t; # define __int_least64_t int64_t # define __uint_least64_t uint64_t # define __int_least32_t int64_t # define __uint_least32_t uint64_t # define __int_least16_t int64_t # define __uint_least16_t uint64_t # define __int_least8_t int64_t # define __uint_least8_t uint64_t #endif /* __INT64_TYPE__ */ # 108 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least64_t typedef __int_least64_t int_least64_t; typedef __uint_least64_t uint_least64_t; typedef __int_least64_t int_fast64_t; typedef __uint_least64_t uint_fast64_t; #endif /* __int_least64_t */ # 115 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT56_TYPE__ typedef __INT56_TYPE__ int56_t; typedef __UINT56_TYPE__ uint56_t; typedef int56_t int_least56_t; typedef uint56_t uint_least56_t; typedef int56_t int_fast56_t; typedef uint56_t uint_fast56_t; # define __int_least32_t int56_t # define __uint_least32_t uint56_t # define __int_least16_t int56_t # define __uint_least16_t uint56_t # define __int_least8_t int56_t # define __uint_least8_t uint56_t #endif /* __INT56_TYPE__ */ # 130 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT48_TYPE__ typedef __INT48_TYPE__ int48_t; typedef __UINT48_TYPE__ uint48_t; typedef int48_t int_least48_t; typedef uint48_t uint_least48_t; typedef int48_t int_fast48_t; typedef uint48_t uint_fast48_t; # define __int_least32_t int48_t # define __uint_least32_t uint48_t # define __int_least16_t int48_t # define __uint_least16_t uint48_t # define __int_least8_t int48_t # define __uint_least8_t uint48_t #endif /* __INT48_TYPE__ */ # 146 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT40_TYPE__ typedef __INT40_TYPE__ int40_t; typedef __UINT40_TYPE__ uint40_t; typedef int40_t int_least40_t; typedef uint40_t uint_least40_t; typedef int40_t int_fast40_t; typedef uint40_t uint_fast40_t; # define __int_least32_t int40_t # define __uint_least32_t uint40_t # define __int_least16_t int40_t # define __uint_least16_t uint40_t # define __int_least8_t int40_t # define __uint_least8_t uint40_t #endif /* __INT40_TYPE__ */ # 162 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT32_TYPE__ # ifndef __int8_t_defined /* glibc sys/types.h also defines int32_t*/ typedef __INT32_TYPE__ int32_t; # endif /* __int8_t_defined */ # 169 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # ifndef __uint32_t_defined /* more glibc compatibility */ # define __uint32_t_defined typedef __UINT32_TYPE__ uint32_t; # endif /* __uint32_t_defined */ # 174 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define __int_least32_t int32_t # define __uint_least32_t uint32_t # define __int_least16_t int32_t # define __uint_least16_t uint32_t # define __int_least8_t int32_t # define __uint_least8_t uint32_t #endif /* __INT32_TYPE__ */ # 182 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least32_t typedef __int_least32_t int_least32_t; typedef __uint_least32_t uint_least32_t; typedef __int_least32_t int_fast32_t; typedef __uint_least32_t uint_fast32_t; #endif /* __int_least32_t */ # 189 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT24_TYPE__ typedef __INT24_TYPE__ int24_t; typedef __UINT24_TYPE__ uint24_t; typedef int24_t int_least24_t; typedef uint24_t uint_least24_t; typedef int24_t int_fast24_t; typedef uint24_t uint_fast24_t; # define __int_least16_t int24_t # define __uint_least16_t uint24_t # define __int_least8_t int24_t # define __uint_least8_t uint24_t #endif /* __INT24_TYPE__ */ # 202 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT16_TYPE__ #ifndef __int8_t_defined /* glibc sys/types.h also defines int16_t*/ typedef __INT16_TYPE__ int16_t; #endif /* __int8_t_defined */ # 207 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 typedef __UINT16_TYPE__ uint16_t; # define __int_least16_t int16_t # define __uint_least16_t uint16_t # define __int_least8_t int16_t # define __uint_least8_t uint16_t #endif /* __INT16_TYPE__ */ # 213 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least16_t typedef __int_least16_t int_least16_t; typedef __uint_least16_t uint_least16_t; typedef __int_least16_t int_fast16_t; typedef __uint_least16_t uint_fast16_t; #endif /* __int_least16_t */ # 220 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT8_TYPE__ #ifndef __int8_t_defined /* glibc sys/types.h also defines int8_t*/ typedef __INT8_TYPE__ int8_t; #endif /* __int8_t_defined */ # 226 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 typedef __UINT8_TYPE__ uint8_t; # define __int_least8_t int8_t # define __uint_least8_t uint8_t #endif /* __INT8_TYPE__ */ # 230 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least8_t typedef __int_least8_t int_least8_t; typedef __uint_least8_t uint_least8_t; typedef __int_least8_t int_fast8_t; typedef __uint_least8_t uint_fast8_t; #endif /* __int_least8_t */ # 237 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* prevent glibc sys/types.h from defining conflicting types */ #ifndef __int8_t_defined # define __int8_t_defined #endif /* __int8_t_defined */ # 242 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* C99 7.18.1.4 Integer types capable of holding object pointers. */ #define __stdint_join3(a,b,c) a ## b ## c #ifndef _INTPTR_T #ifndef __intptr_t_defined typedef __INTPTR_TYPE__ intptr_t; #define __intptr_t_defined #define _INTPTR_T #endif # 253 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif # 254 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifndef _UINTPTR_T typedef __UINTPTR_TYPE__ uintptr_t; #define _UINTPTR_T #endif # 259 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* C99 7.18.1.5 Greatest-width integer types. */ typedef __INTMAX_TYPE__ intmax_t; typedef __UINTMAX_TYPE__ uintmax_t; /* C99 7.18.4 Macros for minimum-width integer constants. * * The standard requires that integer constant macros be defined for all the * minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width * types are required, the corresponding integer constant macros are defined * here. This implementation also defines minimum-width types for every other * integer width that the target implements, so corresponding macros are * defined below, too. * * These macros are defined using the same successive-shrinking approach as * the type definitions above. It is likewise important that macros are defined * in order of decending width. * * Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the * claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]). */ #define __int_c_join(a, b) a ## b #define __int_c(v, suffix) __int_c_join(v, suffix) #define __uint_c(v, suffix) __int_c_join(v##U, suffix) #ifdef __INT64_TYPE__ # ifdef __INT64_C_SUFFIX__ # define __int64_c_suffix __INT64_C_SUFFIX__ # define __int32_c_suffix __INT64_C_SUFFIX__ # define __int16_c_suffix __INT64_C_SUFFIX__ # define __int8_c_suffix __INT64_C_SUFFIX__ # else # 294 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # undef __int64_c_suffix # undef __int32_c_suffix # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT64_C_SUFFIX__ */ # 299 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT64_TYPE__ */ # 300 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least64_t # ifdef __int64_c_suffix # define INT64_C(v) __int_c(v, __int64_c_suffix) # define UINT64_C(v) __uint_c(v, __int64_c_suffix) # else # 306 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT64_C(v) v # define UINT64_C(v) v ## U # endif /* __int64_c_suffix */ # 309 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __int_least64_t */ # 310 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT56_TYPE__ # ifdef __INT56_C_SUFFIX__ # define INT56_C(v) __int_c(v, __INT56_C_SUFFIX__) # define UINT56_C(v) __uint_c(v, __INT56_C_SUFFIX__) # define __int32_c_suffix __INT56_C_SUFFIX__ # define __int16_c_suffix __INT56_C_SUFFIX__ # define __int8_c_suffix __INT56_C_SUFFIX__ # else # 320 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT56_C(v) v # define UINT56_C(v) v ## U # undef __int32_c_suffix # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT56_C_SUFFIX__ */ # 326 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT56_TYPE__ */ # 327 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT48_TYPE__ # ifdef __INT48_C_SUFFIX__ # define INT48_C(v) __int_c(v, __INT48_C_SUFFIX__) # define UINT48_C(v) __uint_c(v, __INT48_C_SUFFIX__) # define __int32_c_suffix __INT48_C_SUFFIX__ # define __int16_c_suffix __INT48_C_SUFFIX__ # define __int8_c_suffix __INT48_C_SUFFIX__ # else # 337 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT48_C(v) v # define UINT48_C(v) v ## U # undef __int32_c_suffix # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT48_C_SUFFIX__ */ # 343 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT48_TYPE__ */ # 344 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT40_TYPE__ # ifdef __INT40_C_SUFFIX__ # define INT40_C(v) __int_c(v, __INT40_C_SUFFIX__) # define UINT40_C(v) __uint_c(v, __INT40_C_SUFFIX__) # define __int32_c_suffix __INT40_C_SUFFIX__ # define __int16_c_suffix __INT40_C_SUFFIX__ # define __int8_c_suffix __INT40_C_SUFFIX__ # else # 354 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT40_C(v) v # define UINT40_C(v) v ## U # undef __int32_c_suffix # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT40_C_SUFFIX__ */ # 360 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT40_TYPE__ */ # 361 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT32_TYPE__ # ifdef __INT32_C_SUFFIX__ # define __int32_c_suffix __INT32_C_SUFFIX__ # define __int16_c_suffix __INT32_C_SUFFIX__ # define __int8_c_suffix __INT32_C_SUFFIX__ #else # 369 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # undef __int32_c_suffix # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT32_C_SUFFIX__ */ # 373 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT32_TYPE__ */ # 374 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least32_t # ifdef __int32_c_suffix # define INT32_C(v) __int_c(v, __int32_c_suffix) # define UINT32_C(v) __uint_c(v, __int32_c_suffix) # else # 380 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT32_C(v) v # define UINT32_C(v) v ## U # endif /* __int32_c_suffix */ # 383 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __int_least32_t */ # 384 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT24_TYPE__ # ifdef __INT24_C_SUFFIX__ # define INT24_C(v) __int_c(v, __INT24_C_SUFFIX__) # define UINT24_C(v) __uint_c(v, __INT24_C_SUFFIX__) # define __int16_c_suffix __INT24_C_SUFFIX__ # define __int8_c_suffix __INT24_C_SUFFIX__ # else # 393 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT24_C(v) v # define UINT24_C(v) v ## U # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT24_C_SUFFIX__ */ # 398 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT24_TYPE__ */ # 399 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT16_TYPE__ # ifdef __INT16_C_SUFFIX__ # define __int16_c_suffix __INT16_C_SUFFIX__ # define __int8_c_suffix __INT16_C_SUFFIX__ #else # 406 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # undef __int16_c_suffix # undef __int8_c_suffix # endif /* __INT16_C_SUFFIX__ */ # 409 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT16_TYPE__ */ # 410 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least16_t # ifdef __int16_c_suffix # define INT16_C(v) __int_c(v, __int16_c_suffix) # define UINT16_C(v) __uint_c(v, __int16_c_suffix) # else # 416 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT16_C(v) v # define UINT16_C(v) v ## U # endif /* __int16_c_suffix */ # 419 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __int_least16_t */ # 420 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT8_TYPE__ # ifdef __INT8_C_SUFFIX__ # define __int8_c_suffix __INT8_C_SUFFIX__ #else # 426 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # undef __int8_c_suffix # endif /* __INT8_C_SUFFIX__ */ # 428 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT8_TYPE__ */ # 429 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __int_least8_t # ifdef __int8_c_suffix # define INT8_C(v) __int_c(v, __int8_c_suffix) # define UINT8_C(v) __uint_c(v, __int8_c_suffix) # else # 435 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define INT8_C(v) v # define UINT8_C(v) v ## U # endif /* __int8_c_suffix */ # 438 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __int_least8_t */ # 439 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* C99 7.18.2.1 Limits of exact-width integer types. * C99 7.18.2.2 Limits of minimum-width integer types. * C99 7.18.2.3 Limits of fastest minimum-width integer types. * * The presence of limit macros are completely optional in C99. This * implementation defines limits for all of the types (exact- and * minimum-width) that it defines above, using the limits of the minimum-width * type for any types that do not have exact-width representations. * * As in the type definitions, this section takes an approach of * successive-shrinking to determine which limits to use for the standard (8, * 16, 32, 64) bit widths when they don't have exact representations. It is * therefore important that the definitions be kept in order of decending * widths. * * Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the * claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]). */ #ifdef __INT64_TYPE__ # define INT64_MAX INT64_C( 9223372036854775807) # define INT64_MIN (-INT64_C( 9223372036854775807)-1) # define UINT64_MAX UINT64_C(18446744073709551615) /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 467 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT64_WIDTH 64 # define INT64_WIDTH UINT64_WIDTH # define __UINT_LEAST64_WIDTH UINT64_WIDTH # define __UINT_LEAST32_WIDTH UINT64_WIDTH # define __UINT_LEAST16_WIDTH UINT64_WIDTH # define __UINT_LEAST8_MAX UINT64_MAX #endif /* __STDC_VERSION__ */ # 475 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define __INT_LEAST64_MIN INT64_MIN # define __INT_LEAST64_MAX INT64_MAX # define __UINT_LEAST64_MAX UINT64_MAX # define __INT_LEAST32_MIN INT64_MIN # define __INT_LEAST32_MAX INT64_MAX # define __UINT_LEAST32_MAX UINT64_MAX # define __INT_LEAST16_MIN INT64_MIN # define __INT_LEAST16_MAX INT64_MAX # define __UINT_LEAST16_MAX UINT64_MAX # define __INT_LEAST8_MIN INT64_MIN # define __INT_LEAST8_MAX INT64_MAX # define __UINT_LEAST8_MAX UINT64_MAX #endif /* __INT64_TYPE__ */ # 489 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT_LEAST64_MIN # define INT_LEAST64_MIN __INT_LEAST64_MIN # define INT_LEAST64_MAX __INT_LEAST64_MAX # define UINT_LEAST64_MAX __UINT_LEAST64_MAX # define INT_FAST64_MIN __INT_LEAST64_MIN # define INT_FAST64_MAX __INT_LEAST64_MAX # define UINT_FAST64_MAX __UINT_LEAST64_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 501 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT_LEAST64_WIDTH __UINT_LEAST64_WIDTH # define INT_LEAST64_WIDTH UINT_LEAST64_WIDTH # define UINT_FAST64_WIDTH __UINT_LEAST64_WIDTH # define INT_FAST64_WIDTH UINT_FAST64_WIDTH #endif /* __STDC_VERSION__ */ # 506 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT_LEAST64_MIN */ # 507 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT56_TYPE__ # define INT56_MAX INT56_C(36028797018963967) # define INT56_MIN (-INT56_C(36028797018963967)-1) # define UINT56_MAX UINT56_C(72057594037927935) # define INT_LEAST56_MIN INT56_MIN # define INT_LEAST56_MAX INT56_MAX # define UINT_LEAST56_MAX UINT56_MAX # define INT_FAST56_MIN INT56_MIN # define INT_FAST56_MAX INT56_MAX # define UINT_FAST56_MAX UINT56_MAX # define __INT_LEAST32_MIN INT56_MIN # define __INT_LEAST32_MAX INT56_MAX # define __UINT_LEAST32_MAX UINT56_MAX # define __INT_LEAST16_MIN INT56_MIN # define __INT_LEAST16_MAX INT56_MAX # define __UINT_LEAST16_MAX UINT56_MAX # define __INT_LEAST8_MIN INT56_MIN # define __INT_LEAST8_MAX INT56_MAX # define __UINT_LEAST8_MAX UINT56_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 533 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT56_WIDTH 56 # define INT56_WIDTH UINT56_WIDTH # define UINT_LEAST56_WIDTH UINT56_WIDTH # define INT_LEAST56_WIDTH UINT_LEAST56_WIDTH # define UINT_FAST56_WIDTH UINT56_WIDTH # define INT_FAST56_WIDTH UINT_FAST56_WIDTH # define __UINT_LEAST32_WIDTH UINT56_WIDTH # define __UINT_LEAST16_WIDTH UINT56_WIDTH # define __UINT_LEAST8_WIDTH UINT56_WIDTH #endif /* __STDC_VERSION__ */ # 543 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT56_TYPE__ */ # 544 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT48_TYPE__ # define INT48_MAX INT48_C(140737488355327) # define INT48_MIN (-INT48_C(140737488355327)-1) # define UINT48_MAX UINT48_C(281474976710655) # define INT_LEAST48_MIN INT48_MIN # define INT_LEAST48_MAX INT48_MAX # define UINT_LEAST48_MAX UINT48_MAX # define INT_FAST48_MIN INT48_MIN # define INT_FAST48_MAX INT48_MAX # define UINT_FAST48_MAX UINT48_MAX # define __INT_LEAST32_MIN INT48_MIN # define __INT_LEAST32_MAX INT48_MAX # define __UINT_LEAST32_MAX UINT48_MAX # define __INT_LEAST16_MIN INT48_MIN # define __INT_LEAST16_MAX INT48_MAX # define __UINT_LEAST16_MAX UINT48_MAX # define __INT_LEAST8_MIN INT48_MIN # define __INT_LEAST8_MAX INT48_MAX # define __UINT_LEAST8_MAX UINT48_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 570 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #define UINT48_WIDTH 48 #define INT48_WIDTH UINT48_WIDTH #define UINT_LEAST48_WIDTH UINT48_WIDTH #define INT_LEAST48_WIDTH UINT_LEAST48_WIDTH #define UINT_FAST48_WIDTH UINT48_WIDTH #define INT_FAST48_WIDTH UINT_FAST48_WIDTH #define __UINT_LEAST32_WIDTH UINT48_WIDTH #define __UINT_LEAST16_WIDTH UINT48_WIDTH #define __UINT_LEAST8_WIDTH UINT48_WIDTH #endif /* __STDC_VERSION__ */ # 580 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT48_TYPE__ */ # 581 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT40_TYPE__ # define INT40_MAX INT40_C(549755813887) # define INT40_MIN (-INT40_C(549755813887)-1) # define UINT40_MAX UINT40_C(1099511627775) # define INT_LEAST40_MIN INT40_MIN # define INT_LEAST40_MAX INT40_MAX # define UINT_LEAST40_MAX UINT40_MAX # define INT_FAST40_MIN INT40_MIN # define INT_FAST40_MAX INT40_MAX # define UINT_FAST40_MAX UINT40_MAX # define __INT_LEAST32_MIN INT40_MIN # define __INT_LEAST32_MAX INT40_MAX # define __UINT_LEAST32_MAX UINT40_MAX # define __INT_LEAST16_MIN INT40_MIN # define __INT_LEAST16_MAX INT40_MAX # define __UINT_LEAST16_MAX UINT40_MAX # define __INT_LEAST8_MIN INT40_MIN # define __INT_LEAST8_MAX INT40_MAX # define __UINT_LEAST8_MAX UINT40_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 607 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT40_WIDTH 40 # define INT40_WIDTH UINT40_WIDTH # define UINT_LEAST40_WIDTH UINT40_WIDTH # define INT_LEAST40_WIDTH UINT_LEAST40_WIDTH # define UINT_FAST40_WIDTH UINT40_WIDTH # define INT_FAST40_WIDTH UINT_FAST40_WIDTH # define __UINT_LEAST32_WIDTH UINT40_WIDTH # define __UINT_LEAST16_WIDTH UINT40_WIDTH # define __UINT_LEAST8_WIDTH UINT40_WIDTH #endif /* __STDC_VERSION__ */ # 617 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT40_TYPE__ */ # 618 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT32_TYPE__ # define INT32_MAX INT32_C(2147483647) # define INT32_MIN (-INT32_C(2147483647)-1) # define UINT32_MAX UINT32_C(4294967295) # define __INT_LEAST32_MIN INT32_MIN # define __INT_LEAST32_MAX INT32_MAX # define __UINT_LEAST32_MAX UINT32_MAX # define __INT_LEAST16_MIN INT32_MIN # define __INT_LEAST16_MAX INT32_MAX # define __UINT_LEAST16_MAX UINT32_MAX # define __INT_LEAST8_MIN INT32_MIN # define __INT_LEAST8_MAX INT32_MAX # define __UINT_LEAST8_MAX UINT32_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 638 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT32_WIDTH 32 # define INT32_WIDTH UINT32_WIDTH # define __UINT_LEAST32_WIDTH UINT32_WIDTH # define __UINT_LEAST16_WIDTH UINT32_WIDTH # define __UINT_LEAST8_WIDTH UINT32_WIDTH #endif /* __STDC_VERSION__ */ # 644 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT32_TYPE__ */ # 645 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT_LEAST32_MIN # define INT_LEAST32_MIN __INT_LEAST32_MIN # define INT_LEAST32_MAX __INT_LEAST32_MAX # define UINT_LEAST32_MAX __UINT_LEAST32_MAX # define INT_FAST32_MIN __INT_LEAST32_MIN # define INT_FAST32_MAX __INT_LEAST32_MAX # define UINT_FAST32_MAX __UINT_LEAST32_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 657 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT_LEAST32_WIDTH __UINT_LEAST32_WIDTH # define INT_LEAST32_WIDTH UINT_LEAST32_WIDTH # define UINT_FAST32_WIDTH __UINT_LEAST32_WIDTH # define INT_FAST32_WIDTH UINT_FAST32_WIDTH #endif /* __STDC_VERSION__ */ # 662 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT_LEAST32_MIN */ # 663 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT24_TYPE__ # define INT24_MAX INT24_C(8388607) # define INT24_MIN (-INT24_C(8388607)-1) # define UINT24_MAX UINT24_C(16777215) # define INT_LEAST24_MIN INT24_MIN # define INT_LEAST24_MAX INT24_MAX # define UINT_LEAST24_MAX UINT24_MAX # define INT_FAST24_MIN INT24_MIN # define INT_FAST24_MAX INT24_MAX # define UINT_FAST24_MAX UINT24_MAX # define __INT_LEAST16_MIN INT24_MIN # define __INT_LEAST16_MAX INT24_MAX # define __UINT_LEAST16_MAX UINT24_MAX # define __INT_LEAST8_MIN INT24_MIN # define __INT_LEAST8_MAX INT24_MAX # define __UINT_LEAST8_MAX UINT24_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 686 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT24_WIDTH 24 # define INT24_WIDTH UINT24_WIDTH # define UINT_LEAST24_WIDTH UINT24_WIDTH # define INT_LEAST24_WIDTH UINT_LEAST24_WIDTH # define UINT_FAST24_WIDTH UINT24_WIDTH # define INT_FAST24_WIDTH UINT_FAST24_WIDTH # define __UINT_LEAST16_WIDTH UINT24_WIDTH # define __UINT_LEAST8_WIDTH UINT24_WIDTH #endif /* __STDC_VERSION__ */ # 695 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT24_TYPE__ */ # 696 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT16_TYPE__ #define INT16_MAX INT16_C(32767) #define INT16_MIN (-INT16_C(32767)-1) #define UINT16_MAX UINT16_C(65535) # define __INT_LEAST16_MIN INT16_MIN # define __INT_LEAST16_MAX INT16_MAX # define __UINT_LEAST16_MAX UINT16_MAX # define __INT_LEAST8_MIN INT16_MIN # define __INT_LEAST8_MAX INT16_MAX # define __UINT_LEAST8_MAX UINT16_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 713 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT16_WIDTH 16 # define INT16_WIDTH UINT16_WIDTH # define __UINT_LEAST16_WIDTH UINT16_WIDTH # define __UINT_LEAST8_WIDTH UINT16_WIDTH #endif /* __STDC_VERSION__ */ # 718 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT16_TYPE__ */ # 719 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT_LEAST16_MIN # define INT_LEAST16_MIN __INT_LEAST16_MIN # define INT_LEAST16_MAX __INT_LEAST16_MAX # define UINT_LEAST16_MAX __UINT_LEAST16_MAX # define INT_FAST16_MIN __INT_LEAST16_MIN # define INT_FAST16_MAX __INT_LEAST16_MAX # define UINT_FAST16_MAX __UINT_LEAST16_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 731 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT_LEAST16_WIDTH __UINT_LEAST16_WIDTH # define INT_LEAST16_WIDTH UINT_LEAST16_WIDTH # define UINT_FAST16_WIDTH __UINT_LEAST16_WIDTH # define INT_FAST16_WIDTH UINT_FAST16_WIDTH #endif /* __STDC_VERSION__ */ # 736 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT_LEAST16_MIN */ # 737 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT8_TYPE__ # define INT8_MAX INT8_C(127) # define INT8_MIN (-INT8_C(127)-1) # define UINT8_MAX UINT8_C(255) # define __INT_LEAST8_MIN INT8_MIN # define __INT_LEAST8_MAX INT8_MAX # define __UINT_LEAST8_MAX UINT8_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 751 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT8_WIDTH 8 # define INT8_WIDTH UINT8_WIDTH # define __UINT_LEAST8_WIDTH UINT8_WIDTH #endif /* __STDC_VERSION__ */ # 755 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT8_TYPE__ */ # 756 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifdef __INT_LEAST8_MIN # define INT_LEAST8_MIN __INT_LEAST8_MIN # define INT_LEAST8_MAX __INT_LEAST8_MAX # define UINT_LEAST8_MAX __UINT_LEAST8_MAX # define INT_FAST8_MIN __INT_LEAST8_MIN # define INT_FAST8_MAX __INT_LEAST8_MAX # define UINT_FAST8_MAX __UINT_LEAST8_MAX /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 768 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define UINT_LEAST8_WIDTH __UINT_LEAST8_WIDTH # define INT_LEAST8_WIDTH UINT_LEAST8_WIDTH # define UINT_FAST8_WIDTH __UINT_LEAST8_WIDTH # define INT_FAST8_WIDTH UINT_FAST8_WIDTH #endif /* __STDC_VERSION__ */ # 773 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __INT_LEAST8_MIN */ # 774 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* Some utility macros */ #define __INTN_MIN(n) __stdint_join3( INT, n, _MIN) #define __INTN_MAX(n) __stdint_join3( INT, n, _MAX) #define __UINTN_MAX(n) __stdint_join3(UINT, n, _MAX) #define __INTN_C(n, v) __stdint_join3( INT, n, _C(v)) #define __UINTN_C(n, v) __stdint_join3(UINT, n, _C(v)) /* C99 7.18.2.4 Limits of integer types capable of holding object pointers. */ /* C99 7.18.3 Limits of other integer types. */ #define INTPTR_MIN (-__INTPTR_MAX__-1) #define INTPTR_MAX __INTPTR_MAX__ #define UINTPTR_MAX __UINTPTR_MAX__ #define PTRDIFF_MIN (-__PTRDIFF_MAX__-1) #define PTRDIFF_MAX __PTRDIFF_MAX__ #define SIZE_MAX __SIZE_MAX__ /* C2x 7.20.2.4 Width of integer types capable of holding object pointers. */ /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 796 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* NB: The C standard requires that these be the same value, but the compiler exposes separate internal width macros. */ #define INTPTR_WIDTH __INTPTR_WIDTH__ #define UINTPTR_WIDTH __UINTPTR_WIDTH__ #endif # 801 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__ * is enabled. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 805 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #define RSIZE_MAX (SIZE_MAX >> 1) #endif # 807 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* C99 7.18.2.5 Limits of greatest-width integer types. */ #define INTMAX_MIN (-__INTMAX_MAX__-1) #define INTMAX_MAX __INTMAX_MAX__ #define UINTMAX_MAX __UINTMAX_MAX__ /* C2x 7.20.2.5 Width of greatest-width integer types. */ /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 817 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* NB: The C standard requires that these be the same value, but the compiler exposes separate internal width macros. */ #define INTMAX_WIDTH __INTMAX_WIDTH__ #define UINTMAX_WIDTH __UINTMAX_WIDTH__ #endif # 822 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* C99 7.18.3 Limits of other integer types. */ #define SIG_ATOMIC_MIN __INTN_MIN(__SIG_ATOMIC_WIDTH__) #define SIG_ATOMIC_MAX __INTN_MAX(__SIG_ATOMIC_WIDTH__) #ifdef __WINT_UNSIGNED__ # define WINT_MIN __UINTN_C(__WINT_WIDTH__, 0) # define WINT_MAX __UINTN_MAX(__WINT_WIDTH__) #else # 830 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define WINT_MIN __INTN_MIN(__WINT_WIDTH__) # define WINT_MAX __INTN_MAX(__WINT_WIDTH__) #endif # 833 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifndef WCHAR_MAX # define WCHAR_MAX __WCHAR_MAX__ #endif # 837 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #ifndef WCHAR_MIN #if 0 /* disabled by -frewrite-includes */ # if __WCHAR_MAX__ == __INTN_MAX(__WCHAR_WIDTH__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 839 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define WCHAR_MIN __INTN_MIN(__WCHAR_WIDTH__) # else # 841 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # define WCHAR_MIN __UINTN_C(__WCHAR_WIDTH__, 0) # endif # 843 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif # 844 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 /* 7.18.4.2 Macros for greatest-width integer constants. */ #define INTMAX_C(v) __int_c(v, __INTMAX_C_SUFFIX__) #define UINTMAX_C(v) __int_c(v, __UINTMAX_C_SUFFIX__) /* C2x 7.20.3.x Width of other integer types. */ /* FIXME: This is using the placeholder dates Clang produces for these macros in C2x mode; switch to the correct values once they've been published. */ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 202000L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 853 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #define PTRDIFF_WIDTH __PTRDIFF_WIDTH__ #define SIG_ATOMIC_WIDTH __SIG_ATOMIC_WIDTH__ #define SIZE_WIDTH __SIZE_WIDTH__ #define WCHAR_WIDTH __WCHAR_WIDTH__ #define WINT_WIDTH __WINT_WIDTH__ #endif # 859 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __STDC_HOSTED__ */ # 861 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 #endif /* __CLANG_STDINT_H */ # 862 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdint.h" 3 4 # 23 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 23 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 # 24 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 #ifdef __LP64__ #define __PRI_64_prefix "l" #define __PRI_PTR_prefix "l" #else # 29 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 #define __PRI_64_prefix "ll" #define __PRI_PTR_prefix #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 #define __PRI_FAST_prefix __PRI_PTR_prefix /* * 7.8.1 Macros for format specifiers * * Each of the following object-like macros expands to a string * literal containing a conversion specifier, possibly modified by * a prefix such as hh, h, l, or ll, suitable for use within the * format argument of a formatted input/output function when * converting the corresponding integer type. These macro names * have the general form of PRI (character string literals for the * fprintf family) or SCN (character string literals for the fscanf * family), followed by the conversion specifier, followed by a * name corresponding to a similar typedef name. For example, * PRIdFAST32 can be used in a format string to print the value of * an integer of type int_fast32_t. */ /* fprintf macros for signed integers */ #define PRId8 "d" /* int8_t */ #define PRId16 "d" /* int16_t */ #define PRId32 "d" /* int32_t */ #define PRId64 __PRI_64_prefix"d" /* int64_t */ #define PRIdLEAST8 "d" /* int_least8_t */ #define PRIdLEAST16 "d" /* int_least16_t */ #define PRIdLEAST32 "d" /* int_least32_t */ #define PRIdLEAST64 __PRI_64_prefix"d" /* int_least64_t */ #define PRIdFAST8 "d" /* int_fast8_t */ #define PRIdFAST16 __PRI_FAST_prefix"d" /* int_fast16_t */ #define PRIdFAST32 __PRI_FAST_prefix"d" /* int_fast32_t */ #define PRIdFAST64 __PRI_64_prefix"d" /* int_fast64_t */ #define PRIdMAX "jd" /* intmax_t */ #define PRIdPTR __PRI_PTR_prefix"d" /* intptr_t */ #define PRIi8 "i" /* int8_t */ #define PRIi16 "i" /* int16_t */ #define PRIi32 "i" /* int32_t */ #define PRIi64 __PRI_64_prefix"i" /* int64_t */ #define PRIiLEAST8 "i" /* int_least8_t */ #define PRIiLEAST16 "i" /* int_least16_t */ #define PRIiLEAST32 "i" /* int_least32_t */ #define PRIiLEAST64 __PRI_64_prefix"i" /* int_least64_t */ #define PRIiFAST8 "i" /* int_fast8_t */ #define PRIiFAST16 __PRI_FAST_prefix"i" /* int_fast16_t */ #define PRIiFAST32 __PRI_FAST_prefix"i" /* int_fast32_t */ #define PRIiFAST64 __PRI_64_prefix"i" /* int_fast64_t */ #define PRIiMAX "ji" /* intmax_t */ #define PRIiPTR __PRI_PTR_prefix"i" /* intptr_t */ /* fprintf macros for unsigned integers */ #define PRIo8 "o" /* int8_t */ #define PRIo16 "o" /* int16_t */ #define PRIo32 "o" /* int32_t */ #define PRIo64 __PRI_64_prefix"o" /* int64_t */ #define PRIoLEAST8 "o" /* int_least8_t */ #define PRIoLEAST16 "o" /* int_least16_t */ #define PRIoLEAST32 "o" /* int_least32_t */ #define PRIoLEAST64 __PRI_64_prefix"o" /* int_least64_t */ #define PRIoFAST8 "o" /* int_fast8_t */ #define PRIoFAST16 __PRI_FAST_prefix"o" /* int_fast16_t */ #define PRIoFAST32 __PRI_FAST_prefix"o" /* int_fast32_t */ #define PRIoFAST64 __PRI_64_prefix"o" /* int_fast64_t */ #define PRIoMAX "jo" /* intmax_t */ #define PRIoPTR __PRI_PTR_prefix"o" /* intptr_t */ #define PRIu8 "u" /* uint8_t */ #define PRIu16 "u" /* uint16_t */ #define PRIu32 "u" /* uint32_t */ #define PRIu64 __PRI_64_prefix"u" /* uint64_t */ #define PRIuLEAST8 "u" /* uint_least8_t */ #define PRIuLEAST16 "u" /* uint_least16_t */ #define PRIuLEAST32 "u" /* uint_least32_t */ #define PRIuLEAST64 __PRI_64_prefix"u" /* uint_least64_t */ #define PRIuFAST8 "u" /* uint_fast8_t */ #define PRIuFAST16 __PRI_FAST_prefix"u" /* uint_fast16_t */ #define PRIuFAST32 __PRI_FAST_prefix"u" /* uint_fast32_t */ #define PRIuFAST64 __PRI_64_prefix"u" /* uint_fast64_t */ #define PRIuMAX "ju" /* uintmax_t */ #define PRIuPTR __PRI_PTR_prefix"u" /* uintptr_t */ #define PRIx8 "x" /* uint8_t */ #define PRIx16 "x" /* uint16_t */ #define PRIx32 "x" /* uint32_t */ #define PRIx64 __PRI_64_prefix"x" /* uint64_t */ #define PRIxLEAST8 "x" /* uint_least8_t */ #define PRIxLEAST16 "x" /* uint_least16_t */ #define PRIxLEAST32 "x" /* uint_least32_t */ #define PRIxLEAST64 __PRI_64_prefix"x" /* uint_least64_t */ #define PRIxFAST8 "x" /* uint_fast8_t */ #define PRIxFAST16 __PRI_FAST_prefix"x" /* uint_fast16_t */ #define PRIxFAST32 __PRI_FAST_prefix"x" /* uint_fast32_t */ #define PRIxFAST64 __PRI_64_prefix"x" /* uint_fast64_t */ #define PRIxMAX "jx" /* uintmax_t */ #define PRIxPTR __PRI_PTR_prefix"x" /* uintptr_t */ #define PRIX8 "X" /* uint8_t */ #define PRIX16 "X" /* uint16_t */ #define PRIX32 "X" /* uint32_t */ #define PRIX64 __PRI_64_prefix"X" /* uint64_t */ #define PRIXLEAST8 "X" /* uint_least8_t */ #define PRIXLEAST16 "X" /* uint_least16_t */ #define PRIXLEAST32 "X" /* uint_least32_t */ #define PRIXLEAST64 __PRI_64_prefix"X" /* uint_least64_t */ #define PRIXFAST8 "X" /* uint_fast8_t */ #define PRIXFAST16 __PRI_FAST_prefix"X" /* uint_fast16_t */ #define PRIXFAST32 __PRI_FAST_prefix"X" /* uint_fast32_t */ #define PRIXFAST64 __PRI_64_prefix"X" /* uint_fast64_t */ #define PRIXMAX "jX" /* uintmax_t */ #define PRIXPTR __PRI_PTR_prefix"X" /* uintptr_t */ /* fscanf macros for signed integers */ #define SCNd8 "hhd" /* int8_t */ #define SCNd16 "hd" /* int16_t */ #define SCNd32 "d" /* int32_t */ #define SCNd64 __PRI_64_prefix"d" /* int64_t */ #define SCNdLEAST8 "hhd" /* int_least8_t */ #define SCNdLEAST16 "hd" /* int_least16_t */ #define SCNdLEAST32 "d" /* int_least32_t */ #define SCNdLEAST64 __PRI_64_prefix"d" /* int_least64_t */ #define SCNdFAST8 "hhd" /* int_fast8_t */ #define SCNdFAST16 __PRI_FAST_prefix"d" /* int_fast16_t */ #define SCNdFAST32 __PRI_FAST_prefix"d" /* int_fast32_t */ #define SCNdFAST64 __PRI_64_prefix"d" /* int_fast64_t */ #define SCNdMAX "jd" /* intmax_t */ #define SCNdPTR __PRI_PTR_prefix"d" /* intptr_t */ #define SCNi8 "hhi" /* int8_t */ #define SCNi16 "hi" /* int16_t */ #define SCNi32 "i" /* int32_t */ #define SCNi64 __PRI_64_prefix"i" /* int64_t */ #define SCNiLEAST8 "hhi" /* int_least8_t */ #define SCNiLEAST16 "hi" /* int_least16_t */ #define SCNiLEAST32 "i" /* int_least32_t */ #define SCNiLEAST64 __PRI_64_prefix"i" /* int_least64_t */ #define SCNiFAST8 "hhi" /* int_fast8_t */ #define SCNiFAST16 __PRI_FAST_prefix"i" /* int_fast16_t */ #define SCNiFAST32 __PRI_FAST_prefix"i" /* int_fast32_t */ #define SCNiFAST64 __PRI_64_prefix"i" /* int_fast64_t */ #define SCNiMAX "ji" /* intmax_t */ #define SCNiPTR __PRI_PTR_prefix"i" /* intptr_t */ /* fscanf macros for unsigned integers */ #define SCNo8 "hho" /* uint8_t */ #define SCNo16 "ho" /* uint16_t */ #define SCNo32 "o" /* uint32_t */ #define SCNo64 __PRI_64_prefix"o" /* uint64_t */ #define SCNoLEAST8 "hho" /* uint_least8_t */ #define SCNoLEAST16 "ho" /* uint_least16_t */ #define SCNoLEAST32 "o" /* uint_least32_t */ #define SCNoLEAST64 __PRI_64_prefix"o" /* uint_least64_t */ #define SCNoFAST8 "hho" /* uint_fast8_t */ #define SCNoFAST16 __PRI_FAST_prefix"o" /* uint_fast16_t */ #define SCNoFAST32 __PRI_FAST_prefix"o" /* uint_fast32_t */ #define SCNoFAST64 __PRI_64_prefix"o" /* uint_fast64_t */ #define SCNoMAX "jo" /* uintmax_t */ #define SCNoPTR __PRI_PTR_prefix"o" /* uintptr_t */ #define SCNu8 "hhu" /* uint8_t */ #define SCNu16 "hu" /* uint16_t */ #define SCNu32 "u" /* uint32_t */ #define SCNu64 __PRI_64_prefix"u" /* uint64_t */ #define SCNuLEAST8 "hhu" /* uint_least8_t */ #define SCNuLEAST16 "hu" /* uint_least16_t */ #define SCNuLEAST32 "u" /* uint_least32_t */ #define SCNuLEAST64 __PRI_64_prefix"u" /* uint_least64_t */ #define SCNuFAST8 "hhu" /* uint_fast8_t */ #define SCNuFAST16 __PRI_FAST_prefix"u" /* uint_fast16_t */ #define SCNuFAST32 __PRI_FAST_prefix"u" /* uint_fast32_t */ #define SCNuFAST64 __PRI_64_prefix"u" /* uint_fast64_t */ #define SCNuMAX "ju" /* uintmax_t */ #define SCNuPTR __PRI_PTR_prefix"u" /* uintptr_t */ #define SCNx8 "hhx" /* uint8_t */ #define SCNx16 "hx" /* uint16_t */ #define SCNx32 "x" /* uint32_t */ #define SCNx64 __PRI_64_prefix"x" /* uint64_t */ #define SCNxLEAST8 "hhx" /* uint_least8_t */ #define SCNxLEAST16 "hx" /* uint_least16_t */ #define SCNxLEAST32 "x" /* uint_least32_t */ #define SCNxLEAST64 __PRI_64_prefix"x" /* uint_least64_t */ #define SCNxFAST8 "hhx" /* uint_fast8_t */ #define SCNxFAST16 __PRI_FAST_prefix"x" /* uint_fast16_t */ #define SCNxFAST32 __PRI_FAST_prefix"x" /* uint_fast32_t */ #define SCNxFAST64 __PRI_64_prefix"x" /* uint_fast64_t */ #define SCNxMAX "jx" /* uintmax_t */ #define SCNxPTR __PRI_PTR_prefix"x" /* uintptr_t */ typedef struct { intmax_t quot; /* quotient */ intmax_t rem; /* remainder */ } imaxdiv_t; __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 19 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 260 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 intmax_t imaxabs(intmax_t __i) __attribute_const__ __INTRODUCED_IN(19); imaxdiv_t imaxdiv(intmax_t __numerator, intmax_t __denominator) __attribute_const__ __INTRODUCED_IN(19); #endif /* __ANDROID_API__ >= 19 */ # 263 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 intmax_t strtoimax(const char* __s, char** __end_ptr, int __base); uintmax_t strtoumax(const char* __s, char** __end_ptr, int __base); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 268 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 intmax_t wcstoimax(const wchar_t* __s, wchar_t** __end_ptr, int __base) __INTRODUCED_IN(21); uintmax_t wcstoumax(const wchar_t* __s, wchar_t** __end_ptr, int __base) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 271 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 __END_DECLS #endif # 275 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/inttypes.h" 3 4 # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/inttypes.h" 2 3 __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < __ANDROID_API_L__ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/inttypes.h" 3 intmax_t wcstoimax(const wchar_t* __restrict, wchar_t** __restrict, int); uintmax_t wcstoumax(const wchar_t* __restrict, wchar_t** __restrict, int); #endif # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/inttypes.h" 3 __END_DECLS # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 2 3 #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_VER) && _MSC_VER < 1900 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 24 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 /* MSVC headers define int32_t as int, but PRIx32 as "lx" instead of "x". * This triggers format warnings, so fix it up here. */ #undef PRId32 #undef PRIdLEAST32 #undef PRIdFAST32 #undef PRIi32 #undef PRIiLEAST32 #undef PRIiFAST32 #undef PRIo32 #undef PRIoLEAST32 #undef PRIoFAST32 #undef PRIu32 #undef PRIuLEAST32 #undef PRIuFAST32 #undef PRIx32 #undef PRIxLEAST32 #undef PRIxFAST32 #undef PRIX32 #undef PRIXLEAST32 #undef PRIXFAST32 #undef SCNd32 #undef SCNdLEAST32 #undef SCNdFAST32 #undef SCNi32 #undef SCNiLEAST32 #undef SCNiFAST32 #undef SCNo32 #undef SCNoLEAST32 #undef SCNoFAST32 #undef SCNu32 #undef SCNuLEAST32 #undef SCNuFAST32 #undef SCNx32 #undef SCNxLEAST32 #undef SCNxFAST32 #define PRId32 "d" #define PRIdLEAST32 "d" #define PRIdFAST32 "d" #define PRIi32 "i" #define PRIiLEAST32 "i" #define PRIiFAST32 "i" #define PRIo32 "o" #define PRIoLEAST32 "o" #define PRIoFAST32 "o" #define PRIu32 "u" #define PRIuLEAST32 "u" #define PRIuFAST32 "u" #define PRIx32 "x" #define PRIxLEAST32 "x" #define PRIxFAST32 "x" #define PRIX32 "X" #define PRIXLEAST32 "X" #define PRIXFAST32 "X" #define SCNd32 "d" #define SCNdLEAST32 "d" #define SCNdFAST32 "d" #define SCNi32 "i" #define SCNiLEAST32 "i" #define SCNiFAST32 "i" #define SCNo32 "o" #define SCNoLEAST32 "o" #define SCNoFAST32 "o" #define SCNu32 "u" #define SCNuLEAST32 "u" #define SCNuFAST32 "u" #define SCNx32 "x" #define SCNxLEAST32 "x" #define SCNxFAST32 "x" #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 #endif /* __CLANG_INTTYPES_H */ # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/inttypes.h" 3 # 39 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE_TGMATH_H) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 40 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 41 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #endif # 42 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #if 0 /* disabled by -frewrite-includes */ #if defined(HAVE_MATH_H) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 44 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #endif # 45 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" #if 0 /* expanded by -frewrite-includes */ #include "floating_fudge.h" #endif /* expanded by -frewrite-includes */ # 45 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" 1 /* * SpanDSP - a series of DSP components for telephony * * floating_fudge.h - A bunch of shims, to use double maths * functions on platforms which lack the * float versions with an 'f' at the end, * and to deal with the vaguaries of lrint(). * * Written by Steve Underwood * * Copyright (C) 2008 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: floating_fudge.h,v 1.7 2009/02/03 16:28:39 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_FLOATING_FUDGE_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #define _FLOATING_FUDGE_H_ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 35 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" extern "C" { #endif # 38 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_SINF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 40 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float sinf(float x) { return (float) sin((double) x); } #endif # 45 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_COSF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float cosf(float x) { return (float) cos((double) x); } #endif # 52 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_TANF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 54 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float tanf(float x) { return (float) tan((double) x); } #endif # 59 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_ASINF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 61 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float asinf(float x) { return (float) asin((double) x); } #endif # 66 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_ACOSF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float acosf(float x) { return (float) acos((double) x); } #endif # 73 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_ATANF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 75 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float atanf(float x) { return (float) atan((double) x); } #endif # 81 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_ATAN2F) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 83 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float atan2f(float y, float x) { return (float) atan2((double) y, (double) x); } #endif # 89 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_CEILF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float ceilf(float x) { return (float) ceil((double) x); } #endif # 96 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_FLOORF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float floorf(float x) { return (float) floor((double) x); } #endif # 104 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_POWF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 106 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float powf(float x, float y) { return (float) pow((double) x, (double) y); } #endif # 111 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_EXPF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float expf(float x) { return (float) expf((double) x); } #endif # 118 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_LOGF) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 120 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float logf(float x) { return (float) logf((double) x); } #endif # 125 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(HAVE_LOG10F) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 127 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" static __inline__ float log10f(float x) { return (float) log10((double) x); } #endif # 132 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 134 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" } #endif # 136 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" #endif # 138 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/floating_fudge.h" /*- End of file ------------------------------------------------------------*/ # 46 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h" 1 3 /* * Copyright (C) 2013 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h" 3 #if 0 /* expanded by -frewrite-includes */ #include_next #endif /* expanded by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h" 3 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _STDLIB_H #define _STDLIB_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/alloca.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/alloca.h" 3 4 /** * @file alloca.h * @brief Allocate space on the stack. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/alloca.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/alloca.h" 3 4 /** * [alloca(3)](http://man7.org/linux/man-pages/man3/alloca.3.html) allocates space on the stack. * * New code should not use alloca because it cannot report failure. * Use regular heap allocation instead. * * @return a pointer to the space on success, but has undefined behavior on failure. */ #define alloca(size) __builtin_alloca(size) # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wait.h" 1 3 4 /* * Copyright (C) 2017 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wait.h" 3 4 /** * @file bits/wait.h * @brief Process exit status macros. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wait.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wait.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wait.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/wait.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI_LINUX_WAIT_H #define _UAPI_LINUX_WAIT_H #define WNOHANG 0x00000001 #define WUNTRACED 0x00000002 #define WSTOPPED WUNTRACED #define WEXITED 0x00000004 #define WCONTINUED 0x00000008 #define WNOWAIT 0x01000000 #define __WNOTHREAD 0x20000000 #define __WALL 0x40000000 #define __WCLONE 0x80000000 #define P_ALL 0 #define P_PID 1 #define P_PGID 2 #define P_PIDFD 3 #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/wait.h" 3 4 # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/wait.h" 2 3 4 /** Returns the exit status from a process for which `WIFEXITED` is true. */ #define WEXITSTATUS(__status) (((__status) & 0xff00) >> 8) /** Returns true if a process dumped core. */ #define WCOREDUMP(__status) ((__status) & 0x80) /** Returns the terminating signal from a process, or 0 if it exited normally. */ #define WTERMSIG(__status) ((__status) & 0x7f) /** Returns the signal that stopped the process, if `WIFSTOPPED` is true. */ #define WSTOPSIG(__status) WEXITSTATUS(__status) /** Returns true if the process exited normally. */ #define WIFEXITED(__status) (WTERMSIG(__status) == 0) /** Returns true if the process was stopped by a signal. */ #define WIFSTOPPED(__status) (WTERMSIG(__status) == 0x7f) /** Returns true if the process was terminated by a signal. */ #define WIFSIGNALED(__status) (WTERMSIG((__status)+1) >= 2) /** Returns true if the process was resumed . */ #define WIFCONTINUED(__status) ((__status) == 0xffff) /** Constructs a status value from the given exit code and signal number. */ #define W_EXITCODE(__exit_code, __signal_number) ((__exit_code) << 8 | (__signal_number)) /** Constructs a status value for a process stopped by the given signal. */ #define W_STOPCODE(__signal_number) ((__signal_number) << 8 | 0x7f) # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 1 3 4 /* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 18 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 /** * @file malloc.h * @brief Heap memory allocation. * * [Debugging Native Memory Use](https://source.android.com/devices/tech/debug/native-memory) * is the canonical source for documentation on Android's heap debugging * features. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 # 29 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 29 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 1 3 4 /*===---- stddef.h - Basic type definitions --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 13 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ !defined(__need_wchar_t) && !defined(__need_NULL) && \ !defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define miscellaneous pieces when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __STDDEF_H #endif # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __need_ptrdiff_t #define __need_size_t #define __need_wchar_t #define __need_NULL #define __need_STDDEF_H_misc /* __need_wint_t is intentionally not defined here. */ #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_ptrdiff_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTRDIFF_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define ptrdiff_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _PTRDIFF_T #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_ptrdiff_t #endif /* defined(__need_ptrdiff_t) */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_size_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_SIZE_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define size_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _SIZE_T #endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ size_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_size_t #endif /*defined(__need_size_t) */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is * enabled. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ !defined(_RSIZE_T)) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define rsize_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _RSIZE_T #endif # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ rsize_t; #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif /* defined(__need_STDDEF_H_misc) */ # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wchar_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifndef __cplusplus /* Always define wchar_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WCHAR_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T_DEFINED #endif # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WCHAR_TYPE__ wchar_t; #endif # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wchar_t #endif /* defined(__need_wchar_t) */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_NULL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 81 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef NULL #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__MINGW32__) && !defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL __null # else # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL 0 # endif # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #else # 89 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL ((void*)0) #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 namespace std { typedef decltype(nullptr) nullptr_t; } using ::std::nullptr_t; #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_NULL #endif /* defined(__need_NULL) */ # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include "__stddef_max_align_t.h" #endif /* expanded by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define offsetof(t, d) __builtin_offsetof(t, d) #undef __need_STDDEF_H_misc #endif /* defined(__need_STDDEF_H_misc) */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define wint_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WINT_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WINT_T #endif # 116 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WINT_TYPE__ wint_t; #endif # 118 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wint_t #endif /* __need_wint_t */ # 120 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 1 3 4 /* $OpenBSD: stdio.h,v 1.35 2006/01/13 18:10:09 miod Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * 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. * * @(#)stdio.h 5.17 (Berkeley) 6/3/91 */ #ifndef _STDIO_H_ #define _STDIO_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 1 3 4 /*===---- stddef.h - Basic type definitions --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 13 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ !defined(__need_wchar_t) && !defined(__need_NULL) && \ !defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define miscellaneous pieces when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __STDDEF_H #endif # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __need_ptrdiff_t #define __need_size_t #define __need_wchar_t #define __need_NULL #define __need_STDDEF_H_misc /* __need_wint_t is intentionally not defined here. */ #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_ptrdiff_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTRDIFF_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define ptrdiff_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _PTRDIFF_T #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_ptrdiff_t #endif /* defined(__need_ptrdiff_t) */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_size_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_SIZE_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define size_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _SIZE_T #endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ size_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_size_t #endif /*defined(__need_size_t) */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is * enabled. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ !defined(_RSIZE_T)) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define rsize_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _RSIZE_T #endif # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ rsize_t; #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif /* defined(__need_STDDEF_H_misc) */ # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wchar_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifndef __cplusplus /* Always define wchar_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WCHAR_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T_DEFINED #endif # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WCHAR_TYPE__ wchar_t; #endif # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wchar_t #endif /* defined(__need_wchar_t) */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_NULL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 81 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef NULL #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__MINGW32__) && !defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL __null # else # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL 0 # endif # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #else # 89 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL ((void*)0) #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 namespace std { typedef decltype(nullptr) nullptr_t; } using ::std::nullptr_t; #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_NULL #endif /* defined(__need_NULL) */ # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include "__stddef_max_align_t.h" #endif /* expanded by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define offsetof(t, d) __builtin_offsetof(t, d) #undef __need_STDDEF_H_misc #endif /* defined(__need_STDDEF_H_misc) */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define wint_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WINT_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WINT_T #endif # 116 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WINT_TYPE__ wint_t; #endif # 118 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wint_t #endif /* __need_wint_t */ # 120 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI_LINUX_TYPES_H #define _UAPI_LINUX_TYPES_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI_ASM_TYPES_H #define _UAPI_ASM_TYPES_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI_ASM_GENERIC_INT_LL64_H #define _UAPI_ASM_GENERIC_INT_LL64_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/bitsperlong.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/bitsperlong.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/bitsperlong.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG #define _UAPI__ASM_GENERIC_BITS_PER_LONG #ifndef __BITS_PER_LONG #define __BITS_PER_LONG 32 #endif # 24 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/bitsperlong.h" 3 4 #endif # 25 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/bitsperlong.h" 3 4 # 20 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/bitsperlong.h" 2 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 2 3 4 #ifndef __ASSEMBLY__ typedef __signed__ char __s8; typedef unsigned char __u8; typedef __signed__ short __s16; typedef unsigned short __u16; typedef __signed__ int __s32; typedef unsigned int __u32; #ifdef __GNUC__ __extension__ typedef __signed__ long long __s64; __extension__ typedef unsigned long long __u64; #else # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 3 4 typedef __signed__ long long __s64; typedef unsigned long long __u64; #endif # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 3 4 #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 3 4 #endif # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/int-ll64.h" 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 2 3 4 #ifdef __INT32_TYPE__ #undef __INT32_TYPE__ #define __INT32_TYPE__ int #endif # 26 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 3 4 #ifdef __UINT32_TYPE__ #undef __UINT32_TYPE__ #define __UINT32_TYPE__ unsigned int #endif # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 3 4 #ifdef __UINTPTR_TYPE__ #undef __UINTPTR_TYPE__ #define __UINTPTR_TYPE__ unsigned long #endif # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 3 4 #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/types.h" 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 2 3 4 #ifndef __ASSEMBLY__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 23 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/posix_types.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _LINUX_POSIX_TYPES_H #define _LINUX_POSIX_TYPES_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/posix_types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/stddef.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _UAPI_LINUX_STDDEF_H #define _UAPI_LINUX_STDDEF_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/stddef.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/compiler_types.h" 1 3 4 /* * The compiler.h file has been split into compiler.h and compiler_types.h. * However, to compile bionic we only need the compiler.h. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 5 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/compiler_types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/compiler.h" 1 3 4 #ifndef _UAPI_LINUX_COMPILER_H #define _UAPI_LINUX_COMPILER_H /* * This file is not currently in the Linux kernel tree. * Upstream uapi headers refer to but there is * no such uapi file. We've sent this upstream, and are optimistically * adding it to bionic in the meantime. This should be replaced by * a scrubbed header from external/kernel-headers when possible. * * An alternative to this file is to check in a symbolic link to the * non-uapi . That's fine for building bionic too. */ #define __user #define __force #endif /* _UAPI_LINUX_COMPILER_H */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/compiler.h" 3 4 # 6 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/compiler_types.h" 2 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/stddef.h" 2 3 4 #ifndef __always_inline #define __always_inline inline #endif # 25 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/stddef.h" 3 4 #define __struct_group(TAG,NAME,ATTRS,MEMBERS...) union { struct { MEMBERS } ATTRS; struct TAG { MEMBERS } ATTRS NAME; } #define __DECLARE_FLEX_ARRAY(TYPE,NAME) struct { struct { } __empty_ ##NAME; TYPE NAME[]; } #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/stddef.h" 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/posix_types.h" 2 3 4 #undef __FD_SETSIZE #define __FD_SETSIZE 1024 typedef struct { unsigned long fds_bits[__FD_SETSIZE / (8 * sizeof(long))]; } __kernel_fd_set; typedef void(* __kernel_sighandler_t) (int); typedef int __kernel_key_t; typedef int __kernel_mqd_t; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/posix_types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/posix_types.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef __ARCH_ARM_POSIX_TYPES_H #define __ARCH_ARM_POSIX_TYPES_H typedef unsigned short __kernel_mode_t; #define __kernel_mode_t __kernel_mode_t typedef unsigned short __kernel_ipc_pid_t; #define __kernel_ipc_pid_t __kernel_ipc_pid_t typedef unsigned short __kernel_uid_t; typedef unsigned short __kernel_gid_t; #define __kernel_uid_t __kernel_uid_t typedef unsigned short __kernel_old_dev_t; #define __kernel_old_dev_t __kernel_old_dev_t #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/posix_types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef __ASM_GENERIC_POSIX_TYPES_H #define __ASM_GENERIC_POSIX_TYPES_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/bitsperlong.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/bitsperlong.h" 3 4 # 20 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/bitsperlong.h" 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 2 3 4 #ifndef __kernel_long_t typedef long __kernel_long_t; typedef unsigned long __kernel_ulong_t; #endif # 26 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_ino_t typedef __kernel_ulong_t __kernel_ino_t; #endif # 29 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_mode_t typedef unsigned int __kernel_mode_t; #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_pid_t typedef int __kernel_pid_t; #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_ipc_pid_t typedef int __kernel_ipc_pid_t; #endif # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_uid_t typedef unsigned int __kernel_uid_t; typedef unsigned int __kernel_gid_t; #endif # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_suseconds_t typedef __kernel_long_t __kernel_suseconds_t; #endif # 45 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_daddr_t typedef int __kernel_daddr_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_uid32_t typedef unsigned int __kernel_uid32_t; typedef unsigned int __kernel_gid32_t; #endif # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_old_uid_t typedef __kernel_uid_t __kernel_old_uid_t; typedef __kernel_gid_t __kernel_old_gid_t; #endif # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_old_dev_t typedef unsigned int __kernel_old_dev_t; #endif # 59 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_size_t #if 0 /* disabled by -frewrite-includes */ #if __BITS_PER_LONG != 64 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 61 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 typedef unsigned int __kernel_size_t; typedef int __kernel_ssize_t; typedef int __kernel_ptrdiff_t; #else # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 typedef __kernel_ulong_t __kernel_size_t; typedef __kernel_long_t __kernel_ssize_t; typedef __kernel_long_t __kernel_ptrdiff_t; #endif # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #endif # 70 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 #ifndef __kernel_fsid_t typedef struct { int val[2]; } __kernel_fsid_t; #endif # 75 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 typedef __kernel_long_t __kernel_off_t; typedef long long __kernel_loff_t; typedef __kernel_long_t __kernel_old_time_t; typedef __kernel_long_t __kernel_time_t; typedef long long __kernel_time64_t; typedef __kernel_long_t __kernel_clock_t; typedef int __kernel_timer_t; typedef int __kernel_clockid_t; typedef char * __kernel_caddr_t; typedef unsigned short __kernel_uid16_t; typedef unsigned short __kernel_gid16_t; #endif # 87 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/posix_types.h" 3 4 # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/posix_types.h" 2 3 4 #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/posix_types.h" 3 4 # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/posix_types.h" 2 3 4 #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/posix_types.h" 3 4 # 24 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 2 3 4 #define __bitwise typedef __u16 __bitwise __le16; typedef __u16 __bitwise __be16; typedef __u32 __bitwise __le32; typedef __u32 __bitwise __be32; typedef __u64 __bitwise __le64; typedef __u64 __bitwise __be64; typedef __u16 __bitwise __sum16; typedef __u32 __bitwise __wsum; #define __aligned_u64 __u64 __attribute__((aligned(8))) #define __aligned_be64 __be64 __attribute__((aligned(8))) #define __aligned_le64 __le64 __attribute__((aligned(8))) typedef unsigned __bitwise __poll_t; #endif # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 3 4 #endif # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/types.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 40 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* gids, uids, and pids are all 32-bit. */ typedef __kernel_gid32_t __gid_t; typedef __gid_t gid_t; typedef __kernel_uid32_t __uid_t; typedef __uid_t uid_t; typedef __kernel_pid_t __pid_t; typedef __pid_t pid_t; typedef uint32_t __id_t; typedef __id_t id_t; typedef unsigned long blkcnt_t; typedef unsigned long blksize_t; typedef __kernel_caddr_t caddr_t; typedef __kernel_clock_t clock_t; typedef __kernel_clockid_t __clockid_t; typedef __clockid_t clockid_t; typedef __kernel_daddr_t daddr_t; typedef unsigned long fsblkcnt_t; typedef unsigned long fsfilcnt_t; typedef __kernel_mode_t __mode_t; typedef __mode_t mode_t; typedef __kernel_key_t __key_t; typedef __key_t key_t; typedef __kernel_ino_t __ino_t; typedef __ino_t ino_t; typedef uint64_t ino64_t; typedef uint32_t __nlink_t; typedef __nlink_t nlink_t; typedef void* __timer_t; typedef __timer_t timer_t; typedef __kernel_suseconds_t __suseconds_t; typedef __suseconds_t suseconds_t; /* useconds_t is 32-bit on both LP32 and LP64. */ typedef uint32_t __useconds_t; typedef __useconds_t useconds_t; #if 0 /* disabled by -frewrite-includes */ #if !defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* This historical accident means that we had a 32-bit dev_t on 32-bit architectures. */ typedef uint32_t dev_t; #else # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef uint64_t dev_t; #endif # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* This historical accident means that we had a 32-bit time_t on 32-bit architectures. */ typedef __kernel_time_t __time_t; typedef __time_t time_t; /* This historical accident means that we had a 32-bit off_t on 32-bit architectures. */ /* See https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md */ #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_FILE_OFFSET64) || defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef int64_t off_t; typedef off_t loff_t; typedef loff_t off64_t; #else # 105 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef __kernel_off_t off_t; typedef __kernel_loff_t loff_t; typedef loff_t off64_t; #endif # 109 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* This historical accident means that we had a signed socklen_t on 32-bit architectures. */ typedef int32_t __socklen_t; #else # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* LP64 still has a 32-bit socklen_t. */ typedef uint32_t __socklen_t; #endif # 117 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef __socklen_t socklen_t; typedef __builtin_va_list __va_list; #ifndef _SSIZE_T_DEFINED_ #define _SSIZE_T_DEFINED_ /* Traditionally, bionic's ssize_t was "long int". This caused GCC to emit warnings when you * pass a ssize_t to a printf-style function. The correct type is __kernel_ssize_t, which is * "int", which isn't an ABI change for C code (because they're the same size) but is an ABI * change for C++ because "int" and "long int" mangle to "i" and "l" respectively. So until * we can fix the ABI, this change should not be propagated to the NDK. http://b/8253769. */ typedef __kernel_ssize_t ssize_t; #endif # 130 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef unsigned int uint_t; typedef unsigned int uint; #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_BSD) || defined(__BIONIC__) /* Historically bionic exposed these. */ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 135 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef uint32_t u_int32_t; typedef uint16_t u_int16_t; typedef uint8_t u_int8_t; typedef uint64_t u_int64_t; #endif # 145 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #endif # 147 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 2 3 4 typedef struct { uint32_t flags; void* stack_base; size_t stack_size; size_t guard_size; int32_t sched_policy; int32_t sched_priority; #ifdef __LP64__ char __reserved[16]; #endif # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 } pthread_attr_t; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 typedef struct { #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 49 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int64_t __private[4]; #else # 51 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[8]; #endif # 53 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 } pthread_barrier_t; #endif # 55 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 57 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 typedef int pthread_barrierattr_t; #endif # 59 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 typedef struct { #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[12]; #else # 64 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[1]; #endif # 66 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 } pthread_cond_t; typedef long pthread_condattr_t; typedef int pthread_key_t; typedef struct { #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[10]; #else # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[1]; #endif # 78 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 } pthread_mutex_t; typedef long pthread_mutexattr_t; typedef int pthread_once_t; typedef struct { #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[14]; #else # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[10]; #endif # 90 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 } pthread_rwlock_t; typedef long pthread_rwlockattr_t; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 95 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 typedef struct { #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int64_t __private; #else # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 int32_t __private[2]; #endif # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 } pthread_spinlock_t; #endif # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/pthread_types.h" 3 4 typedef long pthread_t; # 40 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 2 3 4 /* gids, uids, and pids are all 32-bit. */ typedef __kernel_gid32_t __gid_t; typedef __gid_t gid_t; typedef __kernel_uid32_t __uid_t; typedef __uid_t uid_t; typedef __kernel_pid_t __pid_t; typedef __pid_t pid_t; typedef uint32_t __id_t; typedef __id_t id_t; typedef unsigned long blkcnt_t; typedef unsigned long blksize_t; typedef __kernel_caddr_t caddr_t; typedef __kernel_clock_t clock_t; typedef __kernel_clockid_t __clockid_t; typedef __clockid_t clockid_t; typedef __kernel_daddr_t daddr_t; typedef unsigned long fsblkcnt_t; typedef unsigned long fsfilcnt_t; typedef __kernel_mode_t __mode_t; typedef __mode_t mode_t; typedef __kernel_key_t __key_t; typedef __key_t key_t; typedef __kernel_ino_t __ino_t; typedef __ino_t ino_t; typedef uint64_t ino64_t; typedef uint32_t __nlink_t; typedef __nlink_t nlink_t; typedef void* __timer_t; typedef __timer_t timer_t; typedef __kernel_suseconds_t __suseconds_t; typedef __suseconds_t suseconds_t; /* useconds_t is 32-bit on both LP32 and LP64. */ typedef uint32_t __useconds_t; typedef __useconds_t useconds_t; #if 0 /* disabled by -frewrite-includes */ #if !defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* This historical accident means that we had a 32-bit dev_t on 32-bit architectures. */ typedef uint32_t dev_t; #else # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef uint64_t dev_t; #endif # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* This historical accident means that we had a 32-bit time_t on 32-bit architectures. */ typedef __kernel_time_t __time_t; typedef __time_t time_t; /* This historical accident means that we had a 32-bit off_t on 32-bit architectures. */ /* See https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md */ #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_FILE_OFFSET64) || defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef int64_t off_t; typedef off_t loff_t; typedef loff_t off64_t; #else # 105 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef __kernel_off_t off_t; typedef __kernel_loff_t loff_t; typedef loff_t off64_t; #endif # 109 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* This historical accident means that we had a signed socklen_t on 32-bit architectures. */ typedef int32_t __socklen_t; #else # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 /* LP64 still has a 32-bit socklen_t. */ typedef uint32_t __socklen_t; #endif # 117 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef __socklen_t socklen_t; typedef __builtin_va_list __va_list; #ifndef _SSIZE_T_DEFINED_ #define _SSIZE_T_DEFINED_ /* Traditionally, bionic's ssize_t was "long int". This caused GCC to emit warnings when you * pass a ssize_t to a printf-style function. The correct type is __kernel_ssize_t, which is * "int", which isn't an ABI change for C code (because they're the same size) but is an ABI * change for C++ because "int" and "long int" mangle to "i" and "l" respectively. So until * we can fix the ABI, this change should not be propagated to the NDK. http://b/8253769. */ typedef __kernel_ssize_t ssize_t; #endif # 130 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef unsigned int uint_t; typedef unsigned int uint; #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_BSD) || defined(__BIONIC__) /* Historically bionic exposed these. */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 135 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef uint32_t u_int32_t; typedef uint16_t u_int16_t; typedef uint8_t u_int8_t; typedef uint64_t u_int64_t; #endif # 145 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 #endif # 147 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/sys/types.h" 3 4 # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdarg.h" 1 3 4 /*===---- stdarg.h - Variable argument handling ----------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #ifndef __STDARG_H #define __STDARG_H #ifndef _VA_LIST typedef __builtin_va_list va_list; #define _VA_LIST #endif # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdarg.h" 3 4 #define va_start(ap, param) __builtin_va_start(ap, param) #define va_end(ap) __builtin_va_end(ap) #define va_arg(ap, type) __builtin_va_arg(ap, type) /* GCC always defines __va_copy, but does not define va_copy unless in c99 mode * or -ansi is not specified, since it was not part of C90. */ #define __va_copy(d,s) __builtin_va_copy(d,s) #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 27 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdarg.h" 3 4 #define va_copy(dest, src) __builtin_va_copy(dest, src) #endif # 29 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdarg.h" 3 4 #ifndef __GNUC_VA_LIST #define __GNUC_VA_LIST 1 typedef __builtin_va_list __gnuc_va_list; #endif # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdarg.h" 3 4 #endif /* __STDARG_H */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stdarg.h" 3 4 # 45 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 1 3 4 /*===---- stddef.h - Basic type definitions --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 13 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ !defined(__need_wchar_t) && !defined(__need_NULL) && \ !defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define miscellaneous pieces when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __STDDEF_H #endif # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __need_ptrdiff_t #define __need_size_t #define __need_wchar_t #define __need_NULL #define __need_STDDEF_H_misc /* __need_wint_t is intentionally not defined here. */ #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_ptrdiff_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTRDIFF_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define ptrdiff_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _PTRDIFF_T #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_ptrdiff_t #endif /* defined(__need_ptrdiff_t) */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_size_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_SIZE_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define size_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _SIZE_T #endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ size_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_size_t #endif /*defined(__need_size_t) */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is * enabled. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ !defined(_RSIZE_T)) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define rsize_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _RSIZE_T #endif # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ rsize_t; #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif /* defined(__need_STDDEF_H_misc) */ # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wchar_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifndef __cplusplus /* Always define wchar_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WCHAR_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T_DEFINED #endif # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WCHAR_TYPE__ wchar_t; #endif # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wchar_t #endif /* defined(__need_wchar_t) */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_NULL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 81 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef NULL #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__MINGW32__) && !defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL __null # else # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL 0 # endif # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #else # 89 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL ((void*)0) #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 namespace std { typedef decltype(nullptr) nullptr_t; } using ::std::nullptr_t; #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_NULL #endif /* defined(__need_NULL) */ # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include "__stddef_max_align_t.h" #endif /* expanded by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define offsetof(t, d) __builtin_offsetof(t, d) #undef __need_STDDEF_H_misc #endif /* defined(__need_STDDEF_H_misc) */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define wint_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WINT_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WINT_T #endif # 116 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WINT_TYPE__ wint_t; #endif # 118 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wint_t #endif /* __need_wint_t */ # 120 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/seek_constants.h" 1 3 4 /* * Copyright (C) 2016 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/seek_constants.h" 3 4 /** * @file bits/seek_constants.h * @brief The `SEEK_` constants. */ /** Seek to an absolute offset. */ #define SEEK_SET 0 /** Seek relative to the current offset. */ #define SEEK_CUR 1 /** Seek relative to the end of the file. */ #define SEEK_END 2 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/seek_constants.h" 3 4 /** * Seek to the first data (non-hole) location in the file * greater than or equal to the given offset. * * See [lseek(2)](http://man7.org/linux/man-pages/man2/lseek.2.html). */ #define SEEK_DATA 3 /** * Seek to the first hole (non-data) location in the file * greater than or equal to the given offset. * * See [lseek(2)](http://man7.org/linux/man-pages/man2/lseek.2.html). */ #define SEEK_HOLE 4 #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/seek_constants.h" 3 4 # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < 24 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 1 3 4 /* * Copyright (C) 2016 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 3 4 # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 3 4 __BEGIN_DECLS /** The opaque structure implementing `FILE`. Do not make any assumptions about its content. */ struct __sFILE { #if 0 /* disabled by -frewrite-includes */ #if defined(__LP64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 3 4 char __private[152]; #else # 40 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 3 4 char __private[84]; #endif # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/struct_file.h" 3 4 } __attribute__((aligned(sizeof(void*)))); __END_DECLS # 51 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 2 3 4 #endif # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 __BEGIN_DECLS typedef off_t fpos_t; typedef off64_t fpos64_t; struct __sFILE; typedef struct __sFILE FILE; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 extern FILE* stdin __INTRODUCED_IN(23); extern FILE* stdout __INTRODUCED_IN(23); extern FILE* stderr __INTRODUCED_IN(23); /* C99 and earlier plus current C++ standards say these must be macros. */ #define stdin stdin #define stdout stdout #define stderr stderr #else # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 /* Before M the actual symbols for stdin and friends had different names. */ extern FILE __sF[] __REMOVED_IN(23); #define stdin (&__sF[0]) #define stdout (&__sF[1]) #define stderr (&__sF[2]) #endif # 78 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 /* * The following three definitions are for ANSI C, which took them * from System V, which brilliantly took internal interface macros and * made them official arguments to setvbuf(), without renaming them. * Hence, these ugly _IOxxx names are *supposed* to appear in user code. * * Although numbered as their counterparts above, the implementation * does not rely on this. */ #define _IOFBF 0 /* setvbuf should set fully buffered */ #define _IOLBF 1 /* setvbuf should set line buffered */ #define _IONBF 2 /* setvbuf should set unbuffered */ #define BUFSIZ 1024 /* size of buffer used by setbuf */ #define EOF (-1) /* * FOPEN_MAX is a minimum maximum, and is the number of streams that * stdio can provide without attempting to allocate further resources * (which could fail). Do not use this for anything. */ #define FOPEN_MAX 20 #define FILENAME_MAX 4096 #define L_tmpnam 4096 #define TMP_MAX 308915776 void clearerr(FILE* __fp); int fclose(FILE* __fp); int feof(FILE* __fp); int ferror(FILE* __fp); int fflush(FILE* __fp); int fgetc(FILE* __fp); char* fgets(char* __buf, int __size, FILE* __fp); int fprintf(FILE* __fp , const char* __fmt, ...) __printflike(2, 3); int fputc(int __ch, FILE* __fp); int fputs(const char* __s, FILE* __fp); size_t fread(void* __buf, size_t __size, size_t __count, FILE* __fp); int fscanf(FILE* __fp, const char* __fmt, ...) __scanflike(2, 3); size_t fwrite(const void* __buf, size_t __size, size_t __count, FILE* __fp); int getc(FILE* __fp); int getchar(void); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 18 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 123 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 ssize_t getdelim(char** __line_ptr, size_t* __line_length_ptr, int __delimiter, FILE* __fp) __INTRODUCED_IN(18); ssize_t getline(char** __line_ptr, size_t* __line_length_ptr, FILE* __fp) __INTRODUCED_IN(18); #endif /* __ANDROID_API__ >= 18 */ # 126 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 void perror(const char* __msg); int printf(const char* __fmt, ...) __printflike(1, 2); int putc(int __ch, FILE* __fp); int putchar(int __ch); int puts(const char* __s); int remove(const char* __path); void rewind(FILE* __fp); int scanf(const char* __fmt, ...) __scanflike(1, 2); void setbuf(FILE* __fp, char* __buf); int setvbuf(FILE* __fp, char* __buf, int __mode, size_t __size); int sscanf(const char* __s, const char* __fmt, ...) __scanflike(2, 3); int ungetc(int __ch, FILE* __fp); int vfprintf(FILE* __fp, const char* __fmt, va_list __args) __printflike(2, 0); int vprintf(const char* __fp, va_list __args) __printflike(1, 0); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 144 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int dprintf(int __fd, const char* __fmt, ...) __printflike(2, 3) __INTRODUCED_IN(21); int vdprintf(int __fd, const char* __fmt, va_list __args) __printflike(2, 0) __INTRODUCED_IN(21); #else # 147 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 /* * Old versions of Android called these fdprintf and vfdprintf out of fears that the glibc names * would collide with user debug printfs. * * Allow users to just use dprintf and vfdprintf on any version by renaming those calls to their * legacy equivalents if needed. */ int dprintf(int __fd, const char* __fmt, ...) __RENAME(fdprintf) __printflike(2, 3); int vdprintf(int __fd, const char* __fmt, va_list __args) __RENAME(vfdprintf) __printflike(2, 0); #endif # 157 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ < 201112L) || \ (defined(__cplusplus) && __cplusplus <= 201103L) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 160 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 char* gets(char* __buf) __attribute__((deprecated("gets is unsafe, use fgets instead"))); #endif # 162 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int sprintf(char* __s, const char* __fmt, ...) __printflike(2, 3) __warnattr_strict("sprintf is often misused; please use snprintf"); int vsprintf(char* __s, const char* __fmt, va_list __args) __printflike(2, 0) __warnattr_strict("vsprintf is often misused; please use vsnprintf"); char* tmpnam(char* __s) __warnattr("tmpnam is unsafe, use mkstemp or tmpfile instead"); #define P_tmpdir "/tmp/" /* deprecated */ char* tempnam(const char* __dir, const char* __prefix) __warnattr("tempnam is unsafe, use mkstemp or tmpfile instead"); /** * [rename(2)](http://man7.org/linux/man-pages/man2/rename.2.html) changes * the name or location of a file. * * Returns 0 on success, and returns -1 and sets `errno` on failure. */ int rename(const char* __old_path, const char* __new_path); /** * [renameat(2)](http://man7.org/linux/man-pages/man2/renameat.2.html) changes * the name or location of a file, interpreting relative paths using an fd. * * Returns 0 on success, and returns -1 and sets `errno` on failure. */ int renameat(int __old_dir_fd, const char* __old_path, int __new_dir_fd, const char* __new_path); #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 189 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 /** * Flag for [renameat2(2)](http://man7.org/linux/man-pages/man2/renameat2.2.html) * to fail if the new path already exists. */ #define RENAME_NOREPLACE (1<<0) /** * Flag for [renameat2(2)](http://man7.org/linux/man-pages/man2/renameat2.2.html) * to atomically exchange the two paths. */ #define RENAME_EXCHANGE (1<<1) /** * Flag for [renameat2(2)](http://man7.org/linux/man-pages/man2/renameat2.2.html) * to create a union/overlay filesystem object. */ #define RENAME_WHITEOUT (1<<2) /** * [renameat2(2)](http://man7.org/linux/man-pages/man2/renameat2.2.html) changes * the name or location of a file, interpreting relative paths using an fd, * with optional `RENAME_` flags. * * Returns 0 on success, and returns -1 and sets `errno` on failure. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 30 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 217 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int renameat2(int __old_dir_fd, const char* __old_path, int __new_dir_fd, const char* __new_path, unsigned __flags) __INTRODUCED_IN(30); #endif /* __ANDROID_API__ >= 30 */ # 219 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #endif # 222 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fseek(FILE* __fp, long __offset, int __whence); long ftell(FILE* __fp); /* See https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md */ #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_FILE_OFFSET64) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 228 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 230 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fgetpos(FILE* __fp, fpos_t* __pos) __RENAME(fgetpos64) __INTRODUCED_IN(24); int fsetpos(FILE* __fp, const fpos_t* __pos) __RENAME(fsetpos64) __INTRODUCED_IN(24); int fseeko(FILE* __fp, off_t __offset, int __whence) __RENAME(fseeko64) __INTRODUCED_IN(24); off_t ftello(FILE* __fp) __RENAME(ftello64) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 235 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ # if defined(__USE_BSD) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 237 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 239 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* funopen(const void* __cookie, int (*__read_fn)(void*, char*, int), int (*__write_fn)(void*, const char*, int), fpos_t (*__seek_fn)(void*, fpos_t, int), int (*__close_fn)(void*)) __RENAME(funopen64) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 245 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # endif # 247 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #else # 248 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fgetpos(FILE* __fp, fpos_t* __pos); int fsetpos(FILE* __fp, const fpos_t* __pos); int fseeko(FILE* __fp, off_t __offset, int __whence); off_t ftello(FILE* __fp); #if 0 /* disabled by -frewrite-includes */ # if defined(__USE_BSD) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 253 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* funopen(const void* __cookie, int (*__read_fn)(void*, char*, int), int (*__write_fn)(void*, const char*, int), fpos_t (*__seek_fn)(void*, fpos_t, int), int (*__close_fn)(void*)); # endif # 259 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #endif # 260 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 262 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fgetpos64(FILE* __fp, fpos64_t* __pos) __INTRODUCED_IN(24); int fsetpos64(FILE* __fp, const fpos64_t* __pos) __INTRODUCED_IN(24); int fseeko64(FILE* __fp, off64_t __offset, int __whence) __INTRODUCED_IN(24); off64_t ftello64(FILE* __fp) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 267 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_BSD) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 269 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 271 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* funopen64(const void* __cookie, int (*__read_fn)(void*, char*, int), int (*__write_fn)(void*, const char*, int), fpos64_t (*__seek_fn)(void*, fpos64_t, int), int (*__close_fn)(void*)) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 277 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #endif # 279 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* fopen(const char* __path, const char* __mode); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 283 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* fopen64(const char* __path, const char* __mode) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 285 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* freopen(const char* __path, const char* __mode, FILE* __fp); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 289 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* freopen64(const char* __path, const char* __mode, FILE* __fp) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 291 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* tmpfile(void); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 295 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* tmpfile64(void) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 297 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int snprintf(char* __buf, size_t __size, const char* __fmt, ...) __printflike(3, 4); int vfscanf(FILE* __fp, const char* __fmt, va_list __args) __scanflike(2, 0); int vscanf(const char* __fmt , va_list __args) __scanflike(1, 0); int vsnprintf(char* __buf, size_t __size, const char* __fmt, va_list __args) __printflike(3, 0); int vsscanf(const char* __s, const char* __fmt, va_list __args) __scanflike(2, 0); #define L_ctermid 1024 /* size for ctermid() */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 26 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 308 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 char* ctermid(char* __buf) __INTRODUCED_IN(26); #endif /* __ANDROID_API__ >= 26 */ # 310 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* fdopen(int __fd, const char* __mode); int fileno(FILE* __fp); int pclose(FILE* __fp); FILE* popen(const char* __command, const char* __mode); void flockfile(FILE* __fp); int ftrylockfile(FILE* __fp); void funlockfile(FILE* __fp); int getc_unlocked(FILE* __fp); int getchar_unlocked(void); int putc_unlocked(int __ch, FILE* __fp); int putchar_unlocked(int __ch); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 326 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 FILE* fmemopen(void* __buf, size_t __size, const char* __mode) __INTRODUCED_IN(23); FILE* open_memstream(char** __ptr, size_t* __size_ptr) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 329 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_BSD) || defined(__BIONIC__) /* Historically bionic exposed these. */ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 332 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int asprintf(char** __s_ptr, const char* __fmt, ...) __printflike(2, 3); char* fgetln(FILE* __fp, size_t* __length_ptr); int fpurge(FILE* __fp); void setbuffer(FILE* __fp, char* __buf, int __size); int setlinebuf(FILE* __fp); int vasprintf(char** __s_ptr, const char* __fmt, va_list __args) __printflike(2, 0); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 340 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 void clearerr_unlocked(FILE* __fp) __INTRODUCED_IN(23); int feof_unlocked(FILE* __fp) __INTRODUCED_IN(23); int ferror_unlocked(FILE* __fp) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 344 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 347 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fileno_unlocked(FILE* __fp) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 349 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) #endif # 353 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_BSD) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 355 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 28 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 357 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fflush_unlocked(FILE* __fp) __INTRODUCED_IN(28); int fgetc_unlocked(FILE* __fp) __INTRODUCED_IN(28); int fputc_unlocked(int __ch, FILE* __fp) __INTRODUCED_IN(28); size_t fread_unlocked(void* __buf, size_t __size, size_t __count, FILE* __fp) __INTRODUCED_IN(28); size_t fwrite_unlocked(const void* __buf, size_t __size, size_t __count, FILE* __fp) __INTRODUCED_IN(28); #endif /* __ANDROID_API__ >= 28 */ # 363 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #endif # 365 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 367 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 28 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 369 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 int fputs_unlocked(const char* __s, FILE* __fp) __INTRODUCED_IN(28); char* fgets_unlocked(char* __buf, int __size, FILE* __fp) __INTRODUCED_IN(28); #endif /* __ANDROID_API__ >= 28 */ # 372 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #endif # 374 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 376 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 376 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 1 3 4 /* * Copyright (C) 2017 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _STDIO_H_ #error "Never include this file directly; instead, include " #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 char* __fgets_chk(char*, int, FILE*, size_t) __INTRODUCED_IN(17); #endif /* __ANDROID_API__ >= 17 */ # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 40 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 size_t __fread_chk(void*, size_t, size_t, FILE*, size_t) __INTRODUCED_IN(24); size_t __fwrite_chk(const void*, size_t, size_t, FILE*, size_t) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_FORTIFY) && !defined(__BIONIC_NO_STDIO_FORTIFY) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE __printflike(3, 0) int vsnprintf(char* const __pass_object_size dest, size_t size, const char* format, va_list ap) __diagnose_as_builtin(__builtin_vsnprintf, 1, 2, 3, 4) __overloadable { return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); } __BIONIC_FORTIFY_INLINE __printflike(2, 0) int vsprintf(char* const __pass_object_size dest, const char* format, va_list ap) __overloadable { return __builtin___vsprintf_chk(dest, 0, __bos(dest), format, ap); } #endif # 61 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 __BIONIC_ERROR_FUNCTION_VISIBILITY int sprintf(char* dest, const char* format) __overloadable __enable_if(__bos_unevaluated_lt(__bos(dest), __builtin_strlen(format)), "format string will always overflow destination buffer") __errorattr("format string will always overflow destination buffer"); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 70 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 __BIONIC_FORTIFY_VARIADIC __printflike(2, 3) int sprintf(char* const __pass_object_size dest, const char* format, ...) __overloadable { va_list va; va_start(va, format); int result = __builtin___vsprintf_chk(dest, 0, __bos(dest), format, va); va_end(va); return result; } /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_VARIADIC __printflike(3, 4) int snprintf(char* const __pass_object_size dest, size_t size, const char* format, ...) __diagnose_as_builtin(__builtin_snprintf, 1, 2, 3) __overloadable { va_list va; va_start(va, format); int result = __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, va); va_end(va); return result; } #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 #define __bos_trivially_ge_mul(bos_val, size, count) \ __bos_dynamic_check_impl_and(bos_val, >=, (size) * (count), \ !__unsafe_check_mul_overflow(size, count)) __BIONIC_FORTIFY_INLINE size_t fread(void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) __overloadable __clang_error_if(__unsafe_check_mul_overflow(size, count), "in call to 'fread', size * count overflows") __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), "in call to 'fread', size * count is too large for the given buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 size_t bos = __bos0(buf); if (!__bos_trivially_ge_mul(bos, size, count)) { return __fread_chk(buf, size, count, stream, bos); } #endif # 110 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 return __call_bypassing_fortify(fread)(buf, size, count, stream); } __BIONIC_FORTIFY_INLINE size_t fwrite(const void* const __pass_object_size0 buf, size_t size, size_t count, FILE* stream) __overloadable __clang_error_if(__unsafe_check_mul_overflow(size, count), "in call to 'fwrite', size * count overflows") __clang_error_if(__bos_unevaluated_lt(__bos0(buf), size * count), "in call to 'fwrite', size * count is too large for the given buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 121 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 size_t bos = __bos0(buf); if (!__bos_trivially_ge_mul(bos, size, count)) { return __fwrite_chk(buf, size, count, stream, bos); } #endif # 127 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 return __call_bypassing_fortify(fwrite)(buf, size, count, stream); } #undef __bos_trivially_ge_mul __BIONIC_FORTIFY_INLINE char* fgets(char* const __pass_object_size dest, int size, FILE* stream) __overloadable __clang_error_if(size < 0, "in call to 'fgets', size should not be negative") __clang_error_if(__bos_unevaluated_lt(__bos(dest), size), "in call to 'fgets', size is larger than the destination buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 138 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 size_t bos = __bos(dest); if (!__bos_dynamic_check_impl_and(bos, >=, (size_t)size, size >= 0)) { return __fgets_chk(dest, size, stream, bos); } #endif # 144 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 return __call_bypassing_fortify(fgets)(dest, size, stream); } #endif /* defined(__BIONIC_FORTIFY) */ # 148 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdio.h" 3 4 # 377 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 2 3 4 #endif # 378 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 __END_DECLS #endif # 382 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdio.h" 3 4 # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 2 3 4 __BEGIN_DECLS #define __BIONIC_ALLOC_SIZE(...) __attribute__((__alloc_size__(__VA_ARGS__))) /** * [malloc(3)](http://man7.org/linux/man-pages/man3/malloc.3.html) allocates * memory on the heap. * * Returns a pointer to the allocated memory on success and returns a null * pointer and sets `errno` on failure. */ void* malloc(size_t __byte_count) __mallocfunc __BIONIC_ALLOC_SIZE(1) __wur; /** * [calloc(3)](http://man7.org/linux/man-pages/man3/calloc.3.html) allocates * and clears memory on the heap. * * Returns a pointer to the allocated memory on success and returns a null * pointer and sets `errno` on failure. */ void* calloc(size_t __item_count, size_t __item_size) __mallocfunc __BIONIC_ALLOC_SIZE(1,2) __wur; /** * [realloc(3)](http://man7.org/linux/man-pages/man3/realloc.3.html) resizes * allocated memory on the heap. * * Returns a pointer (which may be different from `__ptr`) to the resized * memory on success and returns a null pointer and sets `errno` on failure. */ void* realloc(void* __ptr, size_t __byte_count) __BIONIC_ALLOC_SIZE(2) __wur; /** * [reallocarray(3)](http://man7.org/linux/man-pages/man3/realloc.3.html) resizes * allocated memory on the heap. * * Equivalent to `realloc(__ptr, __item_count * __item_size)` but fails if the * multiplication overflows. * * Returns a pointer (which may be different from `__ptr`) to the resized * memory on success and returns a null pointer and sets `errno` on failure. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 29 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 void* reallocarray(void* __ptr, size_t __item_count, size_t __item_size) __BIONIC_ALLOC_SIZE(2, 3) __wur __INTRODUCED_IN(29); #endif /* __ANDROID_API__ >= 29 */ # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 /** * [free(3)](http://man7.org/linux/man-pages/man3/free.3.html) deallocates * memory on the heap. */ void free(void* __ptr); /** * [memalign(3)](http://man7.org/linux/man-pages/man3/memalign.3.html) allocates * memory on the heap with the required alignment. * * Returns a pointer to the allocated memory on success and returns a null * pointer and sets `errno` on failure. * * See also posix_memalign(). */ void* memalign(size_t __alignment, size_t __byte_count) __mallocfunc __BIONIC_ALLOC_SIZE(2) __wur; /** * [malloc_usable_size(3)](http://man7.org/linux/man-pages/man3/malloc_usable_size.3.html) * returns the actual size of the given heap block. * * Available since API level 17. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 size_t malloc_usable_size(const void* __ptr) __INTRODUCED_IN(17); #endif /* __ANDROID_API__ >= 17 */ # 106 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 #define __MALLINFO_BODY \ /** Total number of non-mmapped bytes currently allocated from OS. */ \ size_t arena; \ /** Number of free chunks. */ \ size_t ordblks; \ /** (Unused.) */ \ size_t smblks; \ /** (Unused.) */ \ size_t hblks; \ /** Total number of bytes in mmapped regions. */ \ size_t hblkhd; \ /** Maximum total allocated space; greater than total if trimming has occurred. */ \ size_t usmblks; \ /** (Unused.) */ \ size_t fsmblks; \ /** Total allocated space (normal or mmapped.) */ \ size_t uordblks; \ /** Total free space. */ \ size_t fordblks; \ /** Upper bound on number of bytes releasable by a trim operation. */ \ size_t keepcost; #ifndef STRUCT_MALLINFO_DECLARED #define STRUCT_MALLINFO_DECLARED 1 struct mallinfo { __MALLINFO_BODY }; #endif # 134 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 /** * [mallinfo(3)](http://man7.org/linux/man-pages/man3/mallinfo.3.html) returns * information about the current state of the heap. Note that mallinfo() is * inherently unreliable and consider using malloc_info() instead. */ struct mallinfo mallinfo(void); /** * On Android the struct mallinfo and struct mallinfo2 are the same. */ struct mallinfo2 { __MALLINFO_BODY }; /** * [mallinfo2(3)](http://man7.org/linux/man-pages/man3/mallinfo2.3.html) returns * information about the current state of the heap. Note that mallinfo2() is * inherently unreliable and consider using malloc_info() instead. */ struct mallinfo2 mallinfo2(void) __RENAME(mallinfo); /** * [malloc_info(3)](http://man7.org/linux/man-pages/man3/malloc_info.3.html) * writes information about the current state of the heap to the given stream. * * The XML structure for malloc_info() is as follows: * ``` * * * INT * INT * INT * INT * * INT * INT * INT * * * * * * ``` * * Available since API level 23. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 181 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 int malloc_info(int __must_be_zero, FILE* __fp) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 183 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 /** * mallopt() option to set the decay time. Valid values are 0 and 1. * * Available since API level 27. */ #define M_DECAY_TIME (-100) /** * mallopt() option to immediately purge any memory not in use. This * will release the memory back to the kernel. The value is ignored. * * Available since API level 28. */ #define M_PURGE (-101) /** * mallopt() option to tune the allocator's choice of memory tags to * make it more likely that a certain class of memory errors will be * detected. This is only relevant if MTE is enabled in this process * and ignored otherwise. The value argument should be one of the * M_MEMTAG_TUNING_* flags. * NOTE: This is only available in scudo. * * Available since API level 31. */ #define M_MEMTAG_TUNING (-102) /** * When passed as a value of M_MEMTAG_TUNING mallopt() call, enables * deterministic detection of linear buffer overflow and underflow * bugs by assigning distinct tag values to adjacent allocations. This * mode has a slightly reduced chance to detect use-after-free bugs * because only half of the possible tag values are available for each * memory location. * * Please keep in mind that MTE can not detect overflow within the * same tag granule (16-byte aligned chunk), and can miss small * overflows even in this mode. Such overflow can not be the cause of * a memory corruption, because the memory within one granule is never * used for multiple allocations. */ #define M_MEMTAG_TUNING_BUFFER_OVERFLOW 0 /** * When passed as a value of M_MEMTAG_TUNING mallopt() call, enables * independently randomized tags for uniform ~93% probability of * detecting both spatial (buffer overflow) and temporal (use after * free) bugs. */ #define M_MEMTAG_TUNING_UAF 1 /** * mallopt() option for per-thread memory initialization tuning. * The value argument should be one of: * 1: Disable automatic heap initialization and, where possible, memory tagging, * on this thread. * 0: Normal behavior. * * Available since API level 31. */ #define M_THREAD_DISABLE_MEM_INIT (-103) /** * mallopt() option to set the maximum number of items in the secondary * cache of the scudo allocator. * * Available since API level 31. */ #define M_CACHE_COUNT_MAX (-200) /** * mallopt() option to set the maximum size in bytes of a cacheable item in * the secondary cache of the scudo allocator. * * Available since API level 31. */ #define M_CACHE_SIZE_MAX (-201) /** * mallopt() option to increase the maximum number of shared thread-specific * data structures that can be created. This number cannot be decreased, * only increased and only applies to the scudo allocator. * * Available since API level 31. */ #define M_TSDS_COUNT_MAX (-202) /** * mallopt() option to decide whether heap memory is zero-initialized on * allocation across the whole process. May be called at any time, including * when multiple threads are running. An argument of zero indicates memory * should not be zero-initialized, any other value indicates to initialize heap * memory to zero. * * Note that this memory mitigation is only implemented in scudo and therefore * this will have no effect when using another allocator (such as jemalloc on * Android Go devices). * * Available since API level 31. */ #define M_BIONIC_ZERO_INIT (-203) /** * mallopt() option to change the heap tagging state. May be called at any * time, including when multiple threads are running. * The value must be one of the M_HEAP_TAGGING_LEVEL_ constants. * NOTE: This is only available in scudo. * * Available since API level 31. */ #define M_BIONIC_SET_HEAP_TAGGING_LEVEL (-204) /** * Constants for use with the M_BIONIC_SET_HEAP_TAGGING_LEVEL mallopt() option. */ enum HeapTaggingLevel { /** * Disable heap tagging and memory tag checks (if supported). * Heap tagging may not be re-enabled after being disabled. */ M_HEAP_TAGGING_LEVEL_NONE = 0, #define M_HEAP_TAGGING_LEVEL_NONE M_HEAP_TAGGING_LEVEL_NONE /** * Address-only tagging. Heap pointers have a non-zero tag in the * most significant ("top") byte which is checked in free(). Memory * accesses ignore the tag using arm64's Top Byte Ignore (TBI) feature. */ M_HEAP_TAGGING_LEVEL_TBI = 1, #define M_HEAP_TAGGING_LEVEL_TBI M_HEAP_TAGGING_LEVEL_TBI /** * Enable heap tagging and asynchronous memory tag checks (if supported). * Disable stack trace collection. */ M_HEAP_TAGGING_LEVEL_ASYNC = 2, #define M_HEAP_TAGGING_LEVEL_ASYNC M_HEAP_TAGGING_LEVEL_ASYNC /** * Enable heap tagging and synchronous memory tag checks (if supported). * Enable stack trace collection. */ M_HEAP_TAGGING_LEVEL_SYNC = 3, #define M_HEAP_TAGGING_LEVEL_SYNC M_HEAP_TAGGING_LEVEL_SYNC }; /** * [mallopt(3)](http://man7.org/linux/man-pages/man3/mallopt.3.html) modifies * heap behavior. Values of `__option` are the `M_` constants from this header. * * Returns 1 on success, 0 on error. * * Available since API level 26. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 26 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 335 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 int mallopt(int __option, int __value) __INTRODUCED_IN(26); #endif /* __ANDROID_API__ >= 26 */ # 337 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 /** * [__malloc_hook(3)](http://man7.org/linux/man-pages/man3/__malloc_hook.3.html) * is called to implement malloc(). By default this points to the system's * implementation. * * Available since API level 28. * * See also: [extra documentation](https://android.googlesource.com/platform/bionic/+/master/libc/malloc_hooks/README.md) */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 28 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 350 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 extern void* (*volatile __malloc_hook)(size_t __byte_count, const void* __caller) __INTRODUCED_IN(28); /** * [__realloc_hook(3)](http://man7.org/linux/man-pages/man3/__realloc_hook.3.html) * is called to implement realloc(). By default this points to the system's * implementation. * * Available since API level 28. * * See also: [extra documentation](https://android.googlesource.com/platform/bionic/+/master/libc/malloc_hooks/README.md) */ extern void* (*volatile __realloc_hook)(void* __ptr, size_t __byte_count, const void* __caller) __INTRODUCED_IN(28); /** * [__free_hook(3)](http://man7.org/linux/man-pages/man3/__free_hook.3.html) * is called to implement free(). By default this points to the system's * implementation. * * Available since API level 28. * * See also: [extra documentation](https://android.googlesource.com/platform/bionic/+/master/libc/malloc_hooks/README.md) */ extern void (*volatile __free_hook)(void* __ptr, const void* __caller) __INTRODUCED_IN(28); /** * [__memalign_hook(3)](http://man7.org/linux/man-pages/man3/__memalign_hook.3.html) * is called to implement memalign(). By default this points to the system's * implementation. * * Available since API level 28. * * See also: [extra documentation](https://android.googlesource.com/platform/bionic/+/master/libc/malloc_hooks/README.md) */ extern void* (*volatile __memalign_hook)(size_t __alignment, size_t __byte_count, const void* __caller) __INTRODUCED_IN(28); #endif /* __ANDROID_API__ >= 28 */ # 385 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/malloc.h" 3 4 __END_DECLS # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 1 3 4 /*===---- stddef.h - Basic type definitions --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 13 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ !defined(__need_wchar_t) && !defined(__need_NULL) && \ !defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define miscellaneous pieces when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __STDDEF_H #endif # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __need_ptrdiff_t #define __need_size_t #define __need_wchar_t #define __need_NULL #define __need_STDDEF_H_misc /* __need_wint_t is intentionally not defined here. */ #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_ptrdiff_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTRDIFF_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define ptrdiff_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _PTRDIFF_T #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_ptrdiff_t #endif /* defined(__need_ptrdiff_t) */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_size_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_SIZE_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define size_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _SIZE_T #endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ size_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_size_t #endif /*defined(__need_size_t) */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is * enabled. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ !defined(_RSIZE_T)) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define rsize_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _RSIZE_T #endif # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ rsize_t; #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif /* defined(__need_STDDEF_H_misc) */ # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wchar_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifndef __cplusplus /* Always define wchar_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WCHAR_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T_DEFINED #endif # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WCHAR_TYPE__ wchar_t; #endif # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wchar_t #endif /* defined(__need_wchar_t) */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_NULL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 81 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef NULL #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__MINGW32__) && !defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL __null # else # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL 0 # endif # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #else # 89 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL ((void*)0) #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 namespace std { typedef decltype(nullptr) nullptr_t; } using ::std::nullptr_t; #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_NULL #endif /* defined(__need_NULL) */ # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include "__stddef_max_align_t.h" #endif /* expanded by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define offsetof(t, d) __builtin_offsetof(t, d) #undef __need_STDDEF_H_misc #endif /* defined(__need_STDDEF_H_misc) */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define wint_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WINT_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WINT_T #endif # 116 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WINT_TYPE__ wint_t; #endif # 118 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wint_t #endif /* __need_wint_t */ # 120 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/xlocale.h" 1 3 4 /* * Copyright (C) 2014 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/xlocale.h" 3 4 /** * @file xlocale.h * @brief `locale_t` definition. * * Most users will want `` instead. `` is used by the C * library itself to export the `locale_t` type without exporting the * `` functions in other headers that export locale-sensitive * functions (such as ``). */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/xlocale.h" 3 4 # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/xlocale.h" 3 4 /* If we just use void* in the typedef, the compiler exposes that in error messages. */ struct __locale_t; /** * The `locale_t` type that represents a locale. */ typedef struct __locale_t* locale_t; # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 __BEGIN_DECLS #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 __noreturn void abort(void) __attribute__((__nomerge__)); __noreturn void exit(int __status); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 __noreturn void _Exit(int __status) __INTRODUCED_IN(21); #else # 49 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 __noreturn void _Exit(int) __RENAME(_exit); #endif # 51 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int atexit(void (*__fn)(void)); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int at_quick_exit(void (*__fn)(void)) __INTRODUCED_IN(21); void quick_exit(int __status) __noreturn __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 59 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 char* getenv(const char* __name); int putenv(char* __assignment); int setenv(const char* __name, const char* __value, int __overwrite); int unsetenv(const char* __name); int clearenv(void); char* mkdtemp(char* __template); char* mktemp(char* __template) __attribute__((deprecated("mktemp is unsafe, use mkstemp or tmpfile instead"))); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 72 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int mkostemp64(char* __template, int __flags) __INTRODUCED_IN(23); int mkostemp(char* __template, int __flags) __INTRODUCED_IN(23); int mkostemps64(char* __template, int __suffix_length, int __flags) __INTRODUCED_IN(23); int mkostemps(char* __template, int __suffix_length, int __flags) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 80 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int mkstemp64(char* __template) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 82 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int mkstemp(char* __template); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int mkstemps64(char* __template, int __flags) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int mkstemps(char* __template, int __flags); long strtol(const char* __s, char** __end_ptr, int __base); long long strtoll(const char* __s, char** __end_ptr, int __base); unsigned long strtoul(const char* __s, char** __end_ptr, int __base); unsigned long long strtoull(const char* __s, char** __end_ptr, int __base); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int posix_memalign(void** __memptr, size_t __alignment, size_t __size) __INTRODUCED_IN(17); #endif /* __ANDROID_API__ >= 17 */ # 100 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 28 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 void* aligned_alloc(size_t __alignment, size_t __size) __INTRODUCED_IN(28); #endif /* __ANDROID_API__ >= 28 */ # 106 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 double strtod(const char* __s, char** __end_ptr); long double strtold(const char* __s, char** __end_ptr) __RENAME_LDBL(strtod, 3, 21); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 26 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 unsigned long strtoul_l(const char* __s, char** __end_ptr, int __base, locale_t __l) __INTRODUCED_IN(26); #endif /* __ANDROID_API__ >= 26 */ # 115 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int atoi(const char* __s) __attribute_pure__; long atol(const char* __s) __attribute_pure__; long long atoll(const char* __s) __attribute_pure__; __wur char* realpath(const char* __path, char* __resolved); int system(const char* __command); void* bsearch(const void* __key, const void* __base, size_t __nmemb, size_t __size, int (*__comparator)(const void* __lhs, const void* __rhs)); void qsort(void* __base, size_t __nmemb, size_t __size, int (*__comparator)(const void* __lhs, const void* __rhs)); uint32_t arc4random(void); uint32_t arc4random_uniform(uint32_t __upper_bound); void arc4random_buf(void* __buf, size_t __n); #define RAND_MAX 0x7fffffff #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 136 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int rand_r(unsigned int* __seed_ptr) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 138 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 double drand48(void); double erand48(unsigned short __xsubi[3]); long jrand48(unsigned short __xsubi[3]); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 145 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 void lcong48(unsigned short __param[7]) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 147 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 long lrand48(void); long mrand48(void); long nrand48(unsigned short __xsubi[3]); unsigned short* seed48(unsigned short __seed16v[3]); void srand48(long __seed); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 156 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 char* initstate(unsigned int __seed, char* __state, size_t __n) __INTRODUCED_IN(21); char* setstate(char* __state) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 159 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int getpt(void); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 164 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int posix_openpt(int __flags) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 166 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 char* ptsname(int __fd); int ptsname_r(int __fd, char* __buf, size_t __n); int unlockpt(int __fd); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 26 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 173 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int getsubopt(char** __option, char* const* __tokens, char** __value_ptr) __INTRODUCED_IN(26); #endif /* __ANDROID_API__ >= 26 */ # 175 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; div_t div(int __numerator, int __denominator) __attribute_const__; typedef struct { long int quot; long int rem; } ldiv_t; ldiv_t ldiv(long __numerator, long __denominator) __attribute_const__; typedef struct { long long int quot; long long int rem; } lldiv_t; lldiv_t lldiv(long long __numerator, long long __denominator) __attribute_const__; /** * [getloadavg(3)](http://man7.org/linux/man-pages/man3/getloadavg.3.html) queries the * number of runnable processes averaged over time. The Linux kernel supports averages * over the last 1, 5, and 15 minutes. * * Returns the number of samples written to `__averages` (at most 3), and returns -1 on failure. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 29 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 207 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int getloadavg(double __averages[], int __n) __INTRODUCED_IN(29); #endif /* __ANDROID_API__ >= 29 */ # 209 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 /* BSD compatibility. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 214 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 const char* getprogname(void) __INTRODUCED_IN(21); void setprogname(const char* __name) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 217 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int mblen(const char* __s, size_t __n) __INTRODUCED_IN_NO_GUARD_FOR_NDK(26); size_t mbstowcs(wchar_t* __dst, const char* __src, size_t __n) __INTRODUCED_IN_NO_GUARD_FOR_NDK(21); int mbtowc(wchar_t* __wc_ptr, const char* __s, size_t __n) __INTRODUCED_IN_NO_GUARD_FOR_NDK(21); int wctomb(char* __dst, wchar_t __wc) __INTRODUCED_IN_NO_GUARD_FOR_NDK(21); size_t wcstombs(char* __dst, const wchar_t* __src, size_t __n) __INTRODUCED_IN_NO_GUARD_FOR_NDK(21); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 227 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 size_t __ctype_get_mb_cur_max(void) __INTRODUCED_IN(21); #define MB_CUR_MAX __ctype_get_mb_cur_max() #else # 230 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 /* * Pre-L we didn't have any locale support and so we were always the POSIX * locale. POSIX specifies that MB_CUR_MAX for the POSIX locale is 1: * http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html */ #define MB_CUR_MAX 1 #endif # 237 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 239 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 239 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdlib.h" 1 3 4 /* * Copyright (C) 2017 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _STDLIB_H #error "Never include this file directly; instead, include " #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_FORTIFY) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdlib.h" 3 4 /* PATH_MAX is unavailable without polluting the namespace, but it's always 4096 on Linux */ #define __PATH_MAX 4096 char* realpath(const char* path, char* resolved) __clang_error_if(!path, "'realpath': NULL path is never correct; flipped arguments?") __clang_error_if(__bos_unevaluated_lt(__bos(resolved), __PATH_MAX), "'realpath' output parameter must be NULL or a pointer to a buffer " "with >= PATH_MAX bytes"); /* No need for a definition; the only issues we can catch are at compile-time. */ #undef __PATH_MAX #endif /* defined(__BIONIC_FORTIFY) */ # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/stdlib.h" 3 4 # 240 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 #endif # 241 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 19 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 243 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 int abs(int __x) __attribute_const__ __INTRODUCED_IN(19); long labs(long __x) __attribute_const__ __INTRODUCED_IN(19); long long llabs(long long __x) __attribute_const__ __INTRODUCED_IN(19); #else # 247 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 // Implemented as static inlines before 19. #endif # 249 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 251 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 float strtof(const char* __s, char** __end_ptr) __INTRODUCED_IN(21); double atof(const char* __s) __attribute_pure__ __INTRODUCED_IN(21); int rand(void) __INTRODUCED_IN(21); void srand(unsigned int __seed) __INTRODUCED_IN(21); long random(void) __INTRODUCED_IN(21); void srandom(unsigned int __seed) __INTRODUCED_IN(21); int grantpt(int __fd) __INTRODUCED_IN(21); long long strtoll_l(const char* __s, char** __end_ptr, int __base, locale_t __l) __INTRODUCED_IN(21); unsigned long long strtoull_l(const char* __s, char** __end_ptr, int __base, locale_t __l) __INTRODUCED_IN(21); long double strtold_l(const char* __s, char** __end_ptr, locale_t __l) __INTRODUCED_IN(21); #else # 263 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 // Implemented as static inlines before 21. #endif # 265 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 26 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 267 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 double strtod_l(const char* __s, char** __end_ptr, locale_t __l) __INTRODUCED_IN(26); float strtof_l(const char* __s, char** __end_ptr, locale_t __l) __INTRODUCED_IN(26); long strtol_l(const char* __s, char** __end_ptr, int, locale_t __l) __INTRODUCED_IN(26); #else # 271 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 // Implemented as static inlines before 26. #endif # 273 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 __END_DECLS #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 276 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 1 3 4 /* * Copyright (C) 2015 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < 19 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 __BEGIN_DECLS static __inline int abs(int __n) { return (__n < 0) ? -__n : __n; } static __inline long labs(long __n) { return (__n < 0L) ? -__n : __n; } static __inline long long llabs(long long __n) { return (__n < 0LL) ? -__n : __n; } __END_DECLS #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < 21 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 53 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 3 4 /** * @file errno.h * @brief Standard C error handling. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/errno.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/errno.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/errno.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/errno.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/errno.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _ASM_GENERIC_ERRNO_H #define _ASM_GENERIC_ERRNO_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/errno.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/errno-base.h" 1 3 4 /**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call into the kernel available to libc. It contains only constants, *** structures, and macros generated from the original header, and thus, *** contains no copyrightable information. *** *** To edit the content of this header, modify the corresponding *** source file (e.g. under external/kernel-headers/original/) then *** run bionic/libc/kernel/tools/update_all.py *** *** Any manual change here will be lost the next time this script will *** be run. You've been warned! *** **************************************************************************** ****************************************************************************/ #ifndef _ASM_GENERIC_ERRNO_BASE_H #define _ASM_GENERIC_ERRNO_BASE_H #define EPERM 1 #define ENOENT 2 #define ESRCH 3 #define EINTR 4 #define EIO 5 #define ENXIO 6 #define E2BIG 7 #define ENOEXEC 8 #define EBADF 9 #define ECHILD 10 #define EAGAIN 11 #define ENOMEM 12 #define EACCES 13 #define EFAULT 14 #define ENOTBLK 15 #define EBUSY 16 #define EEXIST 17 #define EXDEV 18 #define ENODEV 19 #define ENOTDIR 20 #define EISDIR 21 #define EINVAL 22 #define ENFILE 23 #define EMFILE 24 #define ENOTTY 25 #define ETXTBSY 26 #define EFBIG 27 #define ENOSPC 28 #define ESPIPE 29 #define EROFS 30 #define EMLINK 31 #define EPIPE 32 #define EDOM 33 #define ERANGE 34 #endif # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/errno-base.h" 3 4 # 22 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/errno.h" 2 3 4 #define EDEADLK 35 #define ENAMETOOLONG 36 #define ENOLCK 37 #define ENOSYS 38 #define ENOTEMPTY 39 #define ELOOP 40 #define EWOULDBLOCK EAGAIN #define ENOMSG 42 #define EIDRM 43 #define ECHRNG 44 #define EL2NSYNC 45 #define EL3HLT 46 #define EL3RST 47 #define ELNRNG 48 #define EUNATCH 49 #define ENOCSI 50 #define EL2HLT 51 #define EBADE 52 #define EBADR 53 #define EXFULL 54 #define ENOANO 55 #define EBADRQC 56 #define EBADSLT 57 #define EDEADLOCK EDEADLK #define EBFONT 59 #define ENOSTR 60 #define ENODATA 61 #define ETIME 62 #define ENOSR 63 #define ENONET 64 #define ENOPKG 65 #define EREMOTE 66 #define ENOLINK 67 #define EADV 68 #define ESRMNT 69 #define ECOMM 70 #define EPROTO 71 #define EMULTIHOP 72 #define EDOTDOT 73 #define EBADMSG 74 #define EOVERFLOW 75 #define ENOTUNIQ 76 #define EBADFD 77 #define EREMCHG 78 #define ELIBACC 79 #define ELIBBAD 80 #define ELIBSCN 81 #define ELIBMAX 82 #define ELIBEXEC 83 #define EILSEQ 84 #define ERESTART 85 #define ESTRPIPE 86 #define EUSERS 87 #define ENOTSOCK 88 #define EDESTADDRREQ 89 #define EMSGSIZE 90 #define EPROTOTYPE 91 #define ENOPROTOOPT 92 #define EPROTONOSUPPORT 93 #define ESOCKTNOSUPPORT 94 #define EOPNOTSUPP 95 #define EPFNOSUPPORT 96 #define EAFNOSUPPORT 97 #define EADDRINUSE 98 #define EADDRNOTAVAIL 99 #define ENETDOWN 100 #define ENETUNREACH 101 #define ENETRESET 102 #define ECONNABORTED 103 #define ECONNRESET 104 #define ENOBUFS 105 #define EISCONN 106 #define ENOTCONN 107 #define ESHUTDOWN 108 #define ETOOMANYREFS 109 #define ETIMEDOUT 110 #define ECONNREFUSED 111 #define EHOSTDOWN 112 #define EHOSTUNREACH 113 #define EALREADY 114 #define EINPROGRESS 115 #define ESTALE 116 #define EUCLEAN 117 #define ENOTNAM 118 #define ENAVAIL 119 #define EISNAM 120 #define EREMOTEIO 121 #define EDQUOT 122 #define ENOMEDIUM 123 #define EMEDIUMTYPE 124 #define ECANCELED 125 #define ENOKEY 126 #define EKEYEXPIRED 127 #define EKEYREVOKED 128 #define EKEYREJECTED 129 #define EOWNERDEAD 130 #define ENOTRECOVERABLE 131 #define ERFKILL 132 #define EHWPOISON 133 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/asm-generic/errno.h" 3 4 # 20 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi/asm/errno.h" 2 3 4 # 20 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/linux/errno.h" 2 3 4 # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 2 3 4 __BEGIN_DECLS #ifndef ENOTSUP /** On Linux, ENOTSUP and EOPNOTSUPP are the same despite POSIX saying they should be distinct. */ #define ENOTSUP EOPNOTSUPP #endif # 45 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 3 4 /** * Returns the address of the calling thread's `errno` storage. * Non-portable and should not be used directly. Use `errno` instead. * * @private */ int* __errno(void) __attribute_const__; /** * [errno(3)](http://man7.org/linux/man-pages/man3/errno.3.html) is the last error on the calling * thread. */ #define errno (*__errno()) __END_DECLS #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 1 3 4 /* * Copyright (C) 2015 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < 21 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 __BEGIN_DECLS static __inline int __attribute__((deprecated)) __set_errno(int n) { errno = n; return -1; } __END_DECLS #endif # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_errno_inlines.h" 3 4 # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h" 2 3 4 # 54 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 54 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 1 3 4 /*===---- float.h - Characteristics of floating point types ----------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #ifndef __CLANG_FLOAT_H #define __CLANG_FLOAT_H /* If we're on MinGW, fall back to the system's float.h, which might have * additional definitions provided for Windows. * For more details see http://msdn.microsoft.com/en-us/library/y0ybw9fy.aspx * * Also fall back on Darwin and AIX to allow additional definitions and * implementation-defined values. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__APPLE__) || defined(__MINGW32__) || defined(_MSC_VER) || \ defined(_AIX)) && \ __STDC_HOSTED__ && __has_include_next() #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 23 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 /* Prior to Apple's 10.7 SDK, float.h SDK header used to apply an extra level * of #include_next to keep Metrowerks compilers happy. Avoid this * extra indirection. */ #ifdef __APPLE__ #define _FLOAT_H_ #endif # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 #if 0 /* expanded by -frewrite-includes */ # include_next #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 /* Undefine anything that we'll be redefining below. */ # undef FLT_EVAL_METHOD # undef FLT_ROUNDS # undef FLT_RADIX # undef FLT_MANT_DIG # undef DBL_MANT_DIG # undef LDBL_MANT_DIG #if 0 /* disabled by -frewrite-includes */ # if __STDC_VERSION__ >= 199901L || !defined(__STRICT_ANSI__) || \ __cplusplus >= 201103L || \ (__STDC_HOSTED__ && defined(_AIX) && defined(_ALL_SOURCE)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # undef DECIMAL_DIG # endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # undef FLT_DIG # undef DBL_DIG # undef LDBL_DIG # undef FLT_MIN_EXP # undef DBL_MIN_EXP # undef LDBL_MIN_EXP # undef FLT_MIN_10_EXP # undef DBL_MIN_10_EXP # undef LDBL_MIN_10_EXP # undef FLT_MAX_EXP # undef DBL_MAX_EXP # undef LDBL_MAX_EXP # undef FLT_MAX_10_EXP # undef DBL_MAX_10_EXP # undef LDBL_MAX_10_EXP # undef FLT_MAX # undef DBL_MAX # undef LDBL_MAX # undef FLT_EPSILON # undef DBL_EPSILON # undef LDBL_EPSILON # undef FLT_MIN # undef DBL_MIN # undef LDBL_MIN #if 0 /* disabled by -frewrite-includes */ # if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) || \ __cplusplus >= 201703L || \ (__STDC_HOSTED__ && defined(_AIX) && defined(_ALL_SOURCE)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # undef FLT_TRUE_MIN # undef DBL_TRUE_MIN # undef LDBL_TRUE_MIN # undef FLT_DECIMAL_DIG # undef DBL_DECIMAL_DIG # undef LDBL_DECIMAL_DIG # undef FLT_HAS_SUBNORM # undef DBL_HAS_SUBNORM # undef LDBL_HAS_SUBNORM # endif # 83 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 #endif # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 /* Characteristics of floating point types, C99 5.2.4.2.2 */ #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ #define FLT_ROUNDS (__builtin_flt_rounds()) #define FLT_RADIX __FLT_RADIX__ #define FLT_MANT_DIG __FLT_MANT_DIG__ #define DBL_MANT_DIG __DBL_MANT_DIG__ #define LDBL_MANT_DIG __LDBL_MANT_DIG__ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 199901L || !defined(__STRICT_ANSI__) || \ __cplusplus >= 201103L || \ (__STDC_HOSTED__ && defined(_AIX) && defined(_ALL_SOURCE)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # define DECIMAL_DIG __DECIMAL_DIG__ #endif # 100 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 #define FLT_DIG __FLT_DIG__ #define DBL_DIG __DBL_DIG__ #define LDBL_DIG __LDBL_DIG__ #define FLT_MIN_EXP __FLT_MIN_EXP__ #define DBL_MIN_EXP __DBL_MIN_EXP__ #define LDBL_MIN_EXP __LDBL_MIN_EXP__ #define FLT_MIN_10_EXP __FLT_MIN_10_EXP__ #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__ #define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__ #define FLT_MAX_EXP __FLT_MAX_EXP__ #define DBL_MAX_EXP __DBL_MAX_EXP__ #define LDBL_MAX_EXP __LDBL_MAX_EXP__ #define FLT_MAX_10_EXP __FLT_MAX_10_EXP__ #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__ #define FLT_MAX __FLT_MAX__ #define DBL_MAX __DBL_MAX__ #define LDBL_MAX __LDBL_MAX__ #define FLT_EPSILON __FLT_EPSILON__ #define DBL_EPSILON __DBL_EPSILON__ #define LDBL_EPSILON __LDBL_EPSILON__ #define FLT_MIN __FLT_MIN__ #define DBL_MIN __DBL_MIN__ #define LDBL_MIN __LDBL_MIN__ #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) || \ __cplusplus >= 201703L || \ (__STDC_HOSTED__ && defined(_AIX) && defined(_ALL_SOURCE)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 136 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # define FLT_TRUE_MIN __FLT_DENORM_MIN__ # define DBL_TRUE_MIN __DBL_DENORM_MIN__ # define LDBL_TRUE_MIN __LDBL_DENORM_MIN__ # define FLT_DECIMAL_DIG __FLT_DECIMAL_DIG__ # define DBL_DECIMAL_DIG __DBL_DECIMAL_DIG__ # define LDBL_DECIMAL_DIG __LDBL_DECIMAL_DIG__ # define FLT_HAS_SUBNORM __FLT_HAS_DENORM__ # define DBL_HAS_SUBNORM __DBL_HAS_DENORM__ # define LDBL_HAS_SUBNORM __LDBL_HAS_DENORM__ #endif # 146 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 #ifdef __STDC_WANT_IEC_60559_TYPES_EXT__ # define FLT16_MANT_DIG __FLT16_MANT_DIG__ # define FLT16_DECIMAL_DIG __FLT16_DECIMAL_DIG__ # define FLT16_DIG __FLT16_DIG__ # define FLT16_MIN_EXP __FLT16_MIN_EXP__ # define FLT16_MIN_10_EXP __FLT16_MIN_10_EXP__ # define FLT16_MAX_EXP __FLT16_MAX_EXP__ # define FLT16_MAX_10_EXP __FLT16_MAX_10_EXP__ # define FLT16_MAX __FLT16_MAX__ # define FLT16_EPSILON __FLT16_EPSILON__ # define FLT16_MIN __FLT16_MIN__ # define FLT16_TRUE_MIN __FLT16_TRUE_MIN__ #endif /* __STDC_WANT_IEC_60559_TYPES_EXT__ */ # 160 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 #endif /* __CLANG_FLOAT_H */ # 162 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/float.h" 3 4 # 55 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 55 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 __BEGIN_DECLS static __inline float strtof(const char* nptr, char** endptr) { // N.B. Double-rounding makes this function incorrect for some inputs. double d = strtod(nptr, endptr); if (__builtin_isfinite(d) && __builtin_fabs(d) > FLT_MAX) { errno = ERANGE; return __builtin_copysign(__builtin_huge_valf(), d); } return __BIONIC_CAST(static_cast, float, d); } static __inline double atof(const char *nptr) { return (strtod(nptr, NULL)); } static __inline int rand(void) { return (int)lrand48(); } static __inline void srand(unsigned int __s) { srand48(__s); } static __inline long random(void) { return lrand48(); } static __inline void srandom(unsigned int __s) { srand48(__s); } static __inline int grantpt(int __fd __attribute((unused))) { return 0; /* devpts does this all for us! */ } __END_DECLS #endif # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < 26 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 90 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 92 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 92 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 __BEGIN_DECLS static __inline double strtod_l(const char* __s, char** __end_ptr, locale_t __l) { return strtod(__s, __end_ptr); } static __inline float strtof_l(const char* __s, char** __end_ptr, locale_t __l) { return strtof(__s, __end_ptr); } static __inline long strtol_l(const char* __s, char** __end_ptr, int __base, locale_t __l) { return strtol(__s, __end_ptr, __base); } __END_DECLS #endif # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/android/legacy_stdlib_inlines.h" 3 4 # 277 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 2 3 4 #endif /* _STDLIB_H */ # 279 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h" 3 4 # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h" 2 3 __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ < __ANDROID_API_L__ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h" 3 long double strtold_l(const char*, char**, locale_t); long long strtoll_l(const char*, char**, int, locale_t); unsigned long long strtoull_l(const char*, char**, int, locale_t); int mbtowc(wchar_t*, const char*, size_t); int at_quick_exit(void (*)(void)); void quick_exit(int) __noreturn; #endif # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h" 3 __END_DECLS # 47 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/memory.h" 1 3 4 #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 2 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/memory.h" 3 4 /** * @file memory.h * @brief Historical alternative to ``. * * New code should use `` directly. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 10 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/memory.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 1 3 4 /* * Copyright (C) 2008 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _STRING_H #define _STRING_H #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 1 3 4 /*===---- stddef.h - Basic type definitions --------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===-----------------------------------------------------------------------=== */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ defined(__need_size_t) || defined(__need_wchar_t) || \ defined(__need_NULL) || defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 13 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ !defined(__need_wchar_t) && !defined(__need_NULL) && \ !defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 17 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define miscellaneous pieces when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 19 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __STDDEF_H #endif # 21 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define __need_ptrdiff_t #define __need_size_t #define __need_wchar_t #define __need_NULL #define __need_STDDEF_H_misc /* __need_wint_t is intentionally not defined here. */ #endif # 28 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_ptrdiff_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_PTRDIFF_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define ptrdiff_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _PTRDIFF_T #endif # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_ptrdiff_t #endif /* defined(__need_ptrdiff_t) */ # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_size_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_SIZE_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define size_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _SIZE_T #endif # 46 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ size_t; #endif # 48 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_size_t #endif /*defined(__need_size_t) */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is * enabled. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ !defined(_RSIZE_T)) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define rsize_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _RSIZE_T #endif # 60 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __SIZE_TYPE__ rsize_t; #endif # 62 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif /* defined(__need_STDDEF_H_misc) */ # 63 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wchar_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifndef __cplusplus /* Always define wchar_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WCHAR_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 69 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 71 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WCHAR_T_DEFINED #endif # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WCHAR_TYPE__ wchar_t; #endif # 76 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wchar_t #endif /* defined(__need_wchar_t) */ # 79 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_NULL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 81 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef NULL #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ # if !defined(__MINGW32__) && !defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL __null # else # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL 0 # endif # 88 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #else # 89 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # define NULL ((void*)0) #endif # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #ifdef __cplusplus #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 namespace std { typedef decltype(nullptr) nullptr_t; } using ::std::nullptr_t; #endif # 96 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 97 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_NULL #endif /* defined(__need_NULL) */ # 99 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__need_STDDEF_H_misc) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include "__stddef_max_align_t.h" #endif /* expanded by -frewrite-includes */ # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 103 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 104 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define offsetof(t, d) __builtin_offsetof(t, d) #undef __need_STDDEF_H_misc #endif /* defined(__need_STDDEF_H_misc) */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ #if 0 /* disabled by -frewrite-includes */ #if defined(__need_wint_t) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 /* Always define wint_t when modules are available. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_WINT_T) || __has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !__has_feature(modules) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #define _WINT_T #endif # 116 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 typedef __WINT_TYPE__ wint_t; #endif # 118 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #undef __need_wint_t #endif /* __need_wint_t */ # 120 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 #endif # 122 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/include/stddef.h" 3 4 # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 1 3 4 /* * Copyright (C) 2016 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #if 0 /* expanded by -frewrite-includes */ #pragma once #endif /* expanded by -frewrite-includes */ # 30 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 /** * @file bits/strcasecmp.h * @brief Case-insensitive string comparison. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 # 39 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 __BEGIN_DECLS /** * [strcasecmp(3)](http://man7.org/linux/man-pages/man3/strcasecmp.3.html) compares two strings * ignoring case. * * Returns an integer less than, equal to, or greater than zero if the first string is less than, * equal to, or greater than the second string (ignoring case). */ int strcasecmp(const char* __s1, const char* __s2) __attribute_pure__; /** * Like strcasecmp() but taking a `locale_t`. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 int strcasecmp_l(const char* __s1, const char* __s2, locale_t __l) __attribute_pure__ __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 58 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 /** * [strncasecmp(3)](http://man7.org/linux/man-pages/man3/strncasecmp.3.html) compares the first * `n` bytes of two strings ignoring case. * * Returns an integer less than, equal to, or greater than zero if the first `n` bytes of the * first string is less than, equal to, or greater than the first `n` bytes of the second * string (ignoring case). */ int strncasecmp(const char* __s1, const char* __s2, size_t __n) __attribute_pure__; /** * Like strncasecmp() but taking a `locale_t`. */ #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 int strncasecmp_l(const char* __s1, const char* __s2, size_t __n, locale_t __l) __attribute_pure__ __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 77 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/strcasecmp.h" 3 4 __END_DECLS # 37 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 2 3 4 __BEGIN_DECLS #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_BSD) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 42 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #endif # 43 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 void* memccpy(void* __dst, const void* __src, int __stop_char, size_t __n); void* memchr(const void* __s, int __ch, size_t __n) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 extern "C++" void* memrchr(void* __s, int __ch, size_t __n) __RENAME(memrchr) __attribute_pure__; extern "C++" const void* memrchr(const void* __s, int __ch, size_t __n) __RENAME(memrchr) __attribute_pure__; #else # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 void* memrchr(const void* __s, int __ch, size_t __n) __attribute_pure__; #endif # 52 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 int memcmp(const void* __lhs, const void* __rhs, size_t __n) __attribute_pure__; void* memcpy(void*, const void*, size_t); #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 55 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 57 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 void* mempcpy(void* __dst, const void* __src, size_t __n) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 59 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #endif # 61 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 void* memmove(void* __dst, const void* __src, size_t __n); void* memset(void* __dst, int __ch, size_t __n); void* memmem(const void* __haystack, size_t __haystack_size, const void* __needle, size_t __needle_size) __attribute_pure__; char* strchr(const char* __s, int __ch) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 18 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* __strchr_chk(const char* __s, int __ch, size_t __n) __INTRODUCED_IN(18); #endif /* __ANDROID_API__ >= 18 */ # 70 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 72 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 73 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 extern "C++" char* strchrnul(char* __s, int __ch) __RENAME(strchrnul) __attribute_pure__ __INTRODUCED_IN(24); extern "C++" const char* strchrnul(const char* __s, int __ch) __RENAME(strchrnul) __attribute_pure__ __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 78 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #else # 80 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 24 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 82 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strchrnul(const char* __s, int __ch) __attribute_pure__ __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ # 84 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #endif # 86 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #endif # 87 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strrchr(const char* __s, int __ch) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 18 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* __strrchr_chk(const char* __s, int __ch, size_t __n) __INTRODUCED_IN(18); #endif /* __ANDROID_API__ >= 18 */ # 93 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 size_t strlen(const char* __s) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 size_t __strlen_chk(const char* __s, size_t __n) __INTRODUCED_IN(17); #endif /* __ANDROID_API__ >= 17 */ # 100 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 int strcmp(const char* __lhs, const char* __rhs) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 105 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* stpcpy(char* __dst, const char* __src) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 107 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strcpy(char* __dst, const char* __src); char* strcat(char* __dst, const char* __src); char* strdup(const char* __s); char* strstr(const char* __haystack, const char* __needle) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 114 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 extern "C++" char* strcasestr(char*, const char*) __RENAME(strcasestr) __attribute_pure__; extern "C++" const char* strcasestr(const char*, const char*) __RENAME(strcasestr) __attribute_pure__; #else # 117 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strcasestr(const char* __haystack, const char* __needle) __attribute_pure__; #endif # 119 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strtok(char* __s, const char* __delimiter); char* strtok_r(char* __s, const char* __delimiter, char** __pos_ptr); char* strerror(int __errno_value); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 125 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strerror_l(int __errno_value, locale_t __l) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 127 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) && __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 129 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strerror_r(int __errno_value, char* __buf, size_t __n) __RENAME(__gnu_strerror_r) __INTRODUCED_IN(23); #else /* POSIX */ # 131 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 int strerror_r(int __errno_value, char* __buf, size_t __n); #endif # 133 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 size_t strnlen(const char* __s, size_t __n) __attribute_pure__; char* strncat(char* __dst, const char* __src, size_t __n); char* strndup(const char* __s, size_t __n); int strncmp(const char* __lhs, const char* __rhs, size_t __n) __attribute_pure__; #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 140 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* stpncpy(char* __dst, const char* __src, size_t __n) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 142 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* strncpy(char* __dst, const char* __src, size_t __n); size_t strlcat(char* __dst, const char* __src, size_t __n); size_t strlcpy(char* __dst, const char* __src, size_t __n); size_t strcspn(const char* __s, const char* __reject) __attribute_pure__; char* strpbrk(const char* __s, const char* __accept) __attribute_pure__; char* strsep(char** __s_ptr, const char* __delimiter); size_t strspn(const char* __s, const char* __accept); char* strsignal(int __signal); int strcoll(const char* __lhs, const char* __rhs) __attribute_pure__; size_t strxfrm(char* __dst, const char* __src, size_t __n); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 159 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 int strcoll_l(const char* __lhs, const char* __rhs, locale_t __l) __attribute_pure__ __INTRODUCED_IN(21); size_t strxfrm_l(char* __dst, const char* __src, size_t __n, locale_t __l) __INTRODUCED_IN(21); #else # 162 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 // Implemented as static inlines before 21. #endif # 164 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) && !defined(basename) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 166 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 /* * glibc has a basename in that's different to the POSIX one in . * It doesn't modify its argument, and in C++ it's const-correct. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 171 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 173 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 extern "C++" char* basename(char* __path) __RENAME(__gnu_basename) __INTRODUCED_IN(23); extern "C++" const char* basename(const char* __path) __RENAME(__gnu_basename) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 176 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #else # 178 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 180 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 char* basename(const char* __path) __RENAME(__gnu_basename) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 182 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #endif # 184 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #endif # 185 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 187 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 187 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 1 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 1 3 4 /* * Copyright (C) 2017 The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 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 COPYRIGHT HOLDERS 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 * COPYRIGHT OWNER 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. */ #ifndef _STRING_H #error "Never include this file directly; instead, include " #endif # 32 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 35 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 void* __memchr_chk(const void*, int, size_t, size_t) __INTRODUCED_IN(23); void* __memrchr_chk(const void*, int, size_t, size_t) __INTRODUCED_IN(23); #endif /* __ANDROID_API__ >= 23 */ # 38 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 41 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 char* __stpncpy_chk2(char*, const char*, size_t, size_t, size_t) __INTRODUCED_IN(21); char* __strncpy_chk2(char*, const char*, size_t, size_t, size_t) __INTRODUCED_IN(21); #endif /* __ANDROID_API__ >= 21 */ # 44 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 47 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 size_t __strlcpy_chk(char*, const char*, size_t, size_t) __INTRODUCED_IN(17); size_t __strlcat_chk(char*, const char*, size_t, size_t) __INTRODUCED_IN(17); #endif /* __ANDROID_API__ >= 17 */ # 50 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__BIONIC_FORTIFY) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 53 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 extern void* __memrchr_real(const void*, int, size_t) __RENAME(memrchr); #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 56 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) __overloadable { return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst)); } /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) __diagnose_as_builtin(__builtin_memmove, 1, 2, 3) __overloadable { return __builtin___memmove_chk(dst, src, len, __bos0(dst)); } #endif # 72 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__USE_GNU) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 74 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 30 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE void* mempcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) __diagnose_as_builtin(__builtin_mempcpy, 1, 2, 3) __overloadable __clang_error_if(__bos_unevaluated_lt(__bos0(dst), copy_amount), "'mempcpy' called with size bigger than buffer") { #if 0 /* disabled by -frewrite-includes */ #if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 82 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 size_t bos_dst = __bos0(dst); if (!__bos_trivially_ge(bos_dst, copy_amount)) { return __builtin___mempcpy_chk(dst, src, copy_amount, bos_dst); } #endif # 87 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_mempcpy(dst, src, copy_amount); } #endif /* __ANDROID_API__ >= 30 */ # 90 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #endif /* __USE_GNU */ # 91 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE char* stpcpy(char* const dst __pass_object_size, const char* src) __overloadable __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), "'stpcpy' called with string bigger than buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 98 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin___stpcpy_chk(dst, src, __bos(dst)); #else # 100 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_stpcpy(dst, src); #endif # 102 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 } __BIONIC_FORTIFY_INLINE char* strcpy(char* const dst __pass_object_size, const char* src) __diagnose_as_builtin(__builtin_strcpy, 1, 2) __overloadable __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), "'strcpy' called with string bigger than buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 111 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin___strcpy_chk(dst, src, __bos(dst)); #else # 113 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_strcpy(dst, src); #endif # 115 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 } __BIONIC_FORTIFY_INLINE char* strcat(char* const dst __pass_object_size, const char* src) __overloadable __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)), "'strcat' called with string bigger than buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 123 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin___strcat_chk(dst, src, __bos(dst)); #else # 125 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_strcat(dst, src); #endif # 127 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 } #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 130 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE char* strncat(char* const dst __pass_object_size, const char* src, size_t n) __diagnose_as_builtin(__builtin_strncat, 1, 2, 3) __overloadable { return __builtin___strncat_chk(dst, src, n, __bos(dst)); } #endif # 138 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE void* memset(void* const s __pass_object_size0, int c, size_t n) __overloadable __diagnose_as_builtin(__builtin_memset, 1, 2, 3) /* If you're a user who wants this warning to go away: use `(&memset)(foo, bar, baz)`. */ __clang_warning_if(c && !n, "'memset' will set 0 bytes; maybe the arguments got flipped?") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 146 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin___memset_chk(s, c, n, __bos0(s)); #else # 148 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_memset(s, c, n); #endif # 150 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 } #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 153 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE void* memchr(const void* const s __pass_object_size, int c, size_t n) __overloadable { size_t bos = __bos(s); if (__bos_trivially_ge(bos, n)) { return __builtin_memchr(s, c, n); } return __memchr_chk(s, c, n, bos); } __BIONIC_FORTIFY_INLINE void* __memrchr_fortify(const void* const __pass_object_size s, int c, size_t n) __overloadable { size_t bos = __bos(s); if (__bos_trivially_ge(bos, n)) { return __memrchr_real(s, c, n); } return __memrchr_chk(s, c, n, bos); } #endif # 175 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 21 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 177 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE char* stpncpy(char* const dst __pass_object_size, const char* const src __pass_object_size, size_t n) __diagnose_as_builtin(__builtin_stpncpy, 1, 2, 3) __overloadable { size_t bos_dst = __bos(dst); size_t bos_src = __bos(src); /* Ignore dst size checks; they're handled in strncpy_chk */ if (bos_src == __BIONIC_FORTIFY_UNKNOWN_SIZE) { return __builtin___stpncpy_chk(dst, src, n, bos_dst); } return __stpncpy_chk2(dst, src, n, bos_dst, bos_src); } /* No diag -- clang diagnoses misuses of this on its own. */ __BIONIC_FORTIFY_INLINE char* strncpy(char* const dst __pass_object_size, const char* const src __pass_object_size, size_t n) __diagnose_as_builtin(__builtin_strncpy, 1, 2, 3) __overloadable { size_t bos_dst = __bos(dst); size_t bos_src = __bos(src); /* Ignore dst size checks; they're handled in strncpy_chk */ if (bos_src == __BIONIC_FORTIFY_UNKNOWN_SIZE) { return __builtin___strncpy_chk(dst, src, n, bos_dst); } return __strncpy_chk2(dst, src, n, bos_dst, bos_src); } #endif # 209 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE size_t strlcpy(char* const dst __pass_object_size, const char* src, size_t size) __overloadable __clang_error_if(__bos_unevaluated_lt(__bos(dst), size), "'strlcpy' called with size bigger than buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 216 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __strlcpy_chk(dst, src, size, __bos(dst)); #else # 218 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __call_bypassing_fortify(strlcpy)(dst, src, size); #endif # 220 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 } __BIONIC_FORTIFY_INLINE size_t strlcat(char* const dst __pass_object_size, const char* src, size_t size) __overloadable __clang_error_if(__bos_unevaluated_lt(__bos(dst), size), "'strlcat' called with size bigger than buffer") { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 228 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __strlcat_chk(dst, src, size, __bos(dst)); #else # 230 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __call_bypassing_fortify(strlcat)(dst, src, size); #endif # 232 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 } #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 17 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 235 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE size_t strlen(const char* const s __pass_object_size0) __overloadable { return __strlen_chk(s, __bos0(s)); } #endif # 240 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE char* strchr(const char* const s __pass_object_size, int c) __overloadable { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 18 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 244 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 size_t bos = __bos(s); if (bos != __BIONIC_FORTIFY_UNKNOWN_SIZE) { return __strchr_chk(s, c, bos); } #endif # 250 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_strchr(s, c); } __BIONIC_FORTIFY_INLINE char* strrchr(const char* const s __pass_object_size, int c) __overloadable { #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 18 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 256 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 size_t bos = __bos(s); if (bos != __BIONIC_FORTIFY_UNKNOWN_SIZE) { return __strrchr_chk(s, c, bos); } #endif # 262 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 return __builtin_strrchr(s, c); } #if 0 /* disabled by -frewrite-includes */ #if __ANDROID_API__ >= 23 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 266 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 267 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 extern "C++" { __BIONIC_FORTIFY_INLINE void* memrchr(void* const __pass_object_size s, int c, size_t n) { return __memrchr_fortify(s, c, n); } __BIONIC_FORTIFY_INLINE const void* memrchr(const void* const __pass_object_size s, int c, size_t n) { return __memrchr_fortify(s, c, n); } } #else # 279 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 __BIONIC_FORTIFY_INLINE void* memrchr(const void* const __pass_object_size s, int c, size_t n) __overloadable { return __memrchr_fortify(s, c, n); } #endif # 284 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #endif /* __ANDROID_API__ >= 23 */ # 285 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 #endif /* defined(__BIONIC_FORTIFY) */ # 287 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/bits/fortify/string.h" 3 4 # 188 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 2 3 4 #endif # 189 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 /* Const-correct overloads. Placed after FORTIFY so we call those functions, if possible. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 192 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 /* * Use two enable_ifs so these overloads don't conflict with + are preferred over libcxx's. This can * be reduced to 1 after libcxx recognizes that we have const-correct overloads. */ #define __prefer_this_overload __enable_if(true, "preferred overload") __enable_if(true, "") extern "C++" { inline __always_inline void* __bionic_memchr(const void* const s __pass_object_size, int c, size_t n) { return memchr(s, c, n); } inline __always_inline const void* memchr(const void* const s __pass_object_size, int c, size_t n) __prefer_this_overload { return __bionic_memchr(s, c, n); } inline __always_inline void* memchr(void* const s __pass_object_size, int c, size_t n) __prefer_this_overload { return __bionic_memchr(s, c, n); } inline __always_inline char* __bionic_strchr(const char* const s __pass_object_size, int c) { return strchr(s, c); } inline __always_inline const char* strchr(const char* const s __pass_object_size, int c) __prefer_this_overload { return __bionic_strchr(s, c); } inline __always_inline char* strchr(char* const s __pass_object_size, int c) __prefer_this_overload { return __bionic_strchr(s, c); } inline __always_inline char* __bionic_strrchr(const char* const s __pass_object_size, int c) { return strrchr(s, c); } inline __always_inline const char* strrchr(const char* const s __pass_object_size, int c) __prefer_this_overload { return __bionic_strrchr(s, c); } inline __always_inline char* strrchr(char* const s __pass_object_size, int c) __prefer_this_overload { return __bionic_strrchr(s, c); } /* Functions with no FORTIFY counterpart. */ inline __always_inline char* __bionic_strstr(const char* h, const char* n) { return strstr(h, n); } inline __always_inline const char* strstr(const char* h, const char* n) __prefer_this_overload { return __bionic_strstr(h, n); } inline __always_inline char* strstr(char* h, const char* n) __prefer_this_overload { return __bionic_strstr(h, n); } inline __always_inline char* __bionic_strpbrk(const char* h, const char* n) { return strpbrk(h, n); } inline __always_inline char* strpbrk(char* h, const char* n) __prefer_this_overload { return __bionic_strpbrk(h, n); } inline __always_inline const char* strpbrk(const char* h, const char* n) __prefer_this_overload { return __bionic_strpbrk(h, n); } } #undef __prefer_this_overload #endif # 275 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 __END_DECLS #endif # 279 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/string.h" 3 4 # 11 "/home/anand/Documents/GNU/BlackBerry/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/memory.h" 2 3 4 # 48 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/telephony.h" #endif /* expanded by -frewrite-includes */ # 49 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" 1 /* * SpanDSP - a series of DSP components for telephony * * telephony.h - some very basic telephony definitions * * Written by Steve Underwood * * Copyright (C) 2003 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: telephony.h,v 1.18.4.2 2009/12/21 18:38:06 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_TELEPHONY_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 29 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define _SPANDSP_TELEPHONY_H_ #if 0 /* disabled by -frewrite-includes */ #if defined(_M_IX86) || defined(_M_X64) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #if 0 /* disabled by -frewrite-includes */ #if defined(LIBSPANDSP_EXPORTS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 33 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define SPAN_DECLARE(type) __declspec(dllexport) type __stdcall #define SPAN_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl #define SPAN_DECLARE_DATA __declspec(dllexport) #else # 37 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define SPAN_DECLARE(type) __declspec(dllimport) type __stdcall #define SPAN_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl #define SPAN_DECLARE_DATA __declspec(dllimport) #endif # 41 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(SPANDSP_USE_EXPORT_CAPABILITY) && (defined(__GNUC__) || defined(__SUNCC__)) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 42 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define SPAN_DECLARE(type) __attribute__((visibility("default"))) type #define SPAN_DECLARE_NONSTD(type) __attribute__((visibility("default"))) type #define SPAN_DECLARE_DATA __attribute__((visibility("default"))) #else # 46 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define SPAN_DECLARE(type) /**/ type #define SPAN_DECLARE_NONSTD(type) /**/ type #define SPAN_DECLARE_DATA /**/ #endif # 50 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define SAMPLE_RATE 8000 /* This is based on A-law, but u-law is only 0.03dB different */ #define DBM0_MAX_POWER (3.14f + 3.02f) #define DBM0_MAX_SINE_POWER (3.14f) /* This is based on the ITU definition of dbOv in G.100.1 */ #define DBOV_MAX_POWER (0.0f) #define DBOV_MAX_SINE_POWER (-3.02f) /*! \brief A handler for pure receive. The buffer cannot be altered. */ typedef int (span_rx_handler_t)(void *s, const int16_t amp[], int len); /*! \brief A handler for receive, where the buffer can be altered. */ typedef int (span_mod_handler_t)(void *s, int16_t amp[], int len); /*! \brief A handler for missing receive data fill-in. */ typedef int (span_rx_fillin_handler_t)(void *s, int len); /*! \brief A handler for transmit, where the buffer will be filled. */ typedef int (span_tx_handler_t)(void *s, int16_t amp[], int max_len); #define ms_to_samples(t) ((t)*(SAMPLE_RATE/1000)) #define us_to_samples(t) ((t)/(1000000/SAMPLE_RATE)) #if 0 /* disabled by -frewrite-includes */ #if !defined(FALSE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 76 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define FALSE 0 #endif # 78 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(TRUE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 79 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define TRUE (!FALSE) #endif # 81 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 83 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" /* C++ doesn't seem to have sane rounding functions/macros yet */ #if 0 /* disabled by -frewrite-includes */ #if !defined(WIN32) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 85 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #define lrint(x) ((long int) (x)) #define lrintf(x) ((long int) (x)) #endif # 88 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #endif # 89 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" #endif # 91 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/telephony.h" /*- End of file ------------------------------------------------------------*/ # 50 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/fast_convert.h" #endif /* expanded by -frewrite-includes */ # 50 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" 1 /* * SpanDSP - a series of DSP components for telephony * * fast_convert.h - Quick ways to convert floating point numbers to integers * * Written by Steve Underwood * * Copyright (C) 2009 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: fast_convert.h,v 1.9 2009/10/03 04:37:25 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_FAST_CONVERT_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 29 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #define _SPANDSP_FAST_CONVERT_H_ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" extern "C" { #endif # 35 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* The following code, to handle issues with lrint() and lrintf() on various * platforms, is adapted from similar code in libsndfile, which is: * * Copyright (C) 2001-2004 Erik de Castro Lopo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. */ /* * On Intel Pentium processors (especially PIII and probably P4), converting * from float to int is very slow. To meet the C specs, the code produced by * most C compilers targeting Pentium needs to change the FPU rounding mode * before the float to int conversion is performed. * * Changing the FPU rounding mode causes the FPU pipeline to be flushed. It * is this flushing of the pipeline which is so slow. * * Fortunately the ISO C99 specification defines the functions lrint, lrintf, * llrint and llrintf which fix this problem as a side effect. * * On Unix-like systems, the configure process should have detected the * presence of these functions. If they weren't found we have to replace them * here with a standard C cast. */ /* * The C99 prototypes for these functions are as follows: * * int rintf(float x); * int rint(double x); * long int lrintf(float x); * long int lrint(double x); * long long int llrintf(float x); * long long int llrint(double x); * * The presence of the required functions are detected during the configure * process and the values HAVE_LRINT and HAVE_LRINTF are set accordingly in * the config file. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__CYGWIN__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 85 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 86 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* * CYGWIN has lrint and lrintf functions, but they are slow and buggy: * http://sourceware.org/ml/cygwin/2005-06/msg00153.html * http://sourceware.org/ml/cygwin/2005-09/msg00047.html * The latest version of cygwin seems to have made no effort to fix this. * These replacement functions (pulled from the Public Domain MinGW * math.h header) replace the native versions. */ static __inline__ long int lrint(double x) { long int retval; __asm__ __volatile__ ( "fistpl %0" : "=m" (retval) : "t" (x) : "st" ); return retval; } static __inline__ long int lrintf(float x) { long int retval; __asm__ __volatile__ ( "fistpl %0" : "=m" (retval) : "t" (x) : "st" ); return retval; } #endif # 123 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* The fastest way to convert is the equivalent of lrint() */ static __inline__ long int lfastrint(double x) { long int retval; __asm__ __volatile__ ( "fistpl %0" : "=m" (retval) : "t" (x) : "st" ); return retval; } static __inline__ long int lfastrintf(float x) { long int retval; __asm__ __volatile__ ( "fistpl %0" : "=m" (retval) : "t" (x) : "st" ); return retval; } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__GNUC__) || (__SUNPRO_C >= 0x0590) #endif #endif /* disabled by -frewrite-includes */ #elif 1 /* evaluated by -frewrite-includes */ # 154 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__i386__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 156 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* These routines are guaranteed fast on an i386 machine. Using the built in lrint() and lrintf() should be similar, but they may not always be enabled. Sometimes, especially with "-O0", you might get slow calls to routines. */ static __inline__ long int lfastrint(double x) { long int retval; __asm__ __volatile__ ( "fistpl %0" : "=m" (retval) : "t" (x) : "st" ); return retval; } static __inline__ long int lfastrintf(float x) { long int retval; __asm__ __volatile__ ( "fistpl %0" : "=m" (retval) : "t" (x) : "st" ); return retval; } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__x86_64__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 188 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* On an x86_64 machine, the fastest thing seems to be a pure assignment from a double or float to an int. It looks like the design on the x86_64 took account of the default behaviour specified for C. */ static __inline__ long int lfastrint(double x) { return (long int) (x); } static __inline__ long int lfastrintf(float x) { return (long int) (x); } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__ppc__) || defined(__powerpc__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 201 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" static __inline__ long int lfastrint(register double x) { int res[2]; __asm__ __volatile__ ( "fctiw %1, %1\n\t" "stfd %1, %0" : "=m" (res) /* Output */ : "f" (x) /* Input */ : "memory" ); return res[1]; } static __inline__ long int lfastrintf(register float x) { int res[2]; __asm__ __volatile__ ( "fctiw %1, %1\n\t" "stfd %1, %0" : "=m" (res) /* Output */ : "f" (x) /* Input */ : "memory" ); return res[1]; } #else # 233 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* Fallback routines, for unrecognised platforms */ static __inline__ long int lfastrint(double x) { return (long int) x; } static __inline__ long int lfastrintf(float x) { return (long int) x; } #endif # 244 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_M_IX86) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 246 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* Visual Studio i386 */ /* * Win32 doesn't seem to have the lrint() and lrintf() functions. * Therefore implement inline versions of these functions here. */ __inline long int lrint(double x) { long int i; _asm { fld x fistp i }; return i; } __inline long int lrintf(float x) { long int i; _asm { fld x fistp i }; return i; } __inline float rintf(float flt) { _asm { fld flt frndint } } __inline double rint(double dbl) { _asm { fld dbl frndint } } __inline long int lfastrint(double x) { long int i; _asm { fld x fistp i }; return i; } __inline long int lfastrintf(float x) { long int i; _asm { fld x fistp i }; return i; } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_M_X64) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 317 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* Visual Studio x86_64 */ /* x86_64 machines will do best with a simple assignment. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 319 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" # 320 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" __inline long int lrint(double x) { return (long int)_mm_cvtsd_si64x( _mm_loadu_pd ((const double*)&x) ); } __inline long int lrintf(float x) { return _mm_cvt_ss2si( _mm_load_ss((const float*)&x) ); } __inline long int lfastrint(double x) { return (long int) (x); } __inline long int lfastrintf(float x) { return (long int) (x); } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__MWERKS__) && defined(macintosh) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 341 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* This MacOS 9 solution was provided by Stephane Letz */ long int __inline__ lfastrint(register double x) { long int res[2]; asm { fctiw x, x stfd x, res } return res[1]; } long int __inline__ lfastrintf(register float x) { long int res[2]; asm { fctiw x, x stfd x, res } return res[1]; } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__MACH__) && defined(__APPLE__) && (defined(__ppc__) || defined(__powerpc__)) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 367 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* For Apple Mac OS/X - do recent versions still need this? */ static __inline__ long int lfastrint(register double x) { int res[2]; __asm__ __volatile__ ( "fctiw %1, %1\n\t" "stfd %1, %0" : "=m" (res) /* Output */ : "f" (x) /* Input */ : "memory" ); return res[1]; } static __inline__ long int lfastrintf(register float x) { int res[2]; __asm__ __volatile__ ( "fctiw %1, %1\n\t" "stfd %1, %0" : "=m" (res) /* Output */ : "f" (x) /* Input */ : "memory" ); return res[1]; } #else # 401 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /* There is nothing else to do, but use a simple casting operation, instead of a real rint() type function. Since we are only trying to use rint() to speed up conversions, the accuracy issues related to changing the rounding scheme are of little concern to us. */ #if 0 /* disabled by -frewrite-includes */ #if !defined(__sgi) && !defined(__sunos) && !defined(__solaris) && !defined(__sun) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 407 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #warning "No usable lrint() and lrintf() functions available." #warning "Replacing these functions with a simple C cast." #endif # 410 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" static __inline__ long int lrint(double x) { return (long int) (x); } static __inline__ long int lrintf(float x) { return (long int) (x); } static __inline__ long int lfastrint(double x) { return (long int) (x); } static __inline__ long int lfastrintf(float x) { return (long int) (x); } #endif # 431 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 433 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" } #endif # 435 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" #endif # 437 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/fast_convert.h" /*- End of file ------------------------------------------------------------*/ # 51 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/bitstream.h" #endif /* expanded by -frewrite-includes */ # 51 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" 1 /* * SpanDSP - a series of DSP components for telephony * * bitstream.h - Bitstream composition and decomposition routines. * * Written by Steve Underwood * * Copyright (C) 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: bitstream.h,v 1.14.4.1 2009/12/28 12:20:47 steveu Exp $ */ /*! \file */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_BITSTREAM_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" #define _SPANDSP_BITSTREAM_H_ /*! \page bitstream_page Bitstream composition and decomposition \section bitstream_page_sec_1 What does it do? \section bitstream_page_sec_2 How does it work? */ /*! Bitstream handler state */ typedef struct bitstream_state_s bitstream_state_t; #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" extern "C" { #endif # 46 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" /*! \brief Put a chunk of bits into the output buffer. \param s A pointer to the bitstream context. \param c A pointer to the bitstream output buffer. \param value The value to be pushed into the output buffer. \param bits The number of bits of value to be pushed. 1 to 25 bits is valid. */ SPAN_DECLARE(void) bitstream_put(bitstream_state_t *s, uint8_t **c, uint32_t value, int bits); /*! \brief Get a chunk of bits from the input buffer. \param s A pointer to the bitstream context. \param c A pointer to the bitstream input buffer. \param bits The number of bits of value to be grabbed. 1 to 25 bits is valid. \return The value retrieved from the input buffer. */ SPAN_DECLARE(uint32_t) bitstream_get(bitstream_state_t *s, const uint8_t **c, int bits); /*! \brief Flush any residual bit to the output buffer. \param s A pointer to the bitstream context. \param c A pointer to the bitstream output buffer. */ SPAN_DECLARE(void) bitstream_flush(bitstream_state_t *s, uint8_t **c); /*! \brief Initialise a bitstream context. \param s A pointer to the bitstream context. \param lsb_first TRUE if the bit stream is LSB first, else its MSB first. \return A pointer to the bitstream context. */ SPAN_DECLARE(bitstream_state_t *) bitstream_init(bitstream_state_t *s, int direction); SPAN_DECLARE(int) bitstream_release(bitstream_state_t *s); SPAN_DECLARE(int) bitstream_free(bitstream_state_t *s); #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 77 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" } #endif # 79 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" #endif # 81 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bitstream.h" /*- End of file ------------------------------------------------------------*/ # 52 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/bit_operations.h" #endif /* expanded by -frewrite-includes */ # 52 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" 1 /* * SpanDSP - a series of DSP components for telephony * * bit_operations.h - Various bit level operations, such as bit reversal * * Written by Steve Underwood * * Copyright (C) 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: bit_operations.h,v 1.27 2009/07/10 13:15:56 steveu Exp $ */ /*! \file */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_BIT_OPERATIONS_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" #define _SPANDSP_BIT_OPERATIONS_H_ #if 0 /* disabled by -frewrite-includes */ #if defined(__i386__) || defined(__x86_64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 34 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(__SUNPRO_C) || (__SUNPRO_C >= 0x0590) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 35 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" #define SPANDSP_USE_86_ASM #endif # 37 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" #endif # 38 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 40 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" extern "C" { #endif # 43 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /*! \brief Find the bit position of the highest set bit in a word \param bits The word to be searched \return The bit number of the highest set bit, or -1 if the word is zero. */ static __inline__ int top_bit(unsigned int bits) { #if 0 /* disabled by -frewrite-includes */ #if defined(SPANDSP_USE_86_ASM) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 50 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" int res; __asm__ (" xorl %[res],%[res];\n" " decl %[res];\n" " bsrl %[bits],%[res]\n" : [res] "=&r" (res) : [bits] "rm" (bits)); return res; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__ppc__) || defined(__powerpc__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 59 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" int res; __asm__ ("cntlzw %[res],%[bits];\n" : [res] "=&r" (res) : [bits] "r" (bits)); return 31 - res; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_M_IX86) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 66 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /* Visual Studio i386 */ __asm { xor eax, eax dec eax bsr eax, bits } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_M_X64) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 74 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /* Visual Studio x86_64 */ /* TODO: Need the appropriate x86_64 code */ int res; if (bits == 0) return -1; res = 0; if (bits & 0xFFFF0000) { bits &= 0xFFFF0000; res += 16; } if (bits & 0xFF00FF00) { bits &= 0xFF00FF00; res += 8; } if (bits & 0xF0F0F0F0) { bits &= 0xF0F0F0F0; res += 4; } if (bits & 0xCCCCCCCC) { bits &= 0xCCCCCCCC; res += 2; } if (bits & 0xAAAAAAAA) { bits &= 0xAAAAAAAA; res += 1; } return res; #else # 108 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" int res; if (bits == 0) return -1; res = 0; if (bits & 0xFFFF0000) { bits &= 0xFFFF0000; res += 16; } if (bits & 0xFF00FF00) { bits &= 0xFF00FF00; res += 8; } if (bits & 0xF0F0F0F0) { bits &= 0xF0F0F0F0; res += 4; } if (bits & 0xCCCCCCCC) { bits &= 0xCCCCCCCC; res += 2; } if (bits & 0xAAAAAAAA) { bits &= 0xAAAAAAAA; res += 1; } return res; #endif # 140 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" } /*- End of function --------------------------------------------------------*/ /*! \brief Find the bit position of the lowest set bit in a word \param bits The word to be searched \return The bit number of the lowest set bit, or -1 if the word is zero. */ static __inline__ int bottom_bit(unsigned int bits) { int res; #if 0 /* disabled by -frewrite-includes */ #if defined(SPANDSP_USE_86_ASM) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 151 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" __asm__ (" xorl %[res],%[res];\n" " decl %[res];\n" " bsfl %[bits],%[res]\n" : [res] "=&r" (res) : [bits] "rm" (bits)); return res; #else # 158 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" if (bits == 0) return -1; res = 31; if (bits & 0x0000FFFF) { bits &= 0x0000FFFF; res -= 16; } if (bits & 0x00FF00FF) { bits &= 0x00FF00FF; res -= 8; } if (bits & 0x0F0F0F0F) { bits &= 0x0F0F0F0F; res -= 4; } if (bits & 0x33333333) { bits &= 0x33333333; res -= 2; } if (bits & 0x55555555) { bits &= 0x55555555; res -= 1; } return res; #endif # 188 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" } /*- End of function --------------------------------------------------------*/ /*! \brief Bit reverse a byte. \param data The byte to be reversed. \return The bit reversed version of data. */ static __inline__ uint8_t bit_reverse8(uint8_t x) { #if 0 /* disabled by -frewrite-includes */ #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__powerpc__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 197 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /* If multiply is fast */ return ((x*0x0802U & 0x22110U) | (x*0x8020U & 0x88440U))*0x10101U >> 16; #else # 200 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /* If multiply is slow, but we have a barrel shifter */ x = (x >> 4) | (x << 4); x = ((x & 0xCC) >> 2) | ((x & 0x33) << 2); return ((x & 0xAA) >> 1) | ((x & 0x55) << 1); #endif # 205 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" } /*- End of function --------------------------------------------------------*/ /*! \brief Bit reverse a 16 bit word. \param data The word to be reversed. \return The bit reversed version of data. */ SPAN_DECLARE(uint16_t) bit_reverse16(uint16_t data); /*! \brief Bit reverse a 32 bit word. \param data The word to be reversed. \return The bit reversed version of data. */ SPAN_DECLARE(uint32_t) bit_reverse32(uint32_t data); /*! \brief Bit reverse each of the four bytes in a 32 bit word. \param data The word to be reversed. \return The bit reversed version of data. */ SPAN_DECLARE(uint32_t) bit_reverse_4bytes(uint32_t data); #if 0 /* disabled by -frewrite-includes */ #if defined(__x86_64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 224 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /*! \brief Bit reverse each of the eight bytes in a 64 bit word. \param data The word to be reversed. \return The bit reversed version of data. */ SPAN_DECLARE(uint64_t) bit_reverse_8bytes(uint64_t data); #endif # 229 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /*! \brief Bit reverse each bytes in a buffer. \param to The buffer to place the reversed data in. \param from The buffer containing the data to be reversed. \param len The length of the data in the buffer. */ SPAN_DECLARE(void) bit_reverse(uint8_t to[], const uint8_t from[], int len); /*! \brief Find the number of set bits in a 32 bit word. \param x The word to be searched. \return The number of set bits. */ SPAN_DECLARE(int) one_bits32(uint32_t x); /*! \brief Create a mask as wide as the number in a 32 bit word. \param x The word to be searched. \return The mask. */ SPAN_DECLARE(uint32_t) make_mask32(uint32_t x); /*! \brief Create a mask as wide as the number in a 16 bit word. \param x The word to be searched. \return The mask. */ SPAN_DECLARE(uint16_t) make_mask16(uint16_t x); /*! \brief Find the least significant one in a word, and return a word with just that bit set. \param x The word to be searched. \return The word with the single set bit. */ static __inline__ uint32_t least_significant_one32(uint32_t x) { return (x & (-(int32_t) x)); } /*- End of function --------------------------------------------------------*/ /*! \brief Find the most significant one in a word, and return a word with just that bit set. \param x The word to be searched. \return The word with the single set bit. */ static __inline__ uint32_t most_significant_one32(uint32_t x) { #if 0 /* disabled by -frewrite-includes */ #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__powerpc__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 268 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" return 1 << top_bit(x); #else # 270 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" x = make_mask32(x); return (x ^ (x >> 1)); #endif # 273 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" } /*- End of function --------------------------------------------------------*/ /*! \brief Find the parity of a byte. \param x The byte to be checked. \return 1 for odd, or 0 for even. */ static __inline__ int parity8(uint8_t x) { x = (x ^ (x >> 4)) & 0x0F; return (0x6996 >> x) & 1; } /*- End of function --------------------------------------------------------*/ /*! \brief Find the parity of a 16 bit word. \param x The word to be checked. \return 1 for odd, or 0 for even. */ static __inline__ int parity16(uint16_t x) { x ^= (x >> 8); x = (x ^ (x >> 4)) & 0x0F; return (0x6996 >> x) & 1; } /*- End of function --------------------------------------------------------*/ /*! \brief Find the parity of a 32 bit word. \param x The word to be checked. \return 1 for odd, or 0 for even. */ static __inline__ int parity32(uint32_t x) { x ^= (x >> 16); x ^= (x >> 8); x = (x ^ (x >> 4)) & 0x0F; return (0x6996 >> x) & 1; } /*- End of function --------------------------------------------------------*/ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 310 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" } #endif # 312 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" #endif # 314 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/bit_operations.h" /*- End of file ------------------------------------------------------------*/ # 53 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/saturated.h" #endif /* expanded by -frewrite-includes */ # 53 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" 1 /* * SpanDSP - a series of DSP components for telephony * * saturated.h - General saturated arithmetic routines. * * Written by Steve Underwood * * Copyright (C) 2001, 2008 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: saturated.h,v 1.4 2009/02/05 12:21:36 steveu Exp $ */ /*! \file */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_SATURATED_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 31 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" #define _SPANDSP_SATURATED_H_ /*! \page saturated_page Saturated arithmetic \section saturated_page_sec_1 What does it do? \section saturated_page_sec_2 How does it work? */ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" extern "C" { #endif # 46 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" static __inline__ int16_t saturate(int32_t amp) { int16_t amp16; /* Hopefully this is optimised for the common case - not clipping */ amp16 = (int16_t) amp; if (amp == amp16) return amp16; if (amp > INT16_MAX) return INT16_MAX; return INT16_MIN; } /*- End of function --------------------------------------------------------*/ /*! Saturate to 15 bits, rather than the usual 16 bits. This is often a useful function. */ static __inline__ int16_t saturate15(int32_t amp) { if (amp > 16383) return 16383; if (amp < -16384) return -16384; return (int16_t) amp; } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t fsaturatef(float famp) { if (famp > (float) INT16_MAX) return INT16_MAX; if (famp < (float) INT16_MIN) return INT16_MIN; return (int16_t) lrintf(famp); } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t fsaturate(double damp) { if (damp > (double) INT16_MAX) return INT16_MAX; if (damp < (double) INT16_MIN) return INT16_MIN; return (int16_t) lrint(damp); } /*- End of function --------------------------------------------------------*/ /* Saturate to a 16 bit integer, using the fastest float to int conversion */ static __inline__ int16_t ffastsaturatef(float famp) { if (famp > (float) INT16_MAX) return INT16_MAX; if (famp < (float) INT16_MIN) return INT16_MIN; return (int16_t) lfastrintf(famp); } /*- End of function --------------------------------------------------------*/ /* Saturate to a 16 bit integer, using the fastest double to int conversion */ static __inline__ int16_t ffastsaturate(double damp) { if (damp > (double) INT16_MAX) return INT16_MAX; if (damp < (double) INT16_MIN) return INT16_MIN; return (int16_t) lfastrint(damp); } /*- End of function --------------------------------------------------------*/ /* Saturate to a 16 bit integer, using the closest float to int conversion */ static __inline__ float ffsaturatef(float famp) { if (famp > (float) INT16_MAX) return (float) INT16_MAX; if (famp < (float) INT16_MIN) return (float) INT16_MIN; return famp; } /*- End of function --------------------------------------------------------*/ /* Saturate to a 16 bit integer, using the closest double to int conversion */ static __inline__ double ffsaturate(double famp) { if (famp > (double) INT16_MAX) return (double) INT16_MAX; if (famp < (double) INT16_MIN) return (double) INT16_MIN; return famp; } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t saturated_add16(int16_t a, int16_t b) { #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(__i386__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 139 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" __asm__ __volatile__( " addw %2,%0;\n" " jno 0f;\n" " movw $0x7fff,%0;\n" " adcw $0,%0;\n" "0:" : "=r" (a) : "0" (a), "ir" (b) : "cc" ); return a; #else # 151 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" return saturate((int32_t) a + (int32_t) b); #endif # 153 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" } /*- End of function --------------------------------------------------------*/ static __inline__ int32_t saturated_add32(int32_t a, int32_t b) { #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(__i386__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 159 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" __asm__ __volatile__( " addl %2,%0;\n" " jno 0f;\n" " movl $0x7fffffff,%0;\n" " adcl $0,%0;\n" "0:" : "=r" (a) : "0" (a), "ir" (b) : "cc" ); return a; #else # 171 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" uint32_t A; if (a < 0) { if (b >= 0) return a + b; /*endif*/ A = (uint32_t) -(a + 1) + (uint32_t) -(b + 1); return (A >= INT32_MAX) ? INT32_MIN : -(int32_t) A - 2; } /*endif*/ if (b <= 0) return a + b; /*endif*/ A = (uint32_t) a + (uint32_t) b; return (A > INT32_MAX) ? INT32_MAX : A; #endif # 188 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t saturated_sub16(int16_t a, int16_t b) { return saturate((int32_t) a - (int32_t) b); } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t saturated_mul16(int16_t a, int16_t b) { if (a == INT16_MIN && b == INT16_MIN) return INT16_MAX; /*endif*/ return (int16_t) (((int32_t) a*(int32_t) b) >> 15); } /*- End of function --------------------------------------------------------*/ static __inline__ int32_t saturated_mul_16_32(int16_t a, int16_t b) { return ((int32_t) a*(int32_t) b) << 1; } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t saturated_abs16(int16_t a) { return (a == INT16_MIN) ? INT16_MAX : (int16_t) abs(a); } /*- End of function --------------------------------------------------------*/ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 219 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" } #endif # 221 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" #endif # 223 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/saturated.h" /*- End of file ------------------------------------------------------------*/ # 54 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/vector_int.h" #endif /* expanded by -frewrite-includes */ # 54 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" 1 /* * SpanDSP - a series of DSP components for telephony * * vector_int.h * * Written by Steve Underwood * * Copyright (C) 2003 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: vector_int.h,v 1.14 2009/01/31 08:48:11 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_VECTOR_INT_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 29 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" #define _SPANDSP_VECTOR_INT_H_ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" extern "C" { #endif # 35 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" static __inline__ void vec_copyi(int z[], const int x[], int n) { memcpy(z, x, n*sizeof(z[0])); } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_copyi16(int16_t z[], const int16_t x[], int n) { memcpy(z, x, n*sizeof(z[0])); } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_copyi32(int32_t z[], const int32_t x[], int n) { memcpy(z, x, n*sizeof(z[0])); } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_zeroi(int z[], int n) { memset(z, 0, n*sizeof(z[0])); } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_zeroi16(int16_t z[], int n) { memset(z, 0, n*sizeof(z[0])); } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_zeroi32(int32_t z[], int n) { memset(z, 0, n*sizeof(z[0])); } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_seti(int z[], int x, int n) { int i; for (i = 0; i < n; i++) z[i] = x; } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_seti16(int16_t z[], int16_t x, int n) { int i; for (i = 0; i < n; i++) z[i] = x; } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_seti32(int32_t z[], int32_t x, int n) { int i; for (i = 0; i < n; i++) z[i] = x; } /*- End of function --------------------------------------------------------*/ /*! \brief Find the dot product of two int16_t vectors. \param x The first vector. \param y The first vector. \param n The number of elements in the vectors. \return The dot product of the two vectors. */ SPAN_DECLARE(int32_t) vec_dot_prodi16(const int16_t x[], const int16_t y[], int n); /*! \brief Find the dot product of two int16_t vectors, where the first is a circular buffer with an offset for the starting position. \param x The first vector. \param y The first vector. \param n The number of elements in the vectors. \param pos The starting position in the x vector. \return The dot product of the two vectors. */ SPAN_DECLARE(int32_t) vec_circular_dot_prodi16(const int16_t x[], const int16_t y[], int n, int pos); SPAN_DECLARE(void) vec_lmsi16(const int16_t x[], int16_t y[], int n, int16_t error); SPAN_DECLARE(void) vec_circular_lmsi16(const int16_t x[], int16_t y[], int n, int pos, int16_t error); /*! \brief Find the minimum and maximum values in an int16_t vector. \param x The vector to be searched. \param n The number of elements in the vector. \param out A two element vector. The first will receive the maximum. The second will receive the minimum. This parameter may be set to NULL. \return The absolute maximum value. Since the range of negative numbers exceeds the range of positive one, the returned integer is longer than the ones being searched. */ SPAN_DECLARE(int32_t) vec_min_maxi16(const int16_t x[], int n, int16_t out[]); static __inline__ int vec_norm2i16(const int16_t *vec, int len) { int i; int sum; sum = 0; for (i = 0; i < len; i++) sum += vec[i]*vec[i]; return sum; } /*- End of function --------------------------------------------------------*/ static __inline__ void vec_sari16(int16_t *vec, int len, int shift) { int i; for (i = 0; i < len; i++) vec[i] >>= shift; } /*- End of function --------------------------------------------------------*/ static __inline__ int vec_max_bitsi16(const int16_t *vec, int len) { int i; int max; int v; int b; max = 0; for (i = 0; i < len; i++) { v = abs(vec[i]); if (v > max) max = v; } b = 0; while (max != 0) { b++; max >>= 1; } return b; } /*- End of function --------------------------------------------------------*/ #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 176 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" } #endif # 178 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" #endif # 180 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/vector_int.h" /*- End of file ------------------------------------------------------------*/ # 55 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "spandsp/gsm0610.h" #endif /* expanded by -frewrite-includes */ # 55 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" 1 /* * SpanDSP - a series of DSP components for telephony * * gsm0610.h - GSM 06.10 full rate speech codec. * * Written by Steve Underwood * * Copyright (C) 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: gsm0610.h,v 1.21 2009/02/10 13:06:47 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_GSM0610_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 29 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" #define _SPANDSP_GSM0610_H_ /*! \page gsm0610_page GSM 06.10 encoding and decoding \section gsm0610_page_sec_1 What does it do? The GSM 06.10 module is an version of the widely used GSM FR codec software available from http://kbs.cs.tu-berlin.de/~jutta/toast.html. This version was produced since some versions of this codec are not bit exact, or not very efficient on modern processors. This implementation can use MMX instructions on Pentium class processors, or alternative methods on other processors. It passes all the ETSI test vectors. That is, it is a tested bit exact implementation. This implementation supports encoded data in one of three packing formats: - Unpacked, with the 76 parameters of a GSM 06.10 code frame each occupying a separate byte. (note that none of the parameters exceed 8 bits). - Packed the the 33 byte per frame, used for VoIP, where 4 bits per frame are wasted. - Packed in WAV49 format, where 2 frames are packed into 65 bytes. \section gsm0610_page_sec_2 How does it work? ???. */ enum { GSM0610_PACKING_NONE, GSM0610_PACKING_WAV49, GSM0610_PACKING_VOIP }; /*! GSM 06.10 FR codec unpacked frame. */ typedef struct { int16_t LARc[8]; int16_t Nc[4]; int16_t bc[4]; int16_t Mc[4]; int16_t xmaxc[4]; int16_t xMc[4][13]; } gsm0610_frame_t; /*! GSM 06.10 FR codec state descriptor. This defines the state of a single working instance of the GSM 06.10 FR encoder or decoder. */ typedef struct gsm0610_state_s gsm0610_state_t; #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 78 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" extern "C" { #endif # 81 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" /*! Initialise a GSM 06.10 encode or decode context. \param s The GSM 06.10 context \param packing One of the GSM0610_PACKING_xxx options. \return A pointer to the GSM 06.10 context, or NULL for error. */ SPAN_DECLARE(gsm0610_state_t *) gsm0610_init(gsm0610_state_t *s, int packing); /*! Release a GSM 06.10 encode or decode context. \param s The GSM 06.10 context \return 0 for success, else -1. */ SPAN_DECLARE(int) gsm0610_release(gsm0610_state_t *s); /*! Free a GSM 06.10 encode or decode context. \param s The GSM 06.10 context \return 0 for success, else -1. */ SPAN_DECLARE(int) gsm0610_free(gsm0610_state_t *s); /*! Set the packing format for a GSM 06.10 encode or decode context. \param s The GSM 06.10 context \param packing One of the GSM0610_PACKING_xxx options. \return 0 for success, else -1. */ SPAN_DECLARE(int) gsm0610_set_packing(gsm0610_state_t *s, int packing); /*! Encode a buffer of linear PCM data to GSM 06.10. \param s The GSM 06.10 context. \param code The GSM 06.10 data produced. \param amp The audio sample buffer. \param len The number of samples in the buffer. \return The number of bytes of GSM 06.10 data produced. */ SPAN_DECLARE(int) gsm0610_encode(gsm0610_state_t *s, uint8_t code[], const int16_t amp[], int len); /*! Decode a buffer of GSM 06.10 data to linear PCM. \param s The GSM 06.10 context. \param amp The audio sample buffer. \param code The GSM 06.10 data. \param len The number of bytes of GSM 06.10 data to be decoded. \return The number of samples returned. */ SPAN_DECLARE(int) gsm0610_decode(gsm0610_state_t *s, int16_t amp[], const uint8_t code[], int len); SPAN_DECLARE(int) gsm0610_pack_none(uint8_t c[], const gsm0610_frame_t *s); /*! Pack a pair of GSM 06.10 frames in the format used for wave files (wave type 49). \param c The buffer for the packed data. This must be at least 65 bytes long. \param s A pointer to the frames to be packed. \return The number of bytes generated. */ SPAN_DECLARE(int) gsm0610_pack_wav49(uint8_t c[], const gsm0610_frame_t *s); /*! Pack a GSM 06.10 frames in the format used for VoIP. \param c The buffer for the packed data. This must be at least 33 bytes long. \param s A pointer to the frame to be packed. \return The number of bytes generated. */ SPAN_DECLARE(int) gsm0610_pack_voip(uint8_t c[], const gsm0610_frame_t *s); SPAN_DECLARE(int) gsm0610_unpack_none(gsm0610_frame_t *s, const uint8_t c[]); /*! Unpack a pair of GSM 06.10 frames from the format used for wave files (wave type 49). \param s A pointer to a buffer into which the frames will be packed. \param c The buffer containing the data to be unpacked. This must be at least 65 bytes long. \return The number of bytes absorbed. */ SPAN_DECLARE(int) gsm0610_unpack_wav49(gsm0610_frame_t *s, const uint8_t c[]); /*! Unpack a GSM 06.10 frame from the format used for VoIP. \param s A pointer to a buffer into which the frame will be packed. \param c The buffer containing the data to be unpacked. This must be at least 33 bytes long. \return The number of bytes absorbed. */ SPAN_DECLARE(int) gsm0610_unpack_voip(gsm0610_frame_t *s, const uint8_t c[]); #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 149 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" } #endif # 151 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" #endif # 153 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/gsm0610.h" /*- End of include ---------------------------------------------------------*/ # 56 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "gsm0610_local.h" #endif /* expanded by -frewrite-includes */ # 57 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" 1 /* * SpanDSP - a series of DSP components for telephony * * gsm0610_local.h - GSM 06.10 full rate speech codec. * * Written by Steve Underwood * * Copyright (C) 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * This code is based on the widely used GSM 06.10 code available from * http://kbs.cs.tu-berlin.de/~jutta/toast.html * * $Id: gsm0610_local.h,v 1.15 2009/03/13 15:57:29 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_GSM0610_LOCAL_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 32 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" #define _GSM0610_LOCAL_H_ #define GSM0610_FRAME_LEN 160 #define GSM0610_MAGIC 0xD #if 0 /* expanded by -frewrite-includes */ #include "spandsp/private/gsm0610.h" #endif /* expanded by -frewrite-includes */ # 38 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" # 1 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/private/gsm0610.h" 1 /* * SpanDSP - a series of DSP components for telephony * * private/gsm0610.h - GSM 06.10 full rate speech codec. * * Written by Steve Underwood * * Copyright (C) 2006 Steve Underwood * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: gsm0610.h,v 1.2 2008/11/15 14:27:29 steveu Exp $ */ #if 0 /* disabled by -frewrite-includes */ #if !defined(_SPANDSP_PRIVATE_GSM0610_H_) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 29 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/private/gsm0610.h" #define _SPANDSP_PRIVATE_GSM0610_H_ /*! GSM 06.10 FR codec state descriptor. This defines the state of a single working instance of the GSM 06.10 FR encoder or decoder. */ struct gsm0610_state_s { /*! \brief One of the packing modes */ int packing; int16_t dp0[280]; /*! Preprocessing */ int16_t z1; int32_t L_z2; /*! Pre-emphasis */ int16_t mp; /*! Short term delay filter */ int16_t u[8]; int16_t LARpp[2][8]; int16_t j; /*! Long term synthesis */ int16_t nrp; /*! Short term synthesis */ int16_t v[9]; /*! Decoder postprocessing */ int16_t msr; /*! Encoder data */ int16_t e[50]; }; #endif # 65 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/spandsp/private/gsm0610.h" /*- End of include ---------------------------------------------------------*/ # 39 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" 2 static __inline__ int16_t gsm_add(int16_t a, int16_t b) { #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" __asm__ __volatile__( " addw %2,%0;\n" " jno 0f;\n" " movw $0x7fff,%0;\n" " adcw $0,%0;\n" "0:" : "=&r" (a) : "0" (a), "ir" (b) : "cc" ); return a; #else # 55 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" int32_t sum; sum = (int32_t) a + (int32_t) b; return saturate(sum); #endif # 60 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" } /*- End of function --------------------------------------------------------*/ static __inline__ int32_t gsm_l_add(int32_t a, int32_t b) { #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 66 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" __asm__ __volatile__( " addl %2,%0;\n" " jno 0f;\n" " movl $0x7fffffff,%0;\n" " adcl $0,%0;\n" "0:" : "=&r" (a) : "0" (a), "ir" (b) : "cc" ); return a; #else # 78 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" uint32_t A; if (a < 0) { if (b >= 0) return a + b; /*endif*/ A = (uint32_t) -(a + 1) + (uint32_t) -(b + 1); return (A >= INT32_MAX) ? INT32_MIN : -(int32_t) A - 2; } /*endif*/ if (b <= 0) return a + b; /*endif*/ A = (uint32_t) a + (uint32_t) b; return (A > INT32_MAX) ? INT32_MAX : A; #endif # 95 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t gsm_sub(int16_t a, int16_t b) { int32_t diff; diff = (int32_t) a - (int32_t) b; return saturate(diff); } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t gsm_mult(int16_t a, int16_t b) { if (a == INT16_MIN && b == INT16_MIN) return INT16_MAX; /*endif*/ return (int16_t) (((int32_t) a * (int32_t) b) >> 15); } /*- End of function --------------------------------------------------------*/ static __inline__ int32_t gsm_l_mult(int16_t a, int16_t b) { assert (a != INT16_MIN || b != INT16_MIN); return ((int32_t) a * (int32_t) b) << 1; } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t gsm_mult_r(int16_t a, int16_t b) { int32_t prod; if (b == INT16_MIN && a == INT16_MIN) return INT16_MAX; /*endif*/ prod = (int32_t) a * (int32_t) b + 16384; prod >>= 15; return (int16_t) (prod & 0xFFFF); } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t gsm_abs(int16_t a) { return (a == INT16_MIN) ? INT16_MAX : (int16_t) abs(a); } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t gsm_asr(int16_t a, int n) { if (n >= 16) return (int16_t) (-(a < 0)); /*endif*/ if (n <= -16) return 0; /*endif*/ if (n < 0) return (int16_t) (a << -n); /*endif*/ return (int16_t) (a >> n); } /*- End of function --------------------------------------------------------*/ static __inline__ int16_t gsm_asl(int16_t a, int n) { if (n >= 16) return 0; /*endif*/ if (n <= -16) return (int16_t) (-(a < 0)); /*endif*/ if (n < 0) return gsm_asr(a, -n); /*endif*/ return (int16_t) (a << n); } /*- End of function --------------------------------------------------------*/ extern void gsm0610_long_term_predictor(gsm0610_state_t *s, int16_t d[40], int16_t *dp, /* [-120..-1] d' IN */ int16_t e[40], int16_t dpp[40], int16_t *Nc, int16_t *bc); extern void gsm0610_lpc_analysis(gsm0610_state_t *s, int16_t amp[160], int16_t LARc[8]); extern void gsm0610_preprocess(gsm0610_state_t *s, const int16_t amp[], int16_t so[]); extern void gsm0610_short_term_analysis_filter(gsm0610_state_t *s, int16_t LARc[8], int16_t amp[160]); extern void gsm0610_long_term_synthesis_filtering(gsm0610_state_t *s, int16_t Ncr, int16_t bcr, int16_t erp[40], int16_t *drp); /* [-120..-1] IN, [0..40] OUT */ extern void gsm0610_rpe_decoding(gsm0610_state_t *s, int16_t xmaxcr, int16_t Mcr, int16_t *xMcr, /* [0..12], 3 bits IN */ int16_t erp[40]); extern void gsm0610_rpe_encoding(gsm0610_state_t *s, int16_t *e, /* [-5..-1][0..39][40..44] IN/OUT */ int16_t *xmaxc, int16_t *Mc, int16_t xMc[13]); extern void gsm0610_short_term_synthesis_filter(gsm0610_state_t *s, int16_t LARcr[8], int16_t drp[40], int16_t amp[160]); extern int16_t gsm0610_norm(int32_t a); #endif # 218 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_local.h" /*- End of include ---------------------------------------------------------*/ # 58 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" 2 /* 4.2.4 .. 4.2.7 LPC ANALYSIS SECTION */ /* The number of left shifts needed to normalize the 32 bit variable x for positive values on the interval with minimum of minimum of 1073741824 (01000000000000000000000000000000) and maximum of 2147483647 (01111111111111111111111111111111) and for negative values on the interval with minimum of -2147483648 (-10000000000000000000000000000000) and maximum of -1073741824 ( -1000000000000000000000000000000). In order to normalize the result, the following operation must be done: norm_var1 = x << gsm0610_norm(x); (That's 'ffs', only from the left, not the right..) */ int16_t gsm0610_norm(int32_t x) { assert(x != 0); if (x < 0) { if (x <= -1073741824) return 0; /*endif*/ x = ~x; } /*endif*/ return (int16_t) (30 - top_bit(x)); } /*- End of function --------------------------------------------------------*/ /* (From p. 46, end of section 4.2.5) NOTE: The following lines gives [sic] one correct implementation of the div(num, denum) arithmetic operation. Compute div which is the integer division of num by denom: with denom >= num > 0 */ static int16_t gsm_div(int16_t num, int16_t denom) { int32_t num32; int32_t denom32; int16_t div; int k; /* The parameter num sometimes becomes zero. Although this is explicitly guarded against in 4.2.5, we assume that the result should then be zero as well. */ assert(num >= 0 && denom >= num); if (num == 0) return 0; /*endif*/ num32 = num; denom32 = denom; div = 0; k = 15; while (k--) { div <<= 1; num32 <<= 1; if (num32 >= denom32) { num32 -= denom32; div++; } /*endif*/ } /*endwhile*/ return div; } /*- End of function --------------------------------------------------------*/ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(SPANDSP_USE_MMX) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 138 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" static void gsm0610_vec_vsraw(const int16_t *p, int n, int bits) { static const int64_t ones = 0x0001000100010001LL; if (n == 0) return; /*endif*/ #if 0 /* disabled by -frewrite-includes */ #if defined(__x86_64__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 146 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" __asm__ __volatile__( " leaq -16(%%rsi,%%rax,2),%%rdx;\n" /* edx = top - 16 */ " emms;\n" " movd %%ecx,%%mm3;\n" " movq %[ones],%%mm2;\n" " psllw %%mm3,%%mm2;\n" " psrlw $1,%%mm2;\n" " cmpq %%rdx,%%rsi;" " ja 4f;\n" " .p2align 2;\n" /* 8 words per iteration */ "6:\n" " movq (%%rsi),%%mm0;\n" " movq 8(%%rsi),%%mm1;\n" " paddsw %%mm2,%%mm0;\n" " psraw %%mm3,%%mm0;\n" " paddsw %%mm2,%%mm1;\n" " psraw %%mm3,%%mm1;\n" " movq %%mm0,(%%rsi);\n" " movq %%mm1,8(%%rsi);\n" " addq $16,%%rsi;\n" " cmpq %%rdx,%%rsi;\n" " jbe 6b;\n" " .p2align 2;\n" "4:\n" " addq $12,%%rdx;\n" /* now edx = top-4 */ " cmpq %%rdx,%%rsi;\n" " ja 3f;\n" " .p2align 2;\n" /* do up to 6 words, two per iteration */ "5:\n" " movd (%%rsi),%%mm0;\n" " paddsw %%mm2,%%mm0;\n" " psraw %%mm3,%%mm0;\n" " movd %%mm0,(%%rsi);\n" " addq $4,%%rsi;\n" " cmpq %%rdx,%%rsi;\n" " jbe 5b;\n" " .p2align 2;\n" "3:\n" " addq $2,%%rdx;\n" /* now edx = top-2 */ " cmpq %%rdx,%%rsi;\n" " ja 2f;\n" " movzwl (%%rsi),%%eax;\n" " movd %%eax,%%mm0;\n" " paddsw %%mm2,%%mm0;\n" " psraw %%mm3,%%mm0;\n" " movd %%mm0,%%eax;\n" " movw %%ax,(%%rsi);\n" " .p2align 2;\n" "2:\n" " emms;\n" : : "S" (p), "a" (n), "c" (bits), [ones] "m" (ones) : "edx" ); #else # 209 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" __asm__ __volatile__( " leal -16(%%esi,%%eax,2),%%edx;\n" /* edx = top - 16 */ " emms;\n" " movd %%ecx,%%mm3;\n" " movq %[ones],%%mm2;\n" " psllw %%mm3,%%mm2;\n" " psrlw $1,%%mm2;\n" " cmpl %%edx,%%esi;" " ja 4f;\n" " .p2align 2;\n" /* 8 words per iteration */ "6:\n" " movq (%%esi),%%mm0;\n" " movq 8(%%esi),%%mm1;\n" " paddsw %%mm2,%%mm0;\n" " psraw %%mm3,%%mm0;\n" " paddsw %%mm2,%%mm1;\n" " psraw %%mm3,%%mm1;\n" " movq %%mm0,(%%esi);\n" " movq %%mm1,8(%%esi);\n" " addl $16,%%esi;\n" " cmpl %%edx,%%esi;\n" " jbe 6b;\n" " .p2align 2;\n" "4:\n" " addl $12,%%edx;\n" /* now edx = top-4 */ " cmpl %%edx,%%esi;\n" " ja 3f;\n" " .p2align 2;\n" /* do up to 6 words, two per iteration */ "5:\n" " movd (%%esi),%%mm0;\n" " paddsw %%mm2,%%mm0;\n" " psraw %%mm3,%%mm0;\n" " movd %%mm0,(%%esi);\n" " addl $4,%%esi;\n" " cmpl %%edx,%%esi;\n" " jbe 5b;\n" " .p2align 2;\n" "3:\n" " addl $2,%%edx;\n" /* now edx = top-2 */ " cmpl %%edx,%%esi;\n" " ja 2f;\n" " movzwl (%%esi),%%eax;\n" " movd %%eax,%%mm0;\n" " paddsw %%mm2,%%mm0;\n" " psraw %%mm3,%%mm0;\n" " movd %%mm0,%%eax;\n" " movw %%ax,(%%esi);\n" " .p2align 2;\n" "2:\n" " emms;\n" : : "S" (p), "a" (n), "c" (bits), [ones] "m" (ones) : "edx" ); #endif # 272 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" } /*- End of function --------------------------------------------------------*/ #endif # 275 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" /* 4.2.4 */ static void autocorrelation(int16_t amp[GSM0610_FRAME_LEN], int32_t L_ACF[9]) { int k; int16_t smax; int16_t scalauto; #if 0 /* disabled by -frewrite-includes */ #if !(defined(__GNUC__) && defined(SPANDSP_USE_MMX)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 283 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" int i; int temp; int16_t *sp; int16_t sl; #endif # 288 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" /* The goal is to compute the array L_ACF[k]. The signal s[i] must be scaled in order to avoid an overflow situation. */ /* Dynamic scaling of the array s[0..159] */ /* Search for the maximum. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(SPANDSP_USE_MMX) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 295 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" smax = saturate(vec_min_maxi16(amp, GSM0610_FRAME_LEN, NULL)); #else # 297 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" for (smax = 0, k = 0; k < GSM0610_FRAME_LEN; k++) { temp = saturated_abs16(amp[k]); if (temp > smax) smax = (int16_t) temp; /*endif*/ } /*endfor*/ #endif # 306 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" /* Computation of the scaling factor. */ if (smax == 0) { scalauto = 0; } else { assert(smax > 0); scalauto = (int16_t) (4 - gsm0610_norm((int32_t) smax << 16)); } /*endif*/ /* Scaling of the array s[0...159] */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(SPANDSP_USE_MMX) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 321 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" if (scalauto > 0) gsm0610_vec_vsraw(amp, GSM0610_FRAME_LEN, scalauto); /*endif*/ #else # 325 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" if (scalauto > 0) { for (k = 0; k < GSM0610_FRAME_LEN; k++) amp[k] = gsm_mult_r(amp[k], 16384 >> (scalauto - 1)); /*endfor*/ } /*endif*/ #endif # 333 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" /* Compute the L_ACF[..]. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(SPANDSP_USE_MMX) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 336 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" for (k = 0; k < 9; k++) L_ACF[k] = vec_dot_prodi16(amp, amp + k, GSM0610_FRAME_LEN - k) << 1; /*endfor*/ #else # 340 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" sp = amp; sl = *sp; L_ACF[0] = ((int32_t) sl*(int32_t) sp[0]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] = ((int32_t) sl*(int32_t) sp[-1]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] = ((int32_t) sl*(int32_t) sp[-2]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] = ((int32_t) sl*(int32_t) sp[-3]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] += ((int32_t) sl*(int32_t) sp[-3]); L_ACF[4] = ((int32_t) sl*(int32_t) sp[-4]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] += ((int32_t) sl*(int32_t) sp[-3]); L_ACF[4] += ((int32_t) sl*(int32_t) sp[-4]); L_ACF[5] = ((int32_t) sl*(int32_t) sp[-5]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] += ((int32_t) sl*(int32_t) sp[-3]); L_ACF[4] += ((int32_t) sl*(int32_t) sp[-4]); L_ACF[5] += ((int32_t) sl*(int32_t) sp[-5]); L_ACF[6] = ((int32_t) sl*(int32_t) sp[-6]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] += ((int32_t) sl*(int32_t) sp[-3]); L_ACF[4] += ((int32_t) sl*(int32_t) sp[-4]); L_ACF[5] += ((int32_t) sl*(int32_t) sp[-5]); L_ACF[6] += ((int32_t) sl*(int32_t) sp[-6]); L_ACF[7] = ((int32_t) sl*(int32_t) sp[-7]); sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] += ((int32_t) sl*(int32_t) sp[-3]); L_ACF[4] += ((int32_t) sl*(int32_t) sp[-4]); L_ACF[5] += ((int32_t) sl*(int32_t) sp[-5]); L_ACF[6] += ((int32_t) sl*(int32_t) sp[-6]); L_ACF[7] += ((int32_t) sl*(int32_t) sp[-7]); L_ACF[8] = ((int32_t) sl*(int32_t) sp[-8]); for (i = 9; i < GSM0610_FRAME_LEN; i++) { sl = *++sp; L_ACF[0] += ((int32_t) sl*(int32_t) sp[0]); L_ACF[1] += ((int32_t) sl*(int32_t) sp[-1]); L_ACF[2] += ((int32_t) sl*(int32_t) sp[-2]); L_ACF[3] += ((int32_t) sl*(int32_t) sp[-3]); L_ACF[4] += ((int32_t) sl*(int32_t) sp[-4]); L_ACF[5] += ((int32_t) sl*(int32_t) sp[-5]); L_ACF[6] += ((int32_t) sl*(int32_t) sp[-6]); L_ACF[7] += ((int32_t) sl*(int32_t) sp[-7]); L_ACF[8] += ((int32_t) sl*(int32_t) sp[-8]); } /*endfor*/ for (k = 0; k < 9; k++) L_ACF[k] <<= 1; /*endfor*/ #endif # 413 "/home/anand/Documents/GNU/BlackBerry/sipdroid/app/src/main/jni/spandsp/gsm0610_lpc.c" /* Rescaling of the array s[0..159] */ if (scalauto > 0) { assert(scalauto <= 4); for (k = 0; k < GSM0610_FRAME_LEN; k++) amp[k] <<= scalauto; /*endfor*/ } /*endif*/ } /*- End of function --------------------------------------------------------*/ /* 4.2.5 */ static void reflection_coefficients(int32_t L_ACF[9], int16_t r[8]) { int i; int m; int n; int16_t temp; int16_t ACF[9]; int16_t P[9]; int16_t K[9]; /* Schur recursion with 16 bits arithmetic. */ if (L_ACF[0] == 0) { for (i = 8; i--; *r++ = 0) ; /*endfor*/ return; } /*endif*/ assert(L_ACF[0] != 0); temp = gsm0610_norm(L_ACF[0]); assert(temp >= 0 && temp < 32); /* ? overflow ? */ for (i = 0; i <= 8; i++) ACF[i] = (int16_t) ((L_ACF[i] << temp) >> 16); /*endfor*/ /* Initialize array P[..] and K[..] for the recursion. */ for (i = 1; i <= 7; i++) K[i] = ACF[i]; /*endfor*/ for (i = 0; i <= 8; i++) P[i] = ACF[i]; /*endfor*/ /* Compute reflection coefficients */ for (n = 1; n <= 8; n++, r++) { temp = P[1]; temp = saturated_abs16(temp); if (P[0] < temp) { for (i = n; i <= 8; i++) *r++ = 0; /*endfor*/ return; } /*endif*/ *r = gsm_div(temp, P[0]); assert(*r >= 0); if (P[1] > 0) *r = -*r; /* r[n] = sub(0, r[n]) */ /*endif*/ assert(*r != INT16_MIN); if (n == 8) return; /*endif*/ /* Schur recursion */ temp = gsm_mult_r(P[1], *r); P[0] = saturated_add16(P[0], temp); for (m = 1; m <= 8 - n; m++) { temp = gsm_mult_r(K[m], *r); P[m] = saturated_add16(P[m + 1], temp); temp = gsm_mult_r(P[m + 1], *r); K[m] = saturated_add16(K[m], temp); } /*endfor*/ } /*endfor*/ } /*- End of function --------------------------------------------------------*/ /* 4.2.6 */ static void transform_to_log_area_ratios(int16_t r[8]) { int16_t temp; int i; /* The following scaling for r[..] and LAR[..] has been used: r[..] = integer (real_r[..]*32768.); -1 <= real_r < 1. LAR[..] = integer (real_LAR[..] * 16384); with -1.625 <= real_LAR <= 1.625 */ /* Computation of the LAR[0..7] from the r[0..7] */ for (i = 1; i <= 8; i++, r++) { temp = saturated_abs16(*r); assert(temp >= 0); if (temp < 22118) { temp >>= 1; } else if (temp < 31130) { assert(temp >= 11059); temp -= 11059; } else { assert(temp >= 26112); temp -= 26112; temp <<= 2; } /*endif*/ *r = (*r < 0) ? -temp : temp; assert(*r != INT16_MIN); } /*endfor*/ } /*- End of function --------------------------------------------------------*/ /* 4.2.7 */ static void quantization_and_coding(int16_t LAR[8]) { int16_t temp; /* This procedure needs four tables; the following equations give the optimum scaling for the constants: A[0..7] = integer(real_A[0..7] * 1024) B[0..7] = integer(real_B[0..7] * 512) MAC[0..7] = maximum of the LARc[0..7] MIC[0..7] = minimum of the LARc[0..7] */ #undef STEP #define STEP(A,B,MAC,MIC) \ temp = saturated_mul16(A, *LAR); \ temp = saturated_add16(temp, B); \ temp = saturated_add16(temp, 256); \ temp >>= 9; \ *LAR = (int16_t) ((temp > MAC) \ ? \ MAC - MIC \ : \ ((temp < MIC) ? 0 : temp - MIC)); \ LAR++; STEP(20480, 0, 31, -32); STEP(20480, 0, 31, -32); STEP(20480, 2048, 15, -16); STEP(20480, -2560, 15, -16); STEP(13964, 94, 7, -8); STEP(15360, -1792, 7, -8); STEP( 8534, -341, 3, -4); STEP( 9036, -1144, 3, -4); #undef STEP } /*- End of function --------------------------------------------------------*/ void gsm0610_lpc_analysis(gsm0610_state_t *s, int16_t amp[GSM0610_FRAME_LEN], int16_t LARc[8]) { int32_t L_ACF[9]; autocorrelation(amp, L_ACF); reflection_coefficients(L_ACF, LARc); transform_to_log_area_ratios(LARc); quantization_and_coding(LARc); } /*- End of function --------------------------------------------------------*/ /*- End of file ------------------------------------------------------------*/