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, wherein the built-in shifting capability is to shift the contiguous subset in the memory without using a processor external of the shiftable memory to perform the shift; and an atomic primitive implemented using a processing circuit in the memory to perform the atomic operation on the contiguous subset, wherein the memory having the built-in shifting capability is to shift only data of the contiguous subset when the contiguous subset is shifted, wherein the memory comprises a controller to: receive address information from the processor external of the shiftable memory, and determine a length of the contiguous subset based on the received address information.