#Determining the largest atomic size

1 messages · Page 1 of 1 (latest)

shrewd crag
#

Is there a way in Zig to find what's the largest/best atomic size supported (lockfree) natively by the target CPU architecture? Kind of like C++'s std::atomic_unsigned_lock_free.

prisma wasp
#

assume usize is largest, outside specific cpu features like cx16