STINNER Victor <[email protected]> added the comment:
> AFAIK gcc does not enable SSE3 and SSE4 on X86_64 by default.
Linux now supports multiple variants of the same function, one variant per CPU
type, the binding is done when a library is loaded. But I don't know how to
implement that :-(
There is target_clones("sse4.1,avx") the function attribute in GCC for example.
It compiles a function twice, once for generic CPU, once for SSE4.1.
See also ifunc: "indirect function", "CPU dispatch" or "function resolver".
----------
nosy: +haypo
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com