Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
CpuIntrinsicsWrapper

Macros

#define GTS_PAUSE()   gts::pause()
 Pauses the CPU for a few cycles. (i.e. PAUSE on x86.) . More...
 
#define GTS_MSB_SCAN(bitSet)   #error "Replace with custom definition"
 
#define GTS_MSB_SCAN64(bitSet)   #error "Replace with custom definition"
 Gets the most significant bit from the bit set. More...
 

Detailed Description

User defined wrappers for the CPU intrinsics API.

Macro Definition Documentation

◆ GTS_MSB_SCAN64

#define GTS_MSB_SCAN64 (   bitSet)    #error "Replace with custom definition"

Gets the most significant bit from the bit set.

Remarks
Signature:
uint64_t msbScan64(uint64_t bitSet)
Parameters
bitSetGets the most significant bit from the bit set.

◆ GTS_PAUSE

#define GTS_PAUSE ( )    gts::pause()

Pauses the CPU for a few cycles. (i.e. PAUSE on x86.) .

Remarks
Signature:
void pause()
/
#define GTS_PAUSE() #error "Replace with custom definition"
Signature:
uint64_t rdtsc()
/
#define GTS_RDTSC() #error "Replace with custom definition"
Signature:
void memoryFence()
/
#define GTS_MEMORY_FENCE() #error "Replace with custom definition"
Signature:
void speculationFence()
/
#define GTS_SPECULATION_FENCE() #error "Replace with custom definition"
Parameters
bitSetGets the most significant bit from the bit set.