7.13.29 RISC-V Built-in Functions ΒΆ

These built-in functions are available for the RISC-V family of processors.

Built-in Function: void * __builtin_thread_pointer (void) ΒΆ

Returns the value that is currently set in the β€˜tp’ register.

Built-in Function: void __builtin_riscv_pause (void) ΒΆ

Generates the pause (hint) machine instruction. If the target implements the Zihintpause extension, it indicates that the current hart should be temporarily paused or slowed down.