Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: When is a data access atomic?

$
0
0
Hi noob to the RX64M.  Couldn't find this answer in the datasheets so I thought I ask the question here. Is storing to fVal below guaranteed to be atomic? unsigned short buf[2]; float *p = (float*)buf; *p = 2.45 * someScaling + someOffset; Will the alignment of the memory pointed to by p change the atomic behavior?  In general, is access to all primitive types up to 32-bit always guaranteed to be atomic with or without regard to memory alignment?

Viewing all articles
Browse latest Browse all 59170

Trending Articles