摘要 |
Methods and apparatus for gathering and scattering data associated with a single-instruction-multiple-data operation are provided. Data is gathered from a main memory, prior to a single-instruction-multiple-data (SIMD) operation on the data, by reading the data into a memory array as columns of data and reading the data out of the memory array as rows of data (or vice-versa). Similarly, after the SIMD operation, resulting data is scattered back to main memory by reading the SIMD results into the memory array as columns of data and reading the data out of the memory array as rows of data (or vice-versa). In this manner, a fast transposition of the SIMD data may occur before and/or after the SIMD operation. |