Ask HN: Can someone make a CAS just checking last bit on x86/ARM please?
4 points by goofy_lemur
by Normal_gaussian
1 subcomments
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.
by charleslmunger
0 subcomment
What hardware are you running on where the cost of a relaxed 64 bit load and a branch is significant compared to a (possibly contended) cas?