Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: source/libvpx/vp8/common/ppc/copy_altivec.asm

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp8/common/postproc.c ('k') | source/libvpx/vp8/common/ppc/filter_altivec.asm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ;
2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 ;
4 ; Use of this source code is governed by a BSD-style license
5 ; that can be found in the LICENSE file in the root of the source
6 ; tree. An additional intellectual property rights grant can be found
7 ; in the file PATENTS. All contributing project authors may
8 ; be found in the AUTHORS file in the root of the source tree.
9 ;
10
11
12 .globl copy_mem16x16_ppc
13
14 ;# r3 unsigned char *src
15 ;# r4 int src_stride
16 ;# r5 unsigned char *dst
17 ;# r6 int dst_stride
18
19 ;# Make the assumption that input will not be aligned,
20 ;# but the output will be. So two reads and a perm
21 ;# for the input, but only one store for the output.
22 copy_mem16x16_ppc:
23 mfspr r11, 256 ;# get old VRSAVE
24 oris r12, r11, 0xe000
25 mtspr 256, r12 ;# set VRSAVE
26
27 li r10, 16
28 mtctr r10
29
30 cp_16x16_loop:
31 lvsl v0, 0, r3 ;# permutate value for alignment
32
33 lvx v1, 0, r3
34 lvx v2, r10, r3
35
36 vperm v1, v1, v2, v0
37
38 stvx v1, 0, r5
39
40 add r3, r3, r4 ;# increment source pointer
41 add r5, r5, r6 ;# increment destination pointer
42
43 bdnz cp_16x16_loop
44
45 mtspr 256, r11 ;# reset old VRSAVE
46
47 blr
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/postproc.c ('k') | source/libvpx/vp8/common/ppc/filter_altivec.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698