Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 1009:3b7cc8e4b83f libavcodec
AltiVec perf (take 2), plus a couple AltiVec functions by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michaelni |
---|---|
date | Thu, 16 Jan 2003 21:54:55 +0000 |
parents | edc10966b081 |
children | 35cf2f4a0f8c |
comparison
equal
deleted
inserted
replaced
1008:fb6cbb8a04a3 | 1009:3b7cc8e4b83f |
---|---|
58 c->sse[1]= sse8_altivec; | 58 c->sse[1]= sse8_altivec; |
59 c->sse[0]= sse16_altivec; | 59 c->sse[0]= sse16_altivec; |
60 c->pix_sum = pix_sum_altivec; | 60 c->pix_sum = pix_sum_altivec; |
61 c->diff_pixels = diff_pixels_altivec; | 61 c->diff_pixels = diff_pixels_altivec; |
62 c->get_pixels = get_pixels_altivec; | 62 c->get_pixels = get_pixels_altivec; |
63 // next one disabled as it it untested. | 63 // next two disabled as they're untested. |
64 #if 0 | 64 #if 0 |
65 c->add_bytes= add_bytes_altivec; | 65 c->add_bytes= add_bytes_altivec; |
66 c->put_pixels_clamped = put_pixels_clamped_altivec; | |
66 #endif | 67 #endif |
68 c->put_pixels_tab[0][0] = put_pixels16_altivec; | |
69 c->avg_pixels_tab[0][0] = avg_pixels16_altivec; | |
67 c->gmc1 = gmc1_altivec; | 70 c->gmc1 = gmc1_altivec; |
71 | |
72 #ifdef ALTIVEC_TBL_PERFORMANCE_REPORT | |
73 { | |
74 int i; | |
75 for (i = 0 ; i < altivec_perf_total ; i++) | |
76 { | |
77 perfdata[i][altivec_data_min] = 0xFFFFFFFFFFFFFFFF; | |
78 perfdata[i][altivec_data_max] = 0x0000000000000000; | |
79 perfdata[i][altivec_data_sum] = 0x0000000000000000; | |
80 perfdata[i][altivec_data_num] = 0x0000000000000000; | |
81 } | |
82 } | |
83 #endif | |
68 } else | 84 } else |
69 #endif | 85 #endif |
70 { | 86 { |
71 // Non-AltiVec PPC optimisations | 87 // Non-AltiVec PPC optimisations |
72 | 88 |