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
parent
commit
2d7af2fb56
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      softfloat/softfloat.h

7
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

Loading…
Cancel
Save