Atomic primitives for pointer arithmetics and atomic appendValue()