Hi,
My application has two tasks. The first one updates a floating point variable and the other reads this variable. Do I need to protect access to this variable using a mutex or are read/write accesses atomic in this case?
Are reads/writes to floating point variables atomic?
Re: Are reads/writes to floating point variables atomic?
If they're 32-bit floats, then any load/store is atomic.
If they're 64-bit doubles, then these are not atomic.
If they're 64-bit doubles, then these are not atomic.
Who is online
Users browsing this forum: Baoshi and 110 guests