| ; Copyright (c) 2010 The VP8 project authors. All Rights Reserved. |
| ; Use of this source code is governed by a BSD-style license and patent |
| ; grant that can be found in the LICENSE file in the root of the source |
| ; tree. All contributing project authors may be found in the AUTHORS |
| ; file in the root of the source tree. |
| ;# Make the assumption that input will not be aligned, |
| ;# but the output will be. So two reads and a perm |
| ;# for the input, but only one store for the output. |
| mfspr r11, 256 ;# get old VRSAVE |
| mtspr 256, r12 ;# set VRSAVE |
| lvsl v0, 0, r3 ;# permutate value for alignment |
| add r3, r3, r4 ;# increment source pointer |
| add r5, r5, r6 ;# increment destination pointer |
| mtspr 256, r11 ;# reset old VRSAVE |