Energy-efficient In-Memory Address Calculation