mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-21 05:12:22 -08:00
fixes for the GCC build
This commit is contained in:
1 parent
5fe1bac74e
commit
55fbbb09d7
20 files changed
+78
-75
No files matched your search
+1
-1
@@ -61,7 +61,7 @@ typedef S32 RAD_S32;
|
||||
#if defined(_MSC_VER)
|
||||
# define RADFORCEINLINE __forceinline
|
||||
#elif defined(__clang__) || defined(__GNUC__)
|
||||
# define RADFORCEINLINE __attribute__((always_inline))
|
||||
# define RADFORCEINLINE inline __attribute__((always_inline))
|
||||
#else
|
||||
# error need force inline for this compiler
|
||||
#endif
|
||||
|
||||
Vendored
+3
-3
@@ -24,7 +24,7 @@
|
||||
#define RSFORCEINLINE __forceinline __declspec(safebuffers)
|
||||
#define CompilerReset(ptr) __assume(ptr)
|
||||
#else
|
||||
#define RSFORCEINLINE __attribute__((always_inline))
|
||||
#define RSFORCEINLINE inline __attribute__((always_inline))
|
||||
#define CompilerReset(ptr)
|
||||
#endif
|
||||
|
||||
@@ -137,7 +137,7 @@ radsortmovesize( sizeof( (start)[0] ) ), \
|
||||
//===================================================================================================
|
||||
// small heap sort - this sort is around 200 bytes compiled - can use directly when size is important
|
||||
|
||||
RSFORCEINLINE void radheapsortinteral( void * start, size_t len, size_t element_size, is_before_func * is_before, swap_func * swapper )
|
||||
internal RSFORCEINLINE void radheapsortinteral( void * start, size_t len, size_t element_size, is_before_func * is_before, swap_func * swapper )
|
||||
{
|
||||
void * left;
|
||||
void * right;
|
||||
@@ -430,7 +430,7 @@ rs_es = element_size;
|
||||
|
||||
#define RSS_MAX_RECURSE 128
|
||||
|
||||
RSFORCEINLINE void radsortinternal( void * start, size_t len, size_t element_size, is_before_func * is_before, swap_func * swapper, move_func * mover, rs_small_sort_func * small_sort, size_t small_sort_thres, void * tmp )
|
||||
static RSFORCEINLINE void radsortinternal( void * start, size_t len, size_t element_size, is_before_func * is_before, swap_func * swapper, move_func * mover, rs_small_sort_func * small_sort, size_t small_sort_thres, void * tmp )
|
||||
{
|
||||
void * left;
|
||||
size_t length;
|
||||
|
||||
Reference in new issue
Block a user