fetch-and-add
Sign in to saveIn computer science, the fetch-and-add (FAA) CPU instruction atomically increments the contents of a memory location by a specified value.
~5 min read
Encyclopedic overview
7 sectionsContents
- Overview
- Implementation
- Hardware and software support
- x86 implementation
- History
- See also
- References
In computer science, the fetch-and-add (FAA) CPU instruction atomically increments the contents of a memory location by a specified value.
That is, fetch-and-add performs the following operation: increment the value at address by , where is a memory location and is some value, and return the original value at .
Excerpted from Wikipedia’s “fetch-and-add” article, available under the CC BY-SA 4.0 licence.