Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
qb45
on Jan 9, 2016
|
parent
|
context
|
favorite
| on:
What is the performance impact of using int64_t on...
Yep, but first you have to load this counter and increment it manually in some CPU register. And you also need to repeat the whole sequence in case CMPXCHG8B fails.
With 32 bit integers you just execute XADD and move on with your life.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
With 32 bit integers you just execute XADD and move on with your life.