microsoft / winfile

Original Windows File Manager (winfile) with enhancements
MIT License
6.82k stars 706 forks source link

Compile XP builds for XP CPUs (aka, no SSE) #425

Closed malxau-msft closed 6 months ago

malxau-msft commented 7 months ago

These days there aren't many pre-SSE2 CPUs floating around, and it's basically a requirement for Windows 7 and up. On XP, the base requirement is a Pentium 1 (not even Pentium Pro.) WinFile could require a newer CPU than XP, but these instructions seem to be of limited value to it anyway, so there doesn't seem to be a good reason to stick with the SSE2 compiler default.

I dumped out the assembly from this and verified that cmov instructions are only used under runtime checks. They're still used conditionally in strchr and strrchr operations.