simple_idct: make repeated code a macro