gen_c: generate idct as well