Assembly/compiler coding rules, Assembly/compiler coding rules -99 – Intel ARCHITECTURE IA-32 User Manual
Page 171
![background image](/manuals/127794/171/background.png)
General Optimization Guidelines
2
2-99
look-up-table-based algorithm using interpolation techniques. It is possible to
improve transcendental performance with these techniques by choosing the
desired numeric precision, the size of the look-up tableland taking advantage
of the parallelism of the Streaming SIMD Extensions and the Streaming SIMD
Extensions 2 instructions. 2-59
Assembly/Compiler Coding Rules
Assembly/Compiler Coding Rule 2. (M impact, ML generality) Use
the
setcc
and
cmov
instructions to eliminate unpredictable conditional
branches where possible. Do not do this for predictable branches. Do not
use these instructions to eliminate all unpredictable conditional branches,
because using these instructions will incur execution overhead due to
executing both paths of a conditional branch. In addition, converting
conditional branches to
cmovs
or
setcc
trades of control flow
dependence for data dependence and restricts the capability of the out of