PPT Slide
Word-Wide Optimization in C
- Access 32-bit data by declaring data as 32-bit type
- Perform numerical operations using intrinsics
Notes:
Beyond the use of intrinsics, we can also use word-wide optimizations to enhance performance.
In word-wide optimizations, since we have the ability to load 32-bit values, we can access 32-bit data by declaring the data as a 32-bit type.
In our C code before, we were calling them shorts; they were 16 bits, bringing them in 16 at a time. But the external bus is 32 bits, so we can take advantage of that by loading words, then performing the numerical operations using the intrinsics _MPY and _MPYH.