fixes for the GCC build

This commit is contained in:
Nikita Smith authored and Ryan Fleury committed 2026-09-10 14:28:29 -07:00
1 parent 5fe1bac74e
commit 55fbbb09d7
20 files changed
+78 -75

No files matched your search

+1 -1
View File
@@ -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
+3 -3
View File
@@ -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;