diff options
author | John Koleszar <jkoleszar@google.com> | 2011-03-17 17:07:59 -0400 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2011-03-17 20:53:47 -0400 |
commit | 429dc676b19ff8dbb5864e3c436de1b214e538b0 (patch) | |
tree | af0706b473fba2ada97ea22e30adc26e5435fcb9 /vp8/common/x86/subpixel_mmx.asm | |
parent | 71bcd9f1af91f2dea22f2e71839039d83e5b1d84 (diff) | |
download | libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.tar libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.tar.gz libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.tar.bz2 libvpx-429dc676b19ff8dbb5864e3c436de1b214e538b0.zip |
Increase static linkage, remove unused functions
A large number of functions were defined with external linkage, even
though they were only used from within one file. This patch changes
their linkage to static and removes the vp8_ prefix from their names,
which should make it more obvious to the reader that the function is
contained within the current translation unit. Functions that were
not referenced were removed.
These symbols were identified by:
$ nm -A libvpx.a | sort -k3 | uniq -c -f2 | grep ' [A-Z] ' \
| sort | grep '^ *1 '
Change-Id: I59609f58ab65312012c047036ae1e0634f795779
Diffstat (limited to 'vp8/common/x86/subpixel_mmx.asm')
-rw-r--r-- | vp8/common/x86/subpixel_mmx.asm | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/vp8/common/x86/subpixel_mmx.asm b/vp8/common/x86/subpixel_mmx.asm index 23ed4e208..9004b525d 100644 --- a/vp8/common/x86/subpixel_mmx.asm +++ b/vp8/common/x86/subpixel_mmx.asm @@ -113,97 +113,6 @@ nextrow: ret -; -; THIS FUNCTION APPEARS TO BE UNUSED -; -;void vp8_filter_block1d_v6_mmx -;( -; short *src_ptr, -; unsigned char *output_ptr, -; unsigned int pixels_per_line, -; unsigned int pixel_step, -; unsigned int output_height, -; unsigned int output_width, -; short * vp8_filter -;) -global sym(vp8_filter_block1d_v6_mmx) -sym(vp8_filter_block1d_v6_mmx): - push rbp - mov rbp, rsp - SHADOW_ARGS_TO_STACK 7 - GET_GOT rbx - push rsi - push rdi - ; end prolog - - movq mm5, [GLOBAL(rd)] - push rbx - mov rbx, arg(6) ;vp8_filter - movq mm1, [rbx + 16] ; do both the negative taps first!!! - movq mm2, [rbx + 32] ; - movq mm6, [rbx + 48] ; - movq mm7, [rbx + 64] ; - - movsxd rdx, dword ptr arg(2) ;pixels_per_line - mov rdi, arg(1) ;output_ptr - mov rsi, arg(0) ;src_ptr - sub rsi, rdx - sub rsi, rdx - movsxd rcx, DWORD PTR arg(4) ;output_height - movsxd rax, DWORD PTR arg(5) ;output_width ; destination pitch? - pxor mm0, mm0 ; mm0 = 00000000 - - -nextrow_v: - movq mm3, [rsi+rdx] ; mm3 = p0..p8 = row -1 - pmullw mm3, mm1 ; mm3 *= kernel 1 modifiers. - - - movq mm4, [rsi + 4*rdx] ; mm4 = p0..p3 = row 2 - pmullw mm4, mm7 ; mm4 *= kernel 4 modifiers. - paddsw mm3, mm4 ; mm3 += mm4 - - movq mm4, [rsi + 2*rdx] ; mm4 = p0..p3 = row 0 - pmullw mm4, mm2 ; mm4 *= kernel 2 modifiers. - paddsw mm3, mm4 ; mm3 += mm4 - - movq mm4, [rsi] ; mm4 = p0..p3 = row -2 - pmullw mm4, [rbx] ; mm4 *= kernel 0 modifiers. - paddsw mm3, mm4 ; mm3 += mm4 - - - add rsi, rdx ; move source forward 1 line to avoid 3 * pitch - movq mm4, [rsi + 2*rdx] ; mm4 = p0..p3 = row 1 - pmullw mm4, mm6 ; mm4 *= kernel 3 modifiers. - paddsw mm3, mm4 ; mm3 += mm4 - - movq mm4, [rsi + 4*rdx] ; mm4 = p0..p3 = row 3 - pmullw mm4, [rbx +80] ; mm4 *= kernel 3 modifiers. - paddsw mm3, mm4 ; mm3 += mm4 - - - paddsw mm3, mm5 ; mm3 += round value - psraw mm3, VP8_FILTER_SHIFT ; mm3 /= 128 - packuswb mm3, mm0 ; pack and saturate - - movd [rdi],mm3 ; store the results in the destination - - add rdi,rax; - - dec rcx ; decrement count - jnz nextrow_v ; next row - - pop rbx - - ; begin epilog - pop rdi - pop rsi - RESTORE_GOT - UNSHADOW_ARGS - pop rbp - ret - - ;void vp8_filter_block1dc_v6_mmx ;( ; short *src_ptr, |