Figure 3-1, Converting to streaming simd extensions chart -9 – Intel ARCHITECTURE IA-32 User Manual
Page 189
Coding for SIMD Architectures
3
3-9
Figure 3-1
Converting to Streaming SIMD Extensions Chart
O M15156
Code benefits
from SIMD
STO P
Identify Hot Spots in Code
Integer or
floating-point?
Yes
Floating Point
W hy FP?
Can convert
to Integer?
Range or
Precision
If possible, re-arrange data
for SIMD efficiency
Integer
Change to use
SIM D Integer
Yes
Change to use
Single Precision
Can convert to
Single-precision?
Yes
No
No
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
No
Perform ance