News for hackers. Stuff that matters.
Re:The prospects for 128 bit processors (1995) by Dylan16807 on Wednesday February 23, 2022 @05:14PM (#30447295)
CMPXCHG16B has been standard for the vast majority of the time x86_64 has existed. If a CPU can run windows 8.1, then it has 128-bit atomic operations.
Re:The prospects for 128 bit processors (1995) by Animats on Thursday February 24, 2022 @01:02AM (#30451025)
Rust does not have AtomicU128, for some reason. Need to look into that.
Re:The prospects for 128 bit processors (1995) by Dylan16807 on Thursday February 24, 2022 @01:15AM (#30451135)
Re:The prospects for 128 bit processors (1995) by Animats on Thursday February 24, 2022 @02:05AM (#30451548)
Ah. There are still some AMD64 CPUs out there that don't have cmpxchg16b capability. The Linux developers made the decision to not use cmpxchg16b and continue supporting them. Microsoft made the decision to use cmpxchg16b for Windows 8 and later. There are some libraries which probe on first use and either use cmpxchg16b or use a global lock. That's probably a viable strategy at this point, since CPUs without it are now rare. But I can see the argument against it.

[1] https://superuser.com/questions/187254/how-prevalent-are-old...