-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e97d0c6
commit 1fc281e
Showing
303 changed files
with
12,501 additions
and
4,084 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.ccls-cache/@@home@hak@dev@s3k/@opt@riscv@riscv64-unknown-elf@include@_newlib_version.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* _newlib_version.h. Generated from _newlib_version.hin by configure. */ | ||
/* Version macros for internal and downstream use. */ | ||
#ifndef _NEWLIB_VERSION_H__ | ||
#define _NEWLIB_VERSION_H__ 1 | ||
|
||
#define _NEWLIB_VERSION "4.4.0" | ||
#define __NEWLIB__ 4 | ||
#define __NEWLIB_MINOR__ 4 | ||
#define __NEWLIB_PATCHLEVEL__ 0 | ||
|
||
#endif /* !_NEWLIB_VERSION_H__ */ |
Binary file added
BIN
+1.25 KB
.ccls-cache/@@home@hak@dev@s3k/@opt@riscv@riscv64-unknown-elf@include@_newlib_version.h.blob
Binary file not shown.
249 changes: 249 additions & 0 deletions
249
...-cache/@@home@hak@dev@s3k/@opt@riscv@riscv64-unknown-elf@include@machine@_default_types.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,249 @@ | ||
/* | ||
* $Id$ | ||
*/ | ||
|
||
#ifndef _MACHINE__DEFAULT_TYPES_H | ||
#define _MACHINE__DEFAULT_TYPES_H | ||
|
||
#include <sys/features.h> | ||
|
||
/* | ||
* Guess on types by examining *_MIN / *_MAX defines. | ||
*/ | ||
#if __GNUC_PREREQ(3, 3) | ||
/* GCC >= 3.3.0 has __<val>__ implicitly defined. */ | ||
#define __EXP(x) __##x##__ | ||
#else | ||
/* Fall back to POSIX versions from <limits.h> */ | ||
#define __EXP(x) x | ||
#include <limits.h> | ||
#endif | ||
|
||
/* Check if "long long" is 64bit wide */ | ||
/* Modern GCCs provide __LONG_LONG_MAX__, SUSv3 wants LLONG_MAX */ | ||
#if (defined(__LONG_LONG_MAX__) && (__LONG_LONG_MAX__ > 0x7fffffff)) || (defined(LLONG_MAX) && (LLONG_MAX > 0x7fffffff)) | ||
#define __have_longlong64 1 | ||
#endif | ||
|
||
/* Check if "long" is 64bit or 32bit wide */ | ||
#if __EXP(LONG_MAX) > 0x7fffffff | ||
#define __have_long64 1 | ||
#elif __EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) | ||
#define __have_long32 1 | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifdef __INT8_TYPE__ | ||
typedef __INT8_TYPE__ __int8_t; | ||
#ifdef __UINT8_TYPE__ | ||
typedef __UINT8_TYPE__ __uint8_t; | ||
#else | ||
typedef unsigned __INT8_TYPE__ __uint8_t; | ||
#endif | ||
#define ___int8_t_defined 1 | ||
#elif __EXP(SCHAR_MAX) == 0x7f | ||
typedef signed char __int8_t; | ||
typedef unsigned char __uint8_t; | ||
#define ___int8_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT16_TYPE__ | ||
typedef __INT16_TYPE__ __int16_t; | ||
#ifdef __UINT16_TYPE__ | ||
typedef __UINT16_TYPE__ __uint16_t; | ||
#else | ||
typedef unsigned __INT16_TYPE__ __uint16_t; | ||
#endif | ||
#define ___int16_t_defined 1 | ||
#elif __EXP(INT_MAX) == 0x7fff | ||
typedef signed int __int16_t; | ||
typedef unsigned int __uint16_t; | ||
#define ___int16_t_defined 1 | ||
#elif __EXP(SHRT_MAX) == 0x7fff | ||
typedef signed short __int16_t; | ||
typedef unsigned short __uint16_t; | ||
#define ___int16_t_defined 1 | ||
#elif __EXP(SCHAR_MAX) == 0x7fff | ||
typedef signed char __int16_t; | ||
typedef unsigned char __uint16_t; | ||
#define ___int16_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT32_TYPE__ | ||
typedef __INT32_TYPE__ __int32_t; | ||
#ifdef __UINT32_TYPE__ | ||
typedef __UINT32_TYPE__ __uint32_t; | ||
#else | ||
typedef unsigned __INT32_TYPE__ __uint32_t; | ||
#endif | ||
#define ___int32_t_defined 1 | ||
#elif __EXP(INT_MAX) == 0x7fffffffL | ||
typedef signed int __int32_t; | ||
typedef unsigned int __uint32_t; | ||
#define ___int32_t_defined 1 | ||
#elif __EXP(LONG_MAX) == 0x7fffffffL | ||
typedef signed long __int32_t; | ||
typedef unsigned long __uint32_t; | ||
#define ___int32_t_defined 1 | ||
#elif __EXP(SHRT_MAX) == 0x7fffffffL | ||
typedef signed short __int32_t; | ||
typedef unsigned short __uint32_t; | ||
#define ___int32_t_defined 1 | ||
#elif __EXP(SCHAR_MAX) == 0x7fffffffL | ||
typedef signed char __int32_t; | ||
typedef unsigned char __uint32_t; | ||
#define ___int32_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT64_TYPE__ | ||
typedef __INT64_TYPE__ __int64_t; | ||
#ifdef __UINT64_TYPE__ | ||
typedef __UINT64_TYPE__ __uint64_t; | ||
#else | ||
typedef unsigned __INT64_TYPE__ __uint64_t; | ||
#endif | ||
#define ___int64_t_defined 1 | ||
#elif __EXP(LONG_MAX) > 0x7fffffff | ||
typedef signed long __int64_t; | ||
typedef unsigned long __uint64_t; | ||
#define ___int64_t_defined 1 | ||
|
||
/* GCC has __LONG_LONG_MAX__ */ | ||
#elif defined(__LONG_LONG_MAX__) && (__LONG_LONG_MAX__ > 0x7fffffff) | ||
typedef signed long long __int64_t; | ||
typedef unsigned long long __uint64_t; | ||
#define ___int64_t_defined 1 | ||
|
||
/* POSIX mandates LLONG_MAX in <limits.h> */ | ||
#elif defined(LLONG_MAX) && (LLONG_MAX > 0x7fffffff) | ||
typedef signed long long __int64_t; | ||
typedef unsigned long long __uint64_t; | ||
#define ___int64_t_defined 1 | ||
|
||
#elif __EXP(INT_MAX) > 0x7fffffff | ||
typedef signed int __int64_t; | ||
typedef unsigned int __uint64_t; | ||
#define ___int64_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT_LEAST8_TYPE__ | ||
typedef __INT_LEAST8_TYPE__ __int_least8_t; | ||
#ifdef __UINT_LEAST8_TYPE__ | ||
typedef __UINT_LEAST8_TYPE__ __uint_least8_t; | ||
#else | ||
typedef unsigned __INT_LEAST8_TYPE__ __uint_least8_t; | ||
#endif | ||
#define ___int_least8_t_defined 1 | ||
#elif defined(___int8_t_defined) | ||
typedef __int8_t __int_least8_t; | ||
typedef __uint8_t __uint_least8_t; | ||
#define ___int_least8_t_defined 1 | ||
#elif defined(___int16_t_defined) | ||
typedef __int16_t __int_least8_t; | ||
typedef __uint16_t __uint_least8_t; | ||
#define ___int_least8_t_defined 1 | ||
#elif defined(___int32_t_defined) | ||
typedef __int32_t __int_least8_t; | ||
typedef __uint32_t __uint_least8_t; | ||
#define ___int_least8_t_defined 1 | ||
#elif defined(___int64_t_defined) | ||
typedef __int64_t __int_least8_t; | ||
typedef __uint64_t __uint_least8_t; | ||
#define ___int_least8_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT_LEAST16_TYPE__ | ||
typedef __INT_LEAST16_TYPE__ __int_least16_t; | ||
#ifdef __UINT_LEAST16_TYPE__ | ||
typedef __UINT_LEAST16_TYPE__ __uint_least16_t; | ||
#else | ||
typedef unsigned __INT_LEAST16_TYPE__ __uint_least16_t; | ||
#endif | ||
#define ___int_least16_t_defined 1 | ||
#elif defined(___int16_t_defined) | ||
typedef __int16_t __int_least16_t; | ||
typedef __uint16_t __uint_least16_t; | ||
#define ___int_least16_t_defined 1 | ||
#elif defined(___int32_t_defined) | ||
typedef __int32_t __int_least16_t; | ||
typedef __uint32_t __uint_least16_t; | ||
#define ___int_least16_t_defined 1 | ||
#elif defined(___int64_t_defined) | ||
typedef __int64_t __int_least16_t; | ||
typedef __uint64_t __uint_least16_t; | ||
#define ___int_least16_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT_LEAST32_TYPE__ | ||
typedef __INT_LEAST32_TYPE__ __int_least32_t; | ||
#ifdef __UINT_LEAST32_TYPE__ | ||
typedef __UINT_LEAST32_TYPE__ __uint_least32_t; | ||
#else | ||
typedef unsigned __INT_LEAST32_TYPE__ __uint_least32_t; | ||
#endif | ||
#define ___int_least32_t_defined 1 | ||
#elif defined(___int32_t_defined) | ||
typedef __int32_t __int_least32_t; | ||
typedef __uint32_t __uint_least32_t; | ||
#define ___int_least32_t_defined 1 | ||
#elif defined(___int64_t_defined) | ||
typedef __int64_t __int_least32_t; | ||
typedef __uint64_t __uint_least32_t; | ||
#define ___int_least32_t_defined 1 | ||
#endif | ||
|
||
#ifdef __INT_LEAST64_TYPE__ | ||
typedef __INT_LEAST64_TYPE__ __int_least64_t; | ||
#ifdef __UINT_LEAST64_TYPE__ | ||
typedef __UINT_LEAST64_TYPE__ __uint_least64_t; | ||
#else | ||
typedef unsigned __INT_LEAST64_TYPE__ __uint_least64_t; | ||
#endif | ||
#define ___int_least64_t_defined 1 | ||
#elif defined(___int64_t_defined) | ||
typedef __int64_t __int_least64_t; | ||
typedef __uint64_t __uint_least64_t; | ||
#define ___int_least64_t_defined 1 | ||
#endif | ||
|
||
#if defined(__INTMAX_TYPE__) | ||
typedef __INTMAX_TYPE__ __intmax_t; | ||
#elif __have_longlong64 | ||
typedef signed long long __intmax_t; | ||
#else | ||
typedef signed long __intmax_t; | ||
#endif | ||
|
||
#if defined(__UINTMAX_TYPE__) | ||
typedef __UINTMAX_TYPE__ __uintmax_t; | ||
#elif __have_longlong64 | ||
typedef unsigned long long __uintmax_t; | ||
#else | ||
typedef unsigned long __uintmax_t; | ||
#endif | ||
|
||
#ifdef __INTPTR_TYPE__ | ||
typedef __INTPTR_TYPE__ __intptr_t; | ||
#ifdef __UINTPTR_TYPE__ | ||
typedef __UINTPTR_TYPE__ __uintptr_t; | ||
#else | ||
typedef unsigned __INTPTR_TYPE__ __uintptr_t; | ||
#endif | ||
#elif defined(__PTRDIFF_TYPE__) | ||
typedef __PTRDIFF_TYPE__ __intptr_t; | ||
typedef unsigned __PTRDIFF_TYPE__ __uintptr_t; | ||
#else | ||
typedef long __intptr_t; | ||
typedef unsigned long __uintptr_t; | ||
#endif | ||
|
||
#undef __EXP | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _MACHINE__DEFAULT_TYPES_H */ |
Binary file added
BIN
+3.89 KB
...e/@@home@hak@dev@s3k/@opt@riscv@riscv64-unknown-elf@include@machine@_default_types.h.blob
Binary file not shown.
Oops, something went wrong.