support AMD
Merge pull request #2 from Rich-Harris/master

support AMD