ac: add 16-bit support to ac_build_ddxy()