mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 15:35:29 +00:00
compiler: Add defines for abstracting thread-local storage
This commit is contained in:
parent
9f0393479e
commit
7ec1f12429
|
@ -58,6 +58,9 @@ static union MSVC_FLOAT_HACK __NAN = {{0x00, 0x00, 0xC0, 0x7F}};
|
|||
|
||||
#define QEMU_ALIGNED(A, B) __declspec(align(A)) B
|
||||
|
||||
// Unicorn: Addition for thread-local variables
|
||||
#define QEMU_THREAD_LOCAL_VAR __declspec(thread)
|
||||
|
||||
#define cat(x,y) x ## y
|
||||
#define cat2(x,y) cat(x,y)
|
||||
|
||||
|
@ -120,6 +123,9 @@ static union MSVC_FLOAT_HACK __NAN = {{0x00, 0x00, 0xC0, 0x7F}};
|
|||
|
||||
#define QEMU_ALIGNED(A, B) B __attribute__((aligned(A)))
|
||||
|
||||
// Unicorn: Addition for thread-local variables
|
||||
#define QEMU_THREAD_LOCAL_VAR __thread
|
||||
|
||||
#ifndef glue
|
||||
#define xglue(x, y) x ## y
|
||||
#define glue(x, y) xglue(x, y)
|
||||
|
|
Loading…
Reference in a new issue