media/libvpx/vp9/common/arm/neon/vp9_copy_neon.asm

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 ;
michael@0 2 ; Copyright (c) 2013 The WebM project authors. All Rights Reserved.
michael@0 3 ;
michael@0 4 ; Use of this source code is governed by a BSD-style license
michael@0 5 ; that can be found in the LICENSE file in the root of the source
michael@0 6 ; tree. An additional intellectual property rights grant can be found
michael@0 7 ; in the file PATENTS. All contributing project authors may
michael@0 8 ; be found in the AUTHORS file in the root of the source tree.
michael@0 9 ;
michael@0 10
michael@0 11 EXPORT |vp9_convolve_copy_neon|
michael@0 12 ARM
michael@0 13 REQUIRE8
michael@0 14 PRESERVE8
michael@0 15
michael@0 16 AREA ||.text||, CODE, READONLY, ALIGN=2
michael@0 17
michael@0 18 |vp9_convolve_copy_neon| PROC
michael@0 19 push {r4-r5, lr}
michael@0 20 ldrd r4, r5, [sp, #28]
michael@0 21
michael@0 22 cmp r4, #32
michael@0 23 bgt copy64
michael@0 24 beq copy32
michael@0 25 cmp r4, #8
michael@0 26 bgt copy16
michael@0 27 beq copy8
michael@0 28 b copy4
michael@0 29
michael@0 30 copy64
michael@0 31 sub lr, r1, #32
michael@0 32 sub r3, r3, #32
michael@0 33 copy64_h
michael@0 34 pld [r0, r1, lsl #1]
michael@0 35 vld1.8 {q0-q1}, [r0]!
michael@0 36 vld1.8 {q2-q3}, [r0], lr
michael@0 37 vst1.8 {q0-q1}, [r2@128]!
michael@0 38 vst1.8 {q2-q3}, [r2@128], r3
michael@0 39 subs r5, r5, #1
michael@0 40 bgt copy64_h
michael@0 41 pop {r4-r5, pc}
michael@0 42
michael@0 43 copy32
michael@0 44 pld [r0, r1, lsl #1]
michael@0 45 vld1.8 {q0-q1}, [r0], r1
michael@0 46 pld [r0, r1, lsl #1]
michael@0 47 vld1.8 {q2-q3}, [r0], r1
michael@0 48 vst1.8 {q0-q1}, [r2@128], r3
michael@0 49 vst1.8 {q2-q3}, [r2@128], r3
michael@0 50 subs r5, r5, #2
michael@0 51 bgt copy32
michael@0 52 pop {r4-r5, pc}
michael@0 53
michael@0 54 copy16
michael@0 55 pld [r0, r1, lsl #1]
michael@0 56 vld1.8 {q0}, [r0], r1
michael@0 57 pld [r0, r1, lsl #1]
michael@0 58 vld1.8 {q1}, [r0], r1
michael@0 59 vst1.8 {q0}, [r2@128], r3
michael@0 60 vst1.8 {q1}, [r2@128], r3
michael@0 61 subs r5, r5, #2
michael@0 62 bgt copy16
michael@0 63 pop {r4-r5, pc}
michael@0 64
michael@0 65 copy8
michael@0 66 pld [r0, r1, lsl #1]
michael@0 67 vld1.8 {d0}, [r0], r1
michael@0 68 pld [r0, r1, lsl #1]
michael@0 69 vld1.8 {d2}, [r0], r1
michael@0 70 vst1.8 {d0}, [r2@64], r3
michael@0 71 vst1.8 {d2}, [r2@64], r3
michael@0 72 subs r5, r5, #2
michael@0 73 bgt copy8
michael@0 74 pop {r4-r5, pc}
michael@0 75
michael@0 76 copy4
michael@0 77 ldr r12, [r0], r1
michael@0 78 str r12, [r2], r3
michael@0 79 subs r5, r5, #1
michael@0 80 bgt copy4
michael@0 81 pop {r4-r5, pc}
michael@0 82 ENDP
michael@0 83
michael@0 84 END

mercurial