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/decoder/x86 | |
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/decoder/x86')
-rw-r--r-- | vp8/decoder/x86/x86_dsystemdependent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/decoder/x86/x86_dsystemdependent.c b/vp8/decoder/x86/x86_dsystemdependent.c index 3f1b7d5ad..5c1684230 100644 --- a/vp8/decoder/x86/x86_dsystemdependent.c +++ b/vp8/decoder/x86/x86_dsystemdependent.c @@ -17,7 +17,7 @@ #if HAVE_MMX void vp8_dequantize_b_impl_mmx(short *sq, short *dq, short *q); -void vp8_dequantize_b_mmx(BLOCKD *d) +static void dequantize_b_mmx(BLOCKD *d) { short *sq = (short *) d->qcoeff; short *dq = (short *) d->dqcoeff; @@ -41,7 +41,7 @@ void vp8_arch_x86_decode_init(VP8D_COMP *pbi) #if HAVE_MMX if (flags & HAS_MMX) { - pbi->dequant.block = vp8_dequantize_b_mmx; + pbi->dequant.block = dequantize_b_mmx; pbi->dequant.idct_add = vp8_dequant_idct_add_mmx; pbi->dequant.dc_idct_add = vp8_dequant_dc_idct_add_mmx; pbi->dequant.dc_idct_add_y_block = vp8_dequant_dc_idct_add_y_block_mmx; |