PREV_L2_INDEX
prev_index = PREV_L2_INDEX(prev_index);
delta = curr_temp - tempstat->l2[PREV_L2_INDEX(curr_index)];