I work with two computers. One without AVX support and one with AVX. It would be convenient to have my code find the instruction set supported by my CPU at run-time and ch
Put the SSE and AVX functions in different CPP files and be sure to compile SSE version wihout /arch:AVX.
/arch:AVX