Thu, 15 Jan 2015 15:59:08 +0100
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_avg_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_avg_neon| PROC |
michael@0 | 19 | push {r4-r6, lr} |
michael@0 | 20 | ldrd r4, r5, [sp, #32] |
michael@0 | 21 | mov r6, r2 |
michael@0 | 22 | |
michael@0 | 23 | cmp r4, #32 |
michael@0 | 24 | bgt avg64 |
michael@0 | 25 | beq avg32 |
michael@0 | 26 | cmp r4, #8 |
michael@0 | 27 | bgt avg16 |
michael@0 | 28 | beq avg8 |
michael@0 | 29 | b avg4 |
michael@0 | 30 | |
michael@0 | 31 | avg64 |
michael@0 | 32 | sub lr, r1, #32 |
michael@0 | 33 | sub r4, r3, #32 |
michael@0 | 34 | avg64_h |
michael@0 | 35 | pld [r0, r1, lsl #1] |
michael@0 | 36 | vld1.8 {q0-q1}, [r0]! |
michael@0 | 37 | vld1.8 {q2-q3}, [r0], lr |
michael@0 | 38 | pld [r2, r3] |
michael@0 | 39 | vld1.8 {q8-q9}, [r6@128]! |
michael@0 | 40 | vld1.8 {q10-q11}, [r6@128], r4 |
michael@0 | 41 | vrhadd.u8 q0, q0, q8 |
michael@0 | 42 | vrhadd.u8 q1, q1, q9 |
michael@0 | 43 | vrhadd.u8 q2, q2, q10 |
michael@0 | 44 | vrhadd.u8 q3, q3, q11 |
michael@0 | 45 | vst1.8 {q0-q1}, [r2@128]! |
michael@0 | 46 | vst1.8 {q2-q3}, [r2@128], r4 |
michael@0 | 47 | subs r5, r5, #1 |
michael@0 | 48 | bgt avg64_h |
michael@0 | 49 | pop {r4-r6, pc} |
michael@0 | 50 | |
michael@0 | 51 | avg32 |
michael@0 | 52 | vld1.8 {q0-q1}, [r0], r1 |
michael@0 | 53 | vld1.8 {q2-q3}, [r0], r1 |
michael@0 | 54 | vld1.8 {q8-q9}, [r6@128], r3 |
michael@0 | 55 | vld1.8 {q10-q11}, [r6@128], r3 |
michael@0 | 56 | pld [r0] |
michael@0 | 57 | vrhadd.u8 q0, q0, q8 |
michael@0 | 58 | pld [r0, r1] |
michael@0 | 59 | vrhadd.u8 q1, q1, q9 |
michael@0 | 60 | pld [r6] |
michael@0 | 61 | vrhadd.u8 q2, q2, q10 |
michael@0 | 62 | pld [r6, r3] |
michael@0 | 63 | vrhadd.u8 q3, q3, q11 |
michael@0 | 64 | vst1.8 {q0-q1}, [r2@128], r3 |
michael@0 | 65 | vst1.8 {q2-q3}, [r2@128], r3 |
michael@0 | 66 | subs r5, r5, #2 |
michael@0 | 67 | bgt avg32 |
michael@0 | 68 | pop {r4-r6, pc} |
michael@0 | 69 | |
michael@0 | 70 | avg16 |
michael@0 | 71 | vld1.8 {q0}, [r0], r1 |
michael@0 | 72 | vld1.8 {q1}, [r0], r1 |
michael@0 | 73 | vld1.8 {q2}, [r6@128], r3 |
michael@0 | 74 | vld1.8 {q3}, [r6@128], r3 |
michael@0 | 75 | pld [r0] |
michael@0 | 76 | pld [r0, r1] |
michael@0 | 77 | vrhadd.u8 q0, q0, q2 |
michael@0 | 78 | pld [r6] |
michael@0 | 79 | pld [r6, r3] |
michael@0 | 80 | vrhadd.u8 q1, q1, q3 |
michael@0 | 81 | vst1.8 {q0}, [r2@128], r3 |
michael@0 | 82 | vst1.8 {q1}, [r2@128], r3 |
michael@0 | 83 | subs r5, r5, #2 |
michael@0 | 84 | bgt avg16 |
michael@0 | 85 | pop {r4-r6, pc} |
michael@0 | 86 | |
michael@0 | 87 | avg8 |
michael@0 | 88 | vld1.8 {d0}, [r0], r1 |
michael@0 | 89 | vld1.8 {d1}, [r0], r1 |
michael@0 | 90 | vld1.8 {d2}, [r6@64], r3 |
michael@0 | 91 | vld1.8 {d3}, [r6@64], r3 |
michael@0 | 92 | pld [r0] |
michael@0 | 93 | pld [r0, r1] |
michael@0 | 94 | vrhadd.u8 q0, q0, q1 |
michael@0 | 95 | pld [r6] |
michael@0 | 96 | pld [r6, r3] |
michael@0 | 97 | vst1.8 {d0}, [r2@64], r3 |
michael@0 | 98 | vst1.8 {d1}, [r2@64], r3 |
michael@0 | 99 | subs r5, r5, #2 |
michael@0 | 100 | bgt avg8 |
michael@0 | 101 | pop {r4-r6, pc} |
michael@0 | 102 | |
michael@0 | 103 | avg4 |
michael@0 | 104 | vld1.32 {d0[0]}, [r0], r1 |
michael@0 | 105 | vld1.32 {d0[1]}, [r0], r1 |
michael@0 | 106 | vld1.32 {d2[0]}, [r6@32], r3 |
michael@0 | 107 | vld1.32 {d2[1]}, [r6@32], r3 |
michael@0 | 108 | vrhadd.u8 d0, d0, d2 |
michael@0 | 109 | vst1.32 {d0[0]}, [r2@32], r3 |
michael@0 | 110 | vst1.32 {d0[1]}, [r2@32], r3 |
michael@0 | 111 | subs r5, r5, #2 |
michael@0 | 112 | bgt avg4 |
michael@0 | 113 | pop {r4-r6, pc} |
michael@0 | 114 | ENDP |
michael@0 | 115 | |
michael@0 | 116 | END |