x64
Code:



























Here are the x86 versions: