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 _Static_assert static_assert
111# define M_E 2.71828182845904523536
112# define M_LOG2E 1.44269504088896340736
113# define M_LOG10E 0.434294481903251827651
114# define M_LN2 0.693147180559945309417
115# define M_LN10 2.30258509299404568402
116# define M_PI 3.14159265358979323846
117# define M_PI_2 1.57079632679489661923
118# define M_PI_4 0.785398163397448309616
119# define M_1_PI 0.318309886183790671538
120# define M_2_PI 0.636619772367581343076
121# define M_2_SQRTPI 1.12837916709551257390
122# define M_SQRT2 1.41421356237309504880
123# define M_SQRT1_2 0.707106781186547524401
129extern size_t strlcpy(
char *dst,
const char *src,
size_t dsize);
130extern size_t strlcat(
char *dst,
const char *src,
size_t dsize);
131extern char *
strsep(
char **stringp,
const char *delim);
132extern char *
strcasestr(
const char *str,
const char *substr);
137#if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_STDIO == ENABLED) && _DLIB_FILE_DESCRIPTOR
153#if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_TIME == ENABLED)
159# ifndef __IAR_TYPE_CLOCKID_T__
160# define __IAR_TYPE_CLOCKID_T__
179#elif __IS_COMPILER_GCC__
181#if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_STDIO == ENABLED)
184# define off64_t off_t
185# define ftello64 ftell
186# define fseeko64 fseek
189#ifndef __VSF_APPLET__
193# define alloca(__s) __builtin_alloca(__s)
200extern char *
strcasestr(
const char *str,
const char *substr);
signed long long int_fast64_t
Definition type.h:43
unsigned long long uint64_t
Definition type.h:40
unsigned long long uint_fast64_t
Definition type.h:42
signed long long int64_t
Definition type.h:41
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
unsigned int uint32_t
Definition lvgl.h:43
signed int int32_t
Definition lvgl.h:44
int32_t intmax_t
Definition type.h:48
signed long int int_least32_t typedef uint32_t uintptr_t
Definition type.h:45
signed short int16_t
Definition type.h:30
unsigned short uint16_t
Definition type.h:29
unsigned char uint_fast8_t
Definition type.h:26
unsigned long int uint32_t
Definition type.h:34
int32_t intptr_t
Definition type.h:46
uint32_t uintmax_t
Definition type.h:47
signed short int_fast16_t
Definition type.h:32
unsigned long int uint_fast32_t
Definition type.h:36
unsigned short uint_fast16_t
Definition type.h:31
unsigned char uint8_t
Definition type.h:24
signed long int int32_t
Definition type.h:35
signed long int int_fast32_t
Definition type.h:37
signed char int8_t
Definition type.h:25
signed char int_fast8_t
Definition type.h:27
#define clock_gettime
Definition time.h:33
unsigned char uint_fast8_t
Definition stdint.h:23
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:72
struct timespec it_value
Definition time.h:73
uint64_t offset
Definition vsf_memfs.h:49
size_t strlcat(char *dst, const char *src, size_t dsize)
Definition x86_compiler.c:52