18#ifndef __VSF_TYPE_H_INCLUDED__
19#define __VSF_TYPE_H_INCLUDED__
25#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(__cplusplus)
49#if !defined(__USE_LOCAL_STDBOOL__)
50# if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(__cplusplus)
59# undef __USE_LOCAL_STDINT_STDBOOL__
62#if !__IS_COMPILER_GCC__ && !__IS_COMPILER_LLVM__
72#define __optimal_bit_sz (sizeof(uintalu_t) * 8)
73#define __optimal_bit_msk (__optimal_bit_sz - 1)
78#if defined(__CPU_X86__) || defined(__CPU_WEBASSEMBLY__)
81#elif defined(__CPU_X64__)
98#include "../__common/__type.h"
107# if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_STDIO == ENABLED)
111# ifndef __VSF_COMPILER_STDIO_H__
112# define __VSF_COMPILER_STDIO_H__
114typedef long long off_t;
121# define ftello64 ftell
122# define fseeko64 fseek
128# define M_E 2.71828182845904523536
129# define M_LOG2E 1.44269504088896340736
130# define M_LOG10E 0.434294481903251827651
131# define M_LN2 0.693147180559945309417
132# define M_LN10 2.30258509299404568402
133# define M_PI 3.14159265358979323846
134# define M_PI_2 1.57079632679489661923
135# define M_PI_4 0.785398163397448309616
136# define M_1_PI 0.318309886183790671538
137# define M_2_PI 0.636619772367581343076
138# define M_2_SQRTPI 1.12837916709551257390
139# define M_SQRT2 1.41421356237309504880
140# define M_SQRT1_2 0.707106781186547524401
143# ifndef __VSF_APPLET__
144# define strcasecmp stricmp
145# define strncasecmp strnicmp
149# ifndef __VSF_APPLET__
151# define alloca _alloca
153extern void * _alloca(
size_t);
154extern int stricmp(
const char *s1,
const char *s2);
155extern int strnicmp(
const char *s1,
const char *s2,
size_t n);
157extern char *
strsep(
char **stringp,
const char *delim);
158extern size_t strlcpy(
char *dst,
const char *src,
size_t dsize);
159extern size_t strlcat(
char *dst,
const char *src,
size_t dsize);
160extern char *
strcasestr(
const char *str,
const char *substr);
161extern char *
strtok_r(
char *str,
const char *delim,
char **saveptr);
163extern void srandom(
unsigned int seed);
164extern long int random(
void);
168# if !(VSF_USE_LINUX == ENABLED && VSF_LINUX_USE_SIMPLE_LIBC == ENABLED && VSF_LINUX_USE_SIMPLE_TIME == ENABLED)
169# ifndef __VSF_COMPILER_TIME_H__
170# define __VSF_COMPILER_TIME_H__
int32_t intalu_t
Definition type.h:69
uint32_t uintalu_t
Definition type.h:68
clockid_t
Definition types.h:138
#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
#define nanosleep
Definition time.h:42
long long int64_t
Definition stdint.h:10
unsigned long long uint64_t
Definition stdint.h:11
void srandom(unsigned int seed)
char * strtok_r(char *str, const char *delim, char **saveptr)
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
size_t strlcat(char *dst, const char *src, size_t dsize)
Definition x86_compiler.c:52