Method and device for reading misaligned data in processor
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SUNPLUS TECH CO LTD
- Publication Date
- 2009-06-03
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the technical field of data processing, especially to a structure and method for reading unaligned data in a processor Background technique
[0002] When the processor performs data processing, the alignment of the data is related to the performance of many key operations, such as the performance of operations such as strings and arrays. As shown in Figure 1, a piece of data to be processed (ABCDEFGHIJKL) often crosses the data storage boundary. When a processor performs string or array operations on the data, it needs to perform many additional operations in order to be able to process the data. After the data is restored to an aligned format, the processor can perform related operations on the pen data.
[0003] To deal with the problem of data misalignment, a known method is to load the data into the processor, and then use various processor instructions to operate to obtain the required data. As shown in Figure 2,...