Skip to content

Remove useless CMake option controlling SSE2 codepath#20984

Open
victoryforce wants to merge 1 commit into
darktable-org:masterfrom
victoryforce:remove-useless-sse-build-option
Open

Remove useless CMake option controlling SSE2 codepath#20984
victoryforce wants to merge 1 commit into
darktable-org:masterfrom
victoryforce:remove-useless-sse-build-option

Conversation

@victoryforce
Copy link
Copy Markdown
Collaborator

We have a CMake option BUILD_SSE2_CODEPATHS which we use for adding "-msse2" and "-mfpmath=sse" compiler options. But this actually not needed as they are the default for the relevant architecture, x86-64.

This made sense back when the x86-32 architecture was a thing. Not all such CPUs had support for new SIMD instruction sets. SSE appeared only in the Pentium III (in 1999), and SSE2 in the Pentium IV (in 2000). That is why SSE2 is not guaranteed to be on by default when compiling for 32-bit x86, so one may need to add -msse2 -mfpmath=sse.

But the fact is that it is hardly possible to compile recent versions of Darktable on old 32-bit systems. And it's not even about the program code itself, which will probably compile successfully. This is because such old systems (if they still exist in the wild) will not be able to provide the minimum versions of dependencies required by recent versions of Darktable. And that's not even mentioning the fact that such a build has long since ceased to make any sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant