Purging MMX. Converted horizontal_diff function