SRC: simplify AMD code