This intrinsic inserts an
into the instruction stream generated by the compiler. It enables
you to load data from memory in your C or C++ code using an
It supports access to doubleword data.
unsigned long long __ldrexd(volatile void *
points to the address of the data to be loaded from memory. To specify the type of the data to be loaded, cast the parameter to an appropriate pointer type.
Table 16. Access widths supported by the __ldrex intrinsic Instruction Size of data loaded C cast
unsigned long long
(unsigned long long
signed long long
(signed long long
The compiler does not recognize the
when compiling for a target that does not support the
The compiler generates either a warning or an error in this case.
__ldrexd intrinsic only supports
access to doubleword data. The compiler generates an error if you
specify an access width that is not supported.