SAM function SAM-Memory-speculative-write-prepare()
SAM_Memory_speculative_write_prepare - Mark a region of memory for speculative write
#include <sam.h> SAM_pdif_t SAM_Memory_speculative_write_prepare(SAM_t sam, void *addr);
The SAM_Memory_speculative_write_prepare() function marks the registered region of memory in which addr is contained, as written by the calling worker thread. It shall be called before writing to memory. All the writing after the call to the function SAM_Memory_speculative_write_prepare() shall be used writing to __SAM_ADDR__() and not directly to the memory addresses.
 Return value
The return value is a parameter of type SAM_pdif_t that shall be used with the address calculator macro __SAM_ADDR__() for reading or writing to that memory region.
None, assumes correct input parameters.