These built-in functions are available for the Nvidia PTX target:
unsigned int __builtin_nvptx_brev (unsigned int x)
Reverse the bit order of a 32-bit unsigned integer.
unsigned long long __builtin_nvptx_brevll (unsigned long long x)
Reverse the bit order of a 64-bit unsigned integer.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Nvidia-PTX-Built_002din-Functions.html