摘要 |
A mechanism is provided for improving the efficiency of multiple smaller direct memory access transfers. The mechanism uses one input buffer and a small result buffer, or some temporary variables, to temporarily store computation results. The mechanism performs a computation on a segment of data in the input buffer and stores the result in the temporary result buffer. The mechanism then copies the result back into the input buffer. As such, the mechanism uses the input buffer as both an input buffer and a results buffer. The mechanism then performs a direct memory access transfer on the segment of the input buffer that contains the computation result and then performs a computation on the next segment of the input buffer. The mechanism then repeats this process until the entire input buffer has been processed. |