Teeny tiny AMD implementation