2 ms·
> Even most common extensions just cover part of them. The headers I linked to here: https://news.ycombinator.com/item?id=8873764 https://news.ycombinator.com/
by bhouston 12y ago
> Even most common extensions just cover part of them.
The headers I linked to here: https://news.ycombinator.com/item?id=8873764 https://news.ycombinator.com/item?id=8873764 Cover most useful Intel CPU extensions. And you can use them easily in code, it just sucks when you have to do CPU feature detection and have different code paths for different CPUs.
- bluetomcat 12y ago> it just sucks when you have to do CPU feature detection and have different code paths for different CPUs. In the Linux kernel they went so far as to actually replacing instructions at boot-time at known locations, based on the capabilities of the CPU the code is executing on. This prevents them from maintaining many paths in the compiled code.
- pjmlp 12y agoYes, but as I answered they are compiler specific and cover only part of the CPU.