Figure 3-1 Converting to Streaming SIMD Extensions Chart
W hy FP?
Range or
Precision
Can convert
to Integer?
No
Can convert to
Single-precision?
Identify Hot Spots in Code
Code benefits
No
from SIMD
Yes
Integer or
Floating Point
floating-point?
Perform ance
Change to use
Yes
SIMD Integer
Change to use
Yes
Single Precision
No
STOP
Coding for SIMD Architectures
Integer
If possible, re-arrange data
for SIMD efficiency
Align data structures
Convert to code to use
SIMD Technologies
Follow general coding
guidelines and SIMD
coding guidelines
Use m em ory optim izations
and prefetch if appropriate
Schedule instructions to
optim ize perform ance
OM15156
3
3-9
Need help?
Do you have a question about the ARCHITECTURE IA-32 and is the answer not in the manual?
Questions and answers