1. A shiftable memory supporting atomic operation comprising: a memory to store data, the memory having built-in shifting capability to shift a contiguous subset of the data from a first location to a second location within the memory, the contiguous subset of data having a size that is smaller than a total size of the memory; and an atomic primitive defined on the memory to operate on the contiguous subset, wherein the memory having built-in shifting capability is to shift only data of the contiguous subset when the contiguous subset is shifted.