id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:6 | vpaddl.s32 q0, q8 ;accumulate sum
vpaddl.u32 q1, q10
vadd.s64 d0, d0, d1
vadd.u64 d1, d2, d3
vmull.s32 q5, d0, d0
vst1.32 {d1[0]}, [lr] ;store sse
vshr.u32 d10, d10, #6
vsub.u32 d0, d1, d10
vmov.32 ... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 201 | 224 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:5 | vmov.i8 q10, #0
mov r12, #2
sub_pixel_variance8x8_neon_loop
vld1.8 {d0}, [r4], r5 ;load dst data
subs r12, r12, #1
vld1.8 {d1}, [r4], r5
vld1.8 {d2}, [r4], r5
vsubl.u8 q4, d22, d0 ;calculate diff
... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:6 | vpaddl.s32 q0, q8 ;accumulate sum
vpaddl.u32 q1, q10
vadd.s64 d0, d0, d1
vadd.u64 d1, d2, d3
vmull.s32 q5, d0, d0
vst1.32 {d1[0]}, [lr] ;store sse
vshr.s32 d10, d10, #6
vsub.s32 d0, d1, d10
vmov.32 ... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 201 | 227 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:1 | ;
; Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing projec... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | 94c52e4da8a3532989c84f6b0da695dfaeb18449 | github | media | https://github.com/webmproject/libvpx/blob/94c52e4da8a3532989c84f6b0da695dfaeb18449/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:1 | ;
; 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 sourc... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:2 | vld1.u32 {d31}, [r2] ;load first_pass filter
vld1.u8 {q2}, [r0], r1
vdup.8 d0, d31[0] ;first_pass filter (d0 d1)
vld1.u8 {q3}, [r0], r1
vdup.8 d1, d31[4]
vld1.u8 {q4}, [r0], r1
vmull.u8 q6, d2, d0 ;(sr... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:5 | mov r12, #2
sub_pixel_variance8x8_neon_loop
vld1.8 {d0}, [r4], r5 ;load dst data
subs r12, r12, #1
vld1.8 {d1}, [r4], r5
vld1.8 {d2}, [r4], r5
vsubl.u8 q4, d22, d0 ;calculate diff
vld1.8 {d3}, [r4], r... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm:6 | vpaddl.u32 q1, q10
vadd.s64 d0, d0, d1
vadd.u64 d1, d2, d3
vmull.s32 q5, d0, d0
vst1.32 {d1[0]}, [lr] ;store sse
vshr.s32 d10, d10, #6
vsub.s32 d0, d1, d10
vmov.32 r0, d0[0] ;return
pop {... | arm | masm-like | handwritten | webmproject/libvpx | vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/arm/neon/vp8_subpixelvariance8x8_neon.asm | 201 | 226 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/encodemb_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:2 | add r4, r4, r7
addi r6, r6, 16
vperm v1, v1, v0, v5
vmrghb v3, v0, v1 ;# unpack high src to short
vmrghb v4, v0, v2 ;# unpack high pred to short
lvsl v5, 0, r4 ;# permutate value for alignment
lvx v1, 0, r4 ;# src
add r4, r4, r... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/encodemb_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:3 | vperm v1, v1, v0, v5
vmrghb v3, v0, v1 ;# unpack high src to short
vmrghb v4, v0, v2 ;# unpack high pred to short
lvsl v5, 0, r5 ;# permutate value for alignment
lvx v1, 0, r5 ;# src
add r5, r5, r7
vsubshs v3, v3, v4
stvx v3, 0, r... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/encodemb_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:4 | li r10, 16
mtctr r10
vspltisw v0, 0
mby_loop:
lvx v1, 0, r4 ;# src
lvx v2, 0, r5 ;# pred
add r4, r4, r6
addi r5, r5, 16
vmrghb v3, v0, v1 ;# unpack high src to short
vmrghb v4, v0, v2 ;# unpack high pred to short
vsu... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/encodemb_altivec.asm | 121 | 153 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:1 | ;
; Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing projec... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | 94c52e4da8a3532989c84f6b0da695dfaeb18449 | github | media | https://github.com/webmproject/libvpx/blob/94c52e4da8a3532989c84f6b0da695dfaeb18449/vp8/encoder/ppc/encodemb_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:1 | ;
; 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 sourc... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/encodemb_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:2 | addi r6, r6, 16
vperm v1, v1, v0, v5
vmrghb v3, v0, v1 ;# unpack high src to short
vmrghb v4, v0, v2 ;# unpack high pred to short
lvsl v5, 0, r4 ;# permutate value for alignment
lvx v1, 0, r4 ;# src
add r4, r4, r7
vsubshs v3, v3, ... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/encodemb_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:3 | vmrghb v3, v0, v1 ;# unpack high src to short
vmrghb v4, v0, v2 ;# unpack high pred to short
lvsl v5, 0, r5 ;# permutate value for alignment
lvx v1, 0, r5 ;# src
add r5, r5, r7
vsubshs v3, v3, v4
stvx v3, 0, r3 ;# store out dif... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/encodemb_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/encodemb_altivec.asm:4 | mtctr r10
vspltisw v0, 0
mby_loop:
lvx v1, 0, r4 ;# src
lvx v2, 0, r5 ;# pred
add r4, r4, r6
addi r5, r5, 16
vmrghb v3, v0, v1 ;# unpack high src to short
vmrghb v4, v0, v2 ;# unpack high pred to short
vsubshs v3, v3, v4
... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/encodemb_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/encodemb_altivec.asm | 121 | 152 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/fdct_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:2 | load_c v4, ppc_dctperm_tab, 0, r9, r10
load_c v5, ppc_dctperm_tab, r6, r9, r10
load_c v6, round_tab, 0, r10, r9
.endm
.macro epilogue
addi r1, r1, 32 ;# recover stack
mtspr 256, r11 ;# reset old VRSAVE
.endm
;# Do horiz xf on two rows of coeffs v8 = a0 a1 a2 a3 b0 b1 b2 b... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/fdct_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:3 | vspltw v9, \Codd, 0 ;# v9 = c20 c30 or c22 c32 ""
vmsumshm v8, v8, v12, v6
vmsumshm v8, v9, v13, v8
vsraw v10, v8, v7
vspltw v8, \Codd, 1 ;# v8 = c01 c11 or c03 c13
vspltw v9, \Ceven, 1 ;# v9 = c21 c31 or c23 c33
vmsumshm v8, v8, v12, v6
vmsumshm v8, v9, v13, ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/fdct_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:4 | lwzux r0, r3, r5
two_rows_h v13 ;# v13 = H20 H30 H21 H31 H22 H32 H23 H33
lvx v6, r6, r9 ;# v6 = Vround
vspltisw v7, -16 ;# == 16 == -16, only low 5 bits matter
two_rows_vert v0, v1
stvx v8, 0, r4
two_rows_vert v2, v3
stvx v8, r6, r4
ep... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/fdct_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:5 | ;# Next block
addi r3, r10, 8
addi r4, r4, 32
lvx v6, 0, r9 ;# v6 = Hround
vspltisw v7, 14 ;# == 14, fits in 5 signed bits
addi r8, r1, 0
lwz r0, 0(r3)
two_rows_h v12 ;# v12 = H00 H10 H01 H11 H02 H12 H03 H13
lwzux r0, r3, r5
... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/fdct_altivec.asm | 161 | 205 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:1 | ;
; Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing projec... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | 94c52e4da8a3532989c84f6b0da695dfaeb18449 | github | media | https://github.com/webmproject/libvpx/blob/94c52e4da8a3532989c84f6b0da695dfaeb18449/vp8/encoder/ppc/fdct_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:1 | ;
; 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 sourc... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/fdct_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:2 | load_c v4, ppc_dctperm_tab, 0, r9, r10
load_c v5, ppc_dctperm_tab, r6, r9, r10
load_c v6, round_tab, 0, r10, r9
.endm
.macro epilogue
addi r1, r1, 32 ;# recover stack
mtspr 256, r11 ;# reset old VRSAVE
.endm
;# Do horiz xf on two rows of coeffs v8 = a0 a1 a2 a3 b0 b1 b2 b... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/fdct_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:3 | vmsumshm v8, v8, v12, v6
vmsumshm v8, v9, v13, v8
vsraw v10, v8, v7
vspltw v8, \Codd, 1 ;# v8 = c01 c11 or c03 c13
vspltw v9, \Ceven, 1 ;# v9 = c21 c31 or c23 c33
vmsumshm v8, v8, v12, v6
vmsumshm v8, v9, v13, v8
vsraw v8, v8, v7
vpkuwum v8, v10, v8 ;# v8... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/fdct_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/fdct_altivec.asm:4 | lwzux r0, r3, r5
two_rows_h v13 ;# v13 = H20 H30 H21 H31 H22 H32 H23 H33
lvx v6, r6, r9 ;# v6 = Vround
vspltisw v7, -16 ;# == 16 == -16, only low 5 bits matter
two_rows_vert v0, v1
stvx v8, 0, r4
two_rows_vert v2, v3
stvx v8, r6, r4
ep... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/fdct_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/fdct_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/rdopt_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/rdopt_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/rdopt_altivec.asm | 1 | 51 |
webmproject/libvpx:vp8/encoder/ppc/rdopt_altivec.asm:1 | ;
; Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing projec... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/rdopt_altivec.asm | BSD-3-Clause | 94c52e4da8a3532989c84f6b0da695dfaeb18449 | github | media | https://github.com/webmproject/libvpx/blob/94c52e4da8a3532989c84f6b0da695dfaeb18449/vp8/encoder/ppc/rdopt_altivec.asm | 1 | 51 |
webmproject/libvpx:vp8/encoder/ppc/rdopt_altivec.asm:1 | ;
; 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 sourc... | powerpc | nasm-like | handwritten | webmproject/libvpx | vp8/encoder/ppc/rdopt_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/rdopt_altivec.asm | 1 | 50 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:2 | mtspr 256, r11 ;# reset old VRSAVE
.endm
.macro SAD_16
;# v6 = abs (v4 - v5)
vsububs v6, v4, v5
vsububs v7, v5, v4
vor v6, v6, v7
;# v8 += abs (v4 - v5)
vsum4ubs v8, v6, v8
.endm
.macro sad_16_loop loop_label
lvsl v3, 0, r5 ;# only needs to be done once per b... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:3 | add r3, r3, r4
;# add to the running tally
vsum4ubs v8, v6, v8
;# now onto the next line
vperm v5, v1, v2, v3
add r5, r5, r6
lvx v4, 0, r3
;# compute difference on second row
vsububs v6, v9, v5
lvx v1, 0, r5
vsububs v7, v5, v9
lvx v2, r10, r5
vor... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:4 | add r5, r5, r6
;# only one of the inputs should need to be aligned.
load_aligned_16 v6, r3, r10
load_aligned_16 v7, r5, r10
;# move onto the next line
add r3, r3, r4
add r5, r5, r6
vmrghb v4, v4, v6
vmrghb v5, v5, v7
SAD_16
bdnz \loop_label
vspltisw v7,... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:5 | epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int src_stride
;# r5 unsigned char *ref_ptr
;# r6 int ref_stride
;#
;# r3 return value
vp8_sad16x8_ppc:
prologue
li r9, 4
mtctr r9
sad_16_loop sad16x8_loop
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:6 | epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int src_stride
;# r5 unsigned char *ref_ptr
;# r6 int ref_stride
;#
;# r3 return value
vp8_sad8x8_ppc:
prologue
li r9, 4
mtctr r9
sad_8_loop sad8x8_loop
epilogue
blr
.macro transfer_4x4 I P
lwz r0, 0(\I)
... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 201 | 260 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:7 | stw r9, 12(r1)
.endm
.align 2
;# r3 unsigned char *src_ptr
;# r4 int src_stride
;# r5 unsigned char *ref_ptr
;# r6 int ref_stride
;#
;# r3 return value
vp8_sad4x4_ppc:
prologue
transfer_4x4 r3, r4
lvx v4, 0, r1
transfer_4x4 r5, r6
lvx v5, 0, r1
vspltisw v8, 0 ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/sad_altivec.asm | 241 | 277 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:1 | ;
; Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing projec... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | 94c52e4da8a3532989c84f6b0da695dfaeb18449 | github | media | https://github.com/webmproject/libvpx/blob/94c52e4da8a3532989c84f6b0da695dfaeb18449/vp8/encoder/ppc/sad_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:1 | ;
; 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 sourc... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/sad_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:3 | ;# add to the running tally
vsum4ubs v8, v6, v8
;# now onto the next line
vperm v5, v1, v2, v3
add r5, r5, r6
lvx v4, 0, r3
;# compute difference on second row
vsububs v6, v9, v5
lvx v1, 0, r5
vsububs v7, v5, v9
lvx v2, r10, r5
vor v6, v6, v7
add ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/sad_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:4 | ;# only one of the inputs should need to be aligned.
load_aligned_16 v6, r3, r10
load_aligned_16 v7, r5, r10
;# move onto the next line
add r3, r3, r4
add r5, r5, r6
vmrghb v4, v4, v6
vmrghb v5, v5, v7
SAD_16
bdnz \loop_label
vspltisw v7, 0
vsumsws v8, v8, ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/sad_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:6 | epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int src_stride
;# r5 unsigned char *ref_ptr
;# r6 int ref_stride
;#
;# r3 return value
vp8_sad8x8_ppc:
prologue
li r9, 4
mtctr r9
sad_8_loop sad8x8_loop
epilogue
blr
.macro transfer_4x4 I P
lwz r0, 0(\I)
... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/sad_altivec.asm | 201 | 260 |
webmproject/libvpx:vp8/encoder/ppc/sad_altivec.asm:7 | .endm
.align 2
;# r3 unsigned char *src_ptr
;# r4 int src_stride
;# r5 unsigned char *ref_ptr
;# r6 int ref_stride
;#
;# r3 return value
vp8_sad4x4_ppc:
prologue
transfer_4x4 r3, r4
lvx v4, 0, r1
transfer_4x4 r5, r6
lvx v5, 0, r1
vspltisw v8, 0 ;# zero out total t... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/sad_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/sad_altivec.asm | 241 | 276 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:2 | vspltisw v9, 0 ;# zero out total for dif^2
.endm
.macro epilogue
addi r1, r1, 32 ;# recover stack
mtspr 256, r11 ;# reset old VRSAVE
.endm
.macro compute_sum_sse
;# Compute sum first. Unpack to so signed subract
;# can be used. Only have a half word signed
... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:3 | compute_sum_sse
bdnz \loop_label
vsumsws v8, v8, v7
vsumsws v9, v9, v7
stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
.if \store_sum
stw r3, 0(r8) ;# sum
.endif
stw r4, 0(r7) ;# sse
mullw r3, r3, r3 ;# sum... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:4 | add r5, r5, r6
vmrghb v4, v4, v6
vmrghb v5, v5, v0
compute_sum_sse
bdnz \loop_label
vsumsws v8, v8, v7
vsumsws v9, v9, v7
stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
.if \store_sum
stw r3, 0(r8) ;# sum
.endif
stw... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:5 | li r9, 4
mtctr r9
variance_8 6, get8x8var_loop, 1
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsigned int *SSE
;# r8 int *Sum
;#
;# r3 return value
vp8_get16x16var_ppc:
prologue
mtctr r... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:6 | prologue
mtctr r10
mse16x16_loop:
;# only one of the inputs should need to be aligned.
load_aligned_16 v4, r3, r10
load_aligned_16 v5, r5, r10
;# move onto the next line
add r3, r3, r4
add r5, r5, r6
;# Now compute sse.
vsububs v2, v4, v5
vsububs v3, v5, v4
vor ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 201 | 260 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:7 | ;# r6 int recon_stride
;# r7 unsigned int *sse
;#
;# r3 return value
vp9_variance16x16_ppc:
prologue
mtctr r10
variance_16 8, variance16x16_loop, 0
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsi... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 241 | 300 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:8 | ;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsigned int *sse
;#
;# r3 return value
vp9_variance8x16_ppc:
prologue
li r9, 8
mtctr r9
variance_8 7, variance8x16_loop, 0
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 281 | 340 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:9 | lwz r0, 0(\I)
add \I, \I, \P
lwz r10,0(\I)
add \I, \I, \P
lwz r8, 0(\I)
add \I, \I, \P
lwz r9, 0(\I)
stw r0, 0(r1)
stw r10, 4(r1)
stw r8, 8(r1)
stw r9, 12(r1)
.endm
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stri... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 321 | 375 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:10 | stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
stw r4, 0(r7) ;# sse
mullw r3, r3, r3 ;# sum*sum
srawi r3, r3, 4 ;# (sum*sum) >> 4
subf r3, r3, r4 ;# sse - ((sum*sum) >> 4)
epilogue
blr | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_altivec.asm | 361 | 375 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:3 | compute_sum_sse
bdnz \loop_label
vsumsws v8, v8, v7
vsumsws v9, v9, v7
stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
.if \store_sum
stw r3, 0(r8) ;# sum
.endif
stw r4, 0(r7) ;# sse
mullw r3, r3, r3 ;# sum... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:4 | add r5, r5, r6
vmrghb v4, v4, v6
vmrghb v5, v5, v0
compute_sum_sse
bdnz \loop_label
vsumsws v8, v8, v7
vsumsws v9, v9, v7
stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
.if \store_sum
stw r3, 0(r8) ;# sum
.endif
stw... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:6 | prologue
mtctr r10
mse16x16_loop:
;# only one of the inputs should need to be aligned.
load_aligned_16 v4, r3, r10
load_aligned_16 v5, r5, r10
;# move onto the next line
add r3, r3, r4
add r5, r5, r6
;# Now compute sse.
vsububs v2, v4, v5
vsububs v3, v5, v4
vor ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 201 | 260 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:7 | ;# r6 int recon_stride
;# r7 unsigned int *sse
;#
;# r3 return value
vp8_variance16x16_ppc:
prologue
mtctr r10
variance_16 8, variance16x16_loop, 0
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsi... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 241 | 300 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:8 | ;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsigned int *sse
;#
;# r3 return value
vp8_variance8x16_ppc:
prologue
li r9, 8
mtctr r9
variance_8 7, variance8x16_loop, 0
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 281 | 340 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:9 | lwz r0, 0(\I)
add \I, \I, \P
lwz r10,0(\I)
add \I, \I, \P
lwz r8, 0(\I)
add \I, \I, \P
lwz r9, 0(\I)
stw r0, 0(r1)
stw r10, 4(r1)
stw r8, 8(r1)
stw r9, 12(r1)
.endm
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stri... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 321 | 375 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:10 | stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
stw r4, 0(r7) ;# sse
mullw r3, r3, r3 ;# sum*sum
srlwi r3, r3, 4 ;# (sum*sum) >> 4
subf r3, r3, r4 ;# sse - ((sum*sum) >> 4)
epilogue
blr | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_altivec.asm | 361 | 375 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:9 | lwz r0, 0(\I)
add \I, \I, \P
lwz r10,0(\I)
add \I, \I, \P
lwz r8, 0(\I)
add \I, \I, \P
lwz r9, 0(\I)
stw r0, 0(r1)
stw r10, 4(r1)
stw r8, 8(r1)
stw r9, 12(r1)
.endm
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stri... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | c2140b8af169a6d93a70efc403a5956f5ec84dba | github | media | https://github.com/webmproject/libvpx/blob/c2140b8af169a6d93a70efc403a5956f5ec84dba/vp8/encoder/ppc/variance_altivec.asm | 321 | 375 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:1 | ;
; Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing projec... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 94c52e4da8a3532989c84f6b0da695dfaeb18449 | github | media | https://github.com/webmproject/libvpx/blob/94c52e4da8a3532989c84f6b0da695dfaeb18449/vp8/encoder/ppc/variance_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:1 | ;
; 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 sourc... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:2 | .endm
.macro epilogue
addi r1, r1, 32 ;# recover stack
mtspr 256, r11 ;# reset old VRSAVE
.endm
.macro compute_sum_sse
;# Compute sum first. Unpack to so signed subract
;# can be used. Only have a half word signed
;# subract. Do high, then low.
vmrghb v2, v7, v4... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:3 | compute_sum_sse
bdnz \loop_label
vsumsws v8, v8, v7
vsumsws v9, v9, v7
stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
.if \store_sum
stw r3, 0(r8) ;# sum
.endif
stw r4, 0(r7) ;# sse
mullw r3, r3, r3 ;# sum... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:4 | vmrghb v4, v4, v6
vmrghb v5, v5, v0
compute_sum_sse
bdnz \loop_label
vsumsws v8, v8, v7
vsumsws v9, v9, v7
stvx v8, 0, r1
lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
.if \store_sum
stw r3, 0(r8) ;# sum
.endif
stw r4, 0(r7) ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:5 | li r9, 4
mtctr r9
variance_8 6, get8x8var_loop, 1
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsigned int *SSE
;# r8 int *Sum
;#
;# r3 return value
vp8_get16x16var_ppc:
prologue
mtctr r... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:6 | mtctr r10
mse16x16_loop:
;# only one of the inputs should need to be aligned.
load_aligned_16 v4, r3, r10
load_aligned_16 v5, r5, r10
;# move onto the next line
add r3, r3, r4
add r5, r5, r6
;# Now compute sse.
vsububs v2, v4, v5
vsububs v3, v5, v4
vor v2, v2, v3... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 201 | 260 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:7 | ;# r7 unsigned int *sse
;#
;# r3 return value
vp8_variance16x16_ppc:
prologue
mtctr r10
variance_16 8, variance16x16_loop, 0
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char *ref_ptr
;# r6 int recon_stride
;# r7 unsigned int *sse
;#
;# r3 r... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 241 | 300 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:8 | ;# r6 int recon_stride
;# r7 unsigned int *sse
;#
;# r3 return value
vp8_variance8x16_ppc:
prologue
li r9, 8
mtctr r9
variance_8 7, variance8x16_loop, 0
epilogue
blr
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char *ref_ptr
;# r6 int recon_str... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 281 | 340 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:9 | add \I, \I, \P
lwz r10,0(\I)
add \I, \I, \P
lwz r8, 0(\I)
add \I, \I, \P
lwz r9, 0(\I)
stw r0, 0(r1)
stw r10, 4(r1)
stw r8, 8(r1)
stw r9, 12(r1)
.endm
.align 2
;# r3 unsigned char *src_ptr
;# r4 int source_stride
;# r5 unsigned char... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 321 | 374 |
webmproject/libvpx:vp8/encoder/ppc/variance_altivec.asm:10 | lwz r3, 12(r1)
stvx v9, 0, r1
lwz r4, 12(r1)
stw r4, 0(r7) ;# sse
mullw r3, r3, r3 ;# sum*sum
srawi r3, r3, 4 ;# (sum*sum) >> 4
subf r3, r3, r4 ;# sse - ((sum*sum) >> 4)
epilogue
blr | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_altivec.asm | BSD-3-Clause | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 | github | media | https://github.com/webmproject/libvpx/blob/0ea50ce9cb4b65eee6afa1d041fe8beb5abda667/vp8/encoder/ppc/variance_altivec.asm | 361 | 374 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:2 | ;# If there isn't any filtering to be done for the horizontal, then
;# just skip to the second pass.
beq \jump_label
load_c v20, hfilter_b, r5, r12, r0
;# setup constants
;# v14 permutation value for alignment
load_c v28, b_hperm_b, 0, r12, r0
;# index to the next set of vectors in t... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 41 | 100 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:3 | .macro hfilter_8 V, hp, lp, increment_counter
lvsl v17, 0, r3 ;# permutate value for alignment
;# input to filter is 9 bytes wide, output is 8 bytes.
lvx v21, 0, r3
lvx v22, r10, r3
.if \increment_counter
add r3, r3, r4
.endif
vperm v21, v21, v22, v17
vperm v... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 81 | 140 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:4 | vmrglh v23, v22, v23
vpkuhus \P0, \P0, v23 ;# P0 = 8-bit result
.endm
.macro compute_sum_sse src, ref, sum, sse, t1, t2, z0
;# Compute sum first. Unpack to so signed subract
;# can be used. Only have a half word signed
;# subract. Do high, then low.
vmrghb \t1, \z0, \src
vmrghb \t... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:5 | subf r3, r3, r4 ;# sse - ((sum*sum) >> 8)
.endm
.macro compute_sum_sse_16 V, increment_counter
load_and_align_16 v16, r7, r8, \increment_counter
compute_sum_sse \V, v16, v18, v19, v20, v21, v23
.endm
.macro load_and_align_16 V, R, P, increment_counter
lvsl v17, 0, \R ;# permutate ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:6 | HProlog second_pass_4x4_pre_copy_b
;# Load up permutation constants
load_c v10, b_0123_b, 0, r12, r0
load_c v11, b_4567_b, 0, r12, r0
hfilter_8 v0, v10, v11, 1
hfilter_8 v1, v10, v11, 1
hfilter_8 v2, v10, v11, 1
hfilter_8 v3, v10, v11, 1
;# Finished filtering main horizontal block. I... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 201 | 260 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:7 | vfilter_16 v2, v3
vfilter_16 v3, v4
compute_sum_sse_4x4_b:
vspltish v18, 0 ;# sum
vspltish v19, 0 ;# sse
vspltish v23, 0 ;# unpack
li r10, 16
load_and_align_16 v4, r7, r8, 1
load_and_align_16 v5, r7, r8, 1
load_and_align_16 v6, r7, r8, 1
l... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 241 | 300 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:8 | ;# r8 int dst_pixels_per_line
;# r9 unsigned int *sse
;#
;# r3 return value
vp9_sub_pixel_variance8x8_ppc:
mfspr r11, 256 ;# get old VRSAVE
oris r12, r11, 0xfff0
ori r12, r12, 0xffff
mtspr 256, r12 ;# set VRSAVE
stwu r1,-32(r1) ;# create space on the sta... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 281 | 340 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:9 | load_and_align_16 v0, r3, r4, 1
load_and_align_16 v1, r3, r4, 1
load_and_align_16 v2, r3, r4, 1
load_and_align_16 v3, r3, r4, 1
load_and_align_16 v4, r3, r4, 1
load_and_align_16 v5, r3, r4, 1
load_and_align_16 v6, r3, r4, 1
load_and_align_16 v7, r3, r4, 1
load_and_align_16 v8, r3, r4, 0
... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 321 | 380 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:10 | load_and_align_16 v5, r7, r8, 1
load_and_align_16 v6, r7, r8, 1
load_and_align_16 v7, r7, r8, 1
load_and_align_16 v8, r7, r8, 1
load_and_align_16 v9, r7, r8, 1
load_and_align_16 v10, r7, r8, 1
load_and_align_16 v11, r7, r8, 0
vmrghb v4, v4, v5
vmrghb v5, v6, v7
vmrghb v6, ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 361 | 420 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:11 | stwu r1,-32(r1) ;# create space on the stack
HProlog second_pass_8x16_pre_copy_b
;# Load up permutation constants
load_c v29, b_0123_b, 0, r12, r0
load_c v30, b_4567_b, 0, r12, r0
hfilter_8 v0, v29, v30, 1
hfilter_8 v1, v29, v30, 1
hfilter_8 v2, v29, v30, 1
hfilter_8 v3... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 401 | 460 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:12 | load_and_align_16 v2, r3, r4, 1
load_and_align_16 v3, r3, r4, 1
load_and_align_16 v4, r3, r4, 1
load_and_align_16 v5, r3, r4, 1
load_and_align_16 v6, r3, r4, 1
load_and_align_16 v7, r3, r4, 1
load_and_align_16 v8, r3, r4, 1
load_and_align_16 v9, r3, r4, 1
load_and_align_16 v10, r... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 441 | 500 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:13 | vfilter_16 v15, v16
compute_sum_sse_8x16_b:
vspltish v18, 0 ;# sum
vspltish v19, 0 ;# sse
vspltish v23, 0 ;# unpack
li r10, 16
vmrghb v0, v0, v1
vmrghb v1, v2, v3
vmrghb v2, v4, v5
vmrghb v3, v6, v7
vmrghb v4, v8, v9
vmrghb v5... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 481 | 540 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:14 | load_and_align_16 v12, r7, r8, 1
load_and_align_16 v13, r7, r8, 1
load_and_align_16 v14, r7, r8, 1
load_and_align_16 v15, r7, r8, 0
vmrghb v8, v8, v9
vmrghb v9, v10, v11
vmrghb v10, v12, v13
vmrghb v11, v14, v15
compute_sum_sse v4, v8, v18, v19, v20, v21, v23
compute_sum_ss... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 521 | 580 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:15 | .macro hfilter_16 V, increment_counter
lvsl v17, 0, r3 ;# permutate value for alignment
;# input to filter is 21 bytes wide, output is 16 bytes.
;# input will can span three vectors if not aligned correctly.
lvx v21, 0, r3
lvx v22, r10, r3
lvx v23, r12, r3
.if \incr... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 561 | 620 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:16 | .align 2
;# r3 unsigned char *src_ptr
;# r4 int src_pixels_per_line
;# r5 int xoffset
;# r6 int yoffset
;# r7 unsigned char *dst_ptr
;# r8 int dst_pixels_per_line
;# r9 unsigned int *sse
;#
;# r3 return value
vp9_sub_pixel_variance16x8_ppc:
mfspr r11, 256 ;# get old VRSAVE
oris r12, r11, 0xf... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 601 | 660 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:17 | second_pass_16x8_pre_copy_b:
slwi. r6, r6, 5 ;# index into vertical filter array
load_and_align_16 v0, r3, r4, 1
load_and_align_16 v1, r3, r4, 1
load_and_align_16 v2, r3, r4, 1
load_and_align_16 v3, r3, r4, 1
load_and_align_16 v4, r3, r4, 1
load_and_align_16 v5, r3, ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 641 | 700 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:18 | compute_sum_sse_16 v3, 1
compute_sum_sse_16 v4, 1
compute_sum_sse_16 v5, 1
compute_sum_sse_16 v6, 1
compute_sum_sse_16 v7, 0
variance_final v18, v19, v23, 7
addi r1, r1, 32 ;# recover stack
mtspr 256, r11 ;# reset old VRSAVE
blr
.align 2
;# r3 unsigned c... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 681 | 740 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:19 | hfilter_16 v6, 1
hfilter_16 v7, 1
hfilter_16 v8, 1
hfilter_16 v9, 1
hfilter_16 v10, 1
hfilter_16 v11, 1
hfilter_16 v12, 1
hfilter_16 v13, 1
hfilter_16 v14, 1
hfilter_16 v15, 1
;# Finished filtering main horizontal block. If there is no
;# vertical filtering, jump to st... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 721 | 780 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:20 | load_and_align_16 v16, r3, r4, 0
beq compute_sum_sse_16x16_b
second_pass_16x16_b:
vspltish v20, 8
vspltish v18, 3
vslh v18, v20, v18 ;# 0x0040 0040 0040 0040 0040 0040 0040 0040
load_vfilter v20, v21
vfilter_16 v0, v1
vfilter_16 v1, v2
vfilter_16 v2, v3
vfilter_16 v3... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 761 | 820 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:21 | compute_sum_sse_16 v6, 1
compute_sum_sse_16 v7, 1
compute_sum_sse_16 v8, 1
compute_sum_sse_16 v9, 1
compute_sum_sse_16 v10, 1
compute_sum_sse_16 v11, 1
compute_sum_sse_16 v12, 1
compute_sum_sse_16 v13, 1
compute_sum_sse_16 v14, 1
compute_sum_sse_16 v15, 0
variance_final v18,... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 801 | 860 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:22 | .byte 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80
.byte 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48
.byte 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64
.byte 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64
.byte 48, 48,... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | 6a4b1e59588fa40fec301a5c14680ae66b4afba2 | github | media | https://github.com/webmproject/libvpx/blob/6a4b1e59588fa40fec301a5c14680ae66b4afba2/vp8/encoder/ppc/variance_subpixel_altivec.asm | 841 | 865 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:1 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_subpixel_altivec.asm | 1 | 60 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:4 | vmrglh v23, v22, v23
vpkuhus \P0, \P0, v23 ;# P0 = 8-bit result
.endm
.macro compute_sum_sse src, ref, sum, sse, t1, t2, z0
;# Compute sum first. Unpack to so signed subract
;# can be used. Only have a half word signed
;# subract. Do high, then low.
vmrghb \t1, \z0, \src
vmrghb \t... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_subpixel_altivec.asm | 121 | 180 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:5 | subf r3, r3, r4 ;# sse - ((sum*sum) >> 8)
.endm
.macro compute_sum_sse_16 V, increment_counter
load_and_align_16 v16, r7, r8, \increment_counter
compute_sum_sse \V, v16, v18, v19, v20, v21, v23
.endm
.macro load_and_align_16 V, R, P, increment_counter
lvsl v17, 0, \R ;# permutate ... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_subpixel_altivec.asm | 161 | 220 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:7 | vfilter_16 v2, v3
vfilter_16 v3, v4
compute_sum_sse_4x4_b:
vspltish v18, 0 ;# sum
vspltish v19, 0 ;# sse
vspltish v23, 0 ;# unpack
li r10, 16
load_and_align_16 v4, r7, r8, 1
load_and_align_16 v5, r7, r8, 1
load_and_align_16 v6, r7, r8, 1
l... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_subpixel_altivec.asm | 241 | 300 |
webmproject/libvpx:vp8/encoder/ppc/variance_subpixel_altivec.asm:8 | ;# r8 int dst_pixels_per_line
;# r9 unsigned int *sse
;#
;# r3 return value
vp8_sub_pixel_variance8x8_ppc:
mfspr r11, 256 ;# get old VRSAVE
oris r12, r11, 0xfff0
ori r12, r12, 0xffff
mtspr 256, r12 ;# set VRSAVE
stwu r1,-32(r1) ;# create space on the sta... | powerpc | nasm-like | macro-heavy | webmproject/libvpx | vp8/encoder/ppc/variance_subpixel_altivec.asm | BSD-3-Clause | fea3556e20f63ed1a03daa45804f724e70705aa0 | github | media | https://github.com/webmproject/libvpx/blob/fea3556e20f63ed1a03daa45804f724e70705aa0/vp8/encoder/ppc/variance_subpixel_altivec.asm | 281 | 340 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.