We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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