|
|
|
|
|
by SkiFire13
268 days ago
|
|
> not marginally higher cost of atomic inc/dec vs plain inc/dec. Note that the difference is not so marginal, and the difference is not just in hardware instructions as the non-atomic operations generally allow for more optimizations by the compiler. |
|
It's comparable to like, two integer multiplies, or a single integer division. Yes, there is some effect on program order.