cpu detection

Boudewijn Rempt boud at valdyas.org
Mon Oct 29 12:15:54 UTC 2012

On Mon, 29 Oct 2012, Dmitry Kazakov wrote:
> Well, of course we need to do something with it. The Intel's manual suggests creating separate dynamic libraries
> and load the only one that is supported by the host CPU. We could do something like that. We could move all the
> code using Vc into a separate library and compile, say, 5 copies of it: for SSE2, SSE3, SSSE3, SSE4 and AVX. The
> on Krita start we could choose the needed library. The problem is I don't know how to dynamically load a
> library. More than that I can't imagine how to do that in a crossplatform way.

Ah, but that is actually easy: we do it all the time with our plugins.


More information about the kimageshop mailing list