Let's say we have optimized code for x86 machine and a pure go implementation as pasted, and we want use the same piece of code to run on arm, seems it complains the compilation. How to avoid this?
if cpu.X86.HasAVX2 {
// avo optimized code
} else {
// pure go
}
Let's say we have optimized code for x86 machine and a pure go implementation as pasted, and we want use the same piece of code to run on arm, seems it complains the compilation. How to avoid this?