|
@@ -61,6 +61,7 @@
|
|
|
# define BX_PRINTF_ARGS(_format, _args) __attribute__( (format(__printf__, _format, _args) ) )
|
|
# define BX_PRINTF_ARGS(_format, _args) __attribute__( (format(__printf__, _format, _args) ) )
|
|
|
# define BX_THREAD_LOCAL __thread
|
|
# define BX_THREAD_LOCAL __thread
|
|
|
# define BX_ATTRIBUTE(_x) __attribute__( (_x) )
|
|
# define BX_ATTRIBUTE(_x) __attribute__( (_x) )
|
|
|
|
|
+# define BX_ATTRIBUTE_INTRINSIC BX_FORCE_INLINE
|
|
|
# define BX_STACK_ALLOC(_size) __builtin_alloca(_size)
|
|
# define BX_STACK_ALLOC(_size) __builtin_alloca(_size)
|
|
|
|
|
|
|
|
# if BX_CRT_MSVC
|
|
# if BX_CRT_MSVC
|
|
@@ -81,6 +82,8 @@
|
|
|
# define BX_PRINTF_ARGS(_format, _args)
|
|
# define BX_PRINTF_ARGS(_format, _args)
|
|
|
# define BX_THREAD_LOCAL __declspec(thread)
|
|
# define BX_THREAD_LOCAL __declspec(thread)
|
|
|
# define BX_ATTRIBUTE(_x)
|
|
# define BX_ATTRIBUTE(_x)
|
|
|
|
|
+# define BX_ATTRIBUTE_INTRINSIC [[msvc::intrinsic]]
|
|
|
|
|
+
|
|
|
extern "C" void* __cdecl _alloca(size_t _size);
|
|
extern "C" void* __cdecl _alloca(size_t _size);
|
|
|
# define BX_STACK_ALLOC(_size) ::_alloca(_size)
|
|
# define BX_STACK_ALLOC(_size) ::_alloca(_size)
|
|
|
#else
|
|
#else
|