-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
292 changed files
with
3,872 additions
and
553 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.2.3 | ||
1.2.5 |
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
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
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
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
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
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
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,53 @@ | ||
#define a_ll a_ll | ||
static inline int a_ll(volatile int *p) | ||
{ | ||
int v; | ||
__asm__ __volatile__ ( | ||
"ll.w %0, %1" | ||
: "=r"(v) | ||
: "ZC"(*p)); | ||
return v; | ||
} | ||
|
||
#define a_sc a_sc | ||
static inline int a_sc(volatile int *p, int v) | ||
{ | ||
int r; | ||
__asm__ __volatile__ ( | ||
"sc.w %0, %1" | ||
: "=r"(r), "=ZC"(*p) | ||
: "0"(v) : "memory"); | ||
return r; | ||
} | ||
|
||
#define a_ll_p a_ll_p | ||
static inline void *a_ll_p(volatile void *p) | ||
{ | ||
void *v; | ||
__asm__ __volatile__ ( | ||
"ll.d %0, %1" | ||
: "=r"(v) | ||
: "ZC"(*(void *volatile *)p)); | ||
return v; | ||
} | ||
|
||
#define a_sc_p a_sc_p | ||
static inline int a_sc_p(volatile void *p, void *v) | ||
{ | ||
long r; | ||
__asm__ __volatile__ ( | ||
"sc.d %0, %1" | ||
: "=r"(r), "=ZC"(*(void *volatile *)p) | ||
: "0"(v) | ||
: "memory"); | ||
return r; | ||
} | ||
|
||
#define a_barrier a_barrier | ||
static inline void a_barrier() | ||
{ | ||
__asm__ __volatile__ ("dbar 0" : : : "memory"); | ||
} | ||
|
||
#define a_pre_llsc a_barrier | ||
#define a_post_llsc a_barrier |
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,18 @@ | ||
#define _Addr long | ||
#define _Int64 long | ||
#define _Reg long | ||
|
||
#define __BYTE_ORDER 1234 | ||
#define __LONG_MAX 0x7fffffffffffffffL | ||
|
||
#ifndef __cplusplus | ||
TYPEDEF int wchar_t; | ||
#endif | ||
|
||
TYPEDEF float float_t; | ||
TYPEDEF double double_t; | ||
|
||
TYPEDEF struct { long long __ll; long double __ld; } max_align_t; | ||
|
||
TYPEDEF unsigned nlink_t; | ||
TYPEDEF int blksize_t; |
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,20 @@ | ||
#define FE_INEXACT 0x010000 | ||
#define FE_UNDERFLOW 0x020000 | ||
#define FE_OVERFLOW 0x040000 | ||
#define FE_DIVBYZERO 0x080000 | ||
#define FE_INVALID 0x100000 | ||
|
||
#define FE_ALL_EXCEPT 0x1F0000 | ||
|
||
#define FE_TONEAREST 0x000 | ||
#define FE_TOWARDZERO 0x100 | ||
#define FE_UPWARD 0x200 | ||
#define FE_DOWNWARD 0x300 | ||
|
||
typedef unsigned fexcept_t; | ||
|
||
typedef struct { | ||
unsigned __cw; | ||
} fenv_t; | ||
|
||
#define FE_DFL_ENV ((const fenv_t *) -1) |
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,16 @@ | ||
#define FLT_EVAL_METHOD 0 | ||
|
||
#define LDBL_TRUE_MIN 6.47517511943802511092443895822764655e-4966L | ||
#define LDBL_MIN 3.36210314311209350626267781732175260e-4932L | ||
#define LDBL_MAX 1.18973149535723176508575932662800702e+4932L | ||
#define LDBL_EPSILON 1.92592994438723585305597794258492732e-34L | ||
|
||
#define LDBL_MANT_DIG 113 | ||
#define LDBL_MIN_EXP (-16381) | ||
#define LDBL_MAX_EXP 16384 | ||
|
||
#define LDBL_DIG 33 | ||
#define LDBL_MIN_10_EXP (-4931) | ||
#define LDBL_MAX_10_EXP 4932 | ||
|
||
#define DECIMAL_DIG 36 |
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,2 @@ | ||
#define _POSIX_V6_LP64_OFF64 1 | ||
#define _POSIX_V7_LP64_OFF64 1 |
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,2 @@ | ||
#undef __WORDSIZE | ||
#define __WORDSIZE 64 |
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 @@ | ||
typedef unsigned long __jmp_buf[23]; |
Oops, something went wrong.