2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. _risc-v-built-in-functions:
8 RISC-V Built-in Functions
9 ^^^^^^^^^^^^^^^^^^^^^^^^^
11 These built-in functions are available for the RISC-V family of
14 .. function:: void * __builtin_thread_pointer (void)
16 Returns the value that is currently set in the :samp:`tp` register.