Browse Source
Merge pull request #1689 from riscv-software-src/rounding-mode-thread-local
Make softfloat's rounding mode thread-local
pull/1694/head
Andrew Waterman
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
2 deletions
-
softfloat/softfloat.h
|
|
|
@ -50,8 +50,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
|
#include <stdint.h> |
|
|
|
#include "softfloat_types.h" |
|
|
|
|
|
|
|
#ifndef THREAD_LOCAL |
|
|
|
#define THREAD_LOCAL |
|
|
|
#if __has_include(<threads.h>) |
|
|
|
# include <threads.h> |
|
|
|
# define THREAD_LOCAL thread_local |
|
|
|
#else |
|
|
|
# define THREAD_LOCAL _Thread_local |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|