Ask HN: Can someone make a CAS just checking last bit on x86/ARM please?

1 pointsposted 6 hours ago
by goofy_lemur

Item id: 46703768

1 Comments

Normal_gaussian

6 hours ago

You're going to have to give a much clearer set of examples and justifications. I've had to CAS on bit masks, but not enough that it would make sense to introduce a new operation for it. I just CAS and spin if it fails and the bitmask is still valid.