herumi / xbyak

A JIT assembler for x86/x64 architectures supporting MMX, SSE (1-4), AVX (1-2, 512), FPU, APX, and AVX10.2
BSD 3-Clause "New" or "Revised" License
2.05k stars 278 forks source link

Use thread_local for XBYAK_TLS when supported #101

Closed densamoilov closed 4 years ago

densamoilov commented 4 years ago

Some compilers may not support __declspec(thread) but they can build apps using >= C++11 by default.

herumi commented 4 years ago

Thanks for the nice patch.