I'm trying to port some code currently being compiled by gcc that uses the __builtin_bswapXX functions. Is there an equivalent in ARM C6 or will I need to provide it myself?
There are a set of __rev* intrinsic functions defined in arm_acle.h
#include <arm_acle.h> int foo(int a){ return (__rev(a)); }
For more info, see https://developer.arm.com/docs/100748/latest/using-assembly-and-intrinsics-in-c-or-c-code/using-intrinsics