@julia@eepy.moe like they'll reorder your instructions too. as long as you can't tell the difference between the result, anything goes. afaik on modern x86, if you make multiple independent calculations on a single register but overwrite it in-between, the CPU can and will realize they are independent, assign those instructions physically disjoint registers, and happily execute that shit out of order whilst waiting for a memory access that doesn't affect the results.
this is also, I believe (warning: hallucation) part of the reason why you have to be strict about multithreading and atomic access. because if you don't tell the CPU exactly how to coordinate this, then like. lol, lmao. good luck.
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
sodiboo (sodiboo@gaysex.cloud)'s status on Sunday, 04-May-2025 06:06:08 JST sodiboo