MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cvmx_atomic_add32

Function cvmx_atomic_add32

freebsd/contrib/octeon-sdk/cvmx-atomic.h:114–119  ·  view source on GitHub ↗

* Atomically adds a signed value to a 32 bit (aligned) memory location. * * Memory access ordering is enforced before/after the atomic operation, * so no additional 'sync' instructions are required. * * * @param ptr address in memory to add incr to * @param incr amount to increment memory location by (signed) */

Source from the content-addressed store, hash-verified

112 * @param incr amount to increment memory location by (signed)
113 */
114static inline void cvmx_atomic_add32(int32_t *ptr, int32_t incr)
115{
116 CVMX_SYNCWS;
117 cvmx_atomic_add32_nosync(ptr, incr);
118 CVMX_SYNCWS;
119}
120
121/**
122 * Atomically sets a 32 bit (aligned) memory location to a value

Callers 5

mainFunction · 0.85
__cvmx_srio_alloc_s2mFunction · 0.85
__cvmx_srio_free_s2mFunction · 0.85
__cvmx_srio_alloc_subidFunction · 0.85
__cvmx_srio_free_subidFunction · 0.85

Calls 1

cvmx_atomic_add32_nosyncFunction · 0.85

Tested by

no test coverage detected