libc: update to upstream master.
This commit is contained in:
parent
1e76ce25d5
commit
6080bb6ef2
19 changed files with 281 additions and 24 deletions
|
@ -170,6 +170,10 @@
|
|||
#define __IEEE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __riscv
|
||||
#define __IEEE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __i960__
|
||||
#define __IEEE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
|
|
@ -385,6 +385,15 @@ _BEGIN_STD_C
|
|||
#define _JBLEN 12
|
||||
#endif
|
||||
|
||||
#ifdef __riscv
|
||||
#define _JBTYPE long
|
||||
#ifdef __riscv_32e
|
||||
#define _JBLEN ((4*sizeof(long))/sizeof(long))
|
||||
#else
|
||||
#define _JBLEN ((14*sizeof(long) + 12*sizeof(double))/sizeof(long))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _JBLEN
|
||||
#ifdef _JBTYPE
|
||||
typedef _JBTYPE jmp_buf[_JBLEN];
|
||||
|
@ -395,7 +404,7 @@ typedef int jmp_buf[_JBLEN];
|
|||
|
||||
_END_STD_C
|
||||
|
||||
#if defined(__CYGWIN__) || defined(__rtems__)
|
||||
#if (defined(__CYGWIN__) || defined(__rtems__)) && __POSIX_VISIBLE
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -477,4 +486,4 @@ extern int _setjmp (jmp_buf);
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __CYGWIN__ or __rtems__ */
|
||||
#endif /* (__CYGWIN__ or __rtems__) and __POSIX_VISIBLE */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef _MACHTIME_H_
|
||||
#define _MACHTIME_H_
|
||||
|
||||
#if defined(__rtems__) || defined(__VISIUM__)
|
||||
#if defined(__rtems__) || defined(__VISIUM__) || defined(__riscv)
|
||||
#define _CLOCKS_PER_SEC_ 1000000
|
||||
#elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__)
|
||||
#define _CLOCKS_PER_SEC_ 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue