Purging MMX. Converted vertical_diff function