18#ifndef __APP_TYPE_H_INCLUDED__
19#define __APP_TYPE_H_INCLUDED__
23#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(__cplusplus)
46# define UINT64_MAX ((uint64_t)(-1))
57#if !defined(__USE_LOCAL_STDBOOL__)
58# if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(__cplusplus)
69# undef __USE_LOCAL_STDINT_STDBOOL__
72#if !__IS_COMPILER_GCC__ && !__IS_COMPILER_ARM_COMPILER_5__ && !__IS_COMPILER_LLVM__
82#define __optimal_bit_sz (sizeof(uintalu_t) * 8)
83#define __optimal_bit_msk (__optimal_bit_sz - 1)
103#include "../__common/__type.h"
105#if __IS_COMPILER_IAR__
108# define M_E 2.71828182845904523536
109# define M_LOG2E 1.44269504088896340736
110# define M_LOG10E 0.434294481903251827651
111# define M_LN2 0.693147180559945309417
112# define M_LN10 2.30258509299404568402
113# define M_PI 3.14159265358979323846
114# define M_PI_2 1.57079632679489661923
115# define M_PI_4 0.785398163397448309616
116# define M_1_PI 0.318309886183790671538
117# define M_2_PI 0.636619772367581343076
118# define M_2_SQRTPI 1.12837916709551257390
119# define M_SQRT2 1.41421356237309504880
120# define M_SQRT1_2 0.707106781186547524401
126extern size_t strlcpy(
char *dst,
const char *src,
size_t dsize);
127extern size_t strlcat(
char *dst,
const char *src,
size_t dsize);
128extern char *
strsep(
char **stringp,
const char *delim);
129extern char *
strcasestr(
const char *str,
const char *substr);
134#if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_STDIO == ENABLED) && _DLIB_FILE_DESCRIPTOR
150#if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_TIME == ENABLED)
156# ifndef __IAR_TYPE_CLOCKID_T__
157# define __IAR_TYPE_CLOCKID_T__
176#elif __IS_COMPILER_GCC__
178#if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_STDIO == ENABLED)
181# define off64_t off_t
182# define ftello64 ftell
183# define fseeko64 fseek
186#ifndef __VSF_APPLET__
190# define alloca(__s) __builtin_alloca(__s)
197extern char *
strcasestr(
const char *str,
const char *substr);
int64_t intmax_t
Definition type.h:52
uint32_t uintptr_t
Definition type.h:49
unsigned int uint_fast16_t
Definition type.h:32
signed short int16_t
Definition type.h:31
unsigned short uint16_t
Definition type.h:30
signed long long int_fast64_t
Definition type.h:43
uint64_t uintmax_t
Definition type.h:51
signed int int_fast8_t
Definition type.h:28
unsigned int uint32_t
Definition type.h:35
int32_t intptr_t
Definition type.h:50
unsigned int uint_fast32_t
Definition type.h:37
signed int int_fast16_t
Definition type.h:33
unsigned long long uint64_t
Definition type.h:40
unsigned long long uint_fast64_t
Definition type.h:42
signed int int32_t
Definition type.h:36
unsigned char uint8_t
Definition type.h:25
unsigned int uint_fast8_t
Definition type.h:27
signed long long int64_t
Definition type.h:41
signed int int_fast32_t
Definition type.h:38
signed char int8_t
Definition type.h:26
int32_t intalu_t
Definition type.h:69
uint32_t uintalu_t
Definition type.h:68
clockid_t
Definition types.h:138
__USECONDS_T useconds_t
Definition types.h:136
#define CLOCK_MONOTONIC
Definition types.h:142
#define CLOCK_REALTIME
Definition types.h:140
long long off64_t
Definition types.h:97
long off_t
Definition types.h:95
#define clock_gettime
Definition time.h:33
unsigned char uint_fast8_t
Definition stdint.h:23
unsigned uint32_t
Definition stdint.h:9
int int32_t
Definition stdint.h:8
long long int64_t
Definition stdint.h:10
unsigned long long uint64_t
Definition stdint.h:11
char int_fast8_t
Definition stdint.h:22
#define ftello64
Definition stdio.h:60
#define fseeko
Definition stdio.h:56
#define fseeko64
Definition stdio.h:57
#define ftello
Definition stdio.h:59
size_t strlcpy(char *dest, const char *src, size_t n)
Definition vsf_xboot.c:39
char * strcasestr(const char *haystack, const char *needle)
char * strsep(char **strp, const char *delim)
Definition vsf_xboot.c:44
struct timespec it_interval
Definition time.h:73
struct timespec it_value
Definition time.h:74
uint64_t offset
Definition vsf_memfs.h:49
size_t strlcat(char *dst, const char *src, size_t dsize)
Definition x86_compiler.c:52