Mercurial > libavcodec.hg
comparison ppc/dsputil_altivec.c @ 638:0012f75c92bb libavcodec
altivec build tidyup patch by (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)
author | michaelni |
---|---|
date | Mon, 02 Sep 2002 08:48:12 +0000 |
parents | 92e99e506920 |
children | ace3ccd18dd2 |
comparison
equal
deleted
inserted
replaced
637:de12d5b9c9ad | 638:0012f75c92bb |
---|---|
125 vec_ste(sumdiffs, 0, &s); | 125 vec_ste(sumdiffs, 0, &s); |
126 | 126 |
127 return s; | 127 return s; |
128 } | 128 } |
129 | 129 |
130 void dsputil_init_altivec(void) | |
131 { | |
132 if (has_altivec()) { | |
133 pix_abs16x16 = pix_abs16x16_altivec; | |
134 pix_abs8x8 = pix_abs8x8_altivec; | |
135 pix_sum = pix_sum_altivec; | |
136 } | |
137 } | |
138 | |
139 int has_altivec(void) | 130 int has_altivec(void) |
140 { | 131 { |
141 #if CONFIG_DARWIN | 132 #if CONFIG_DARWIN |
142 int sels[2] = {CTL_HW, HW_VECTORUNIT}; | 133 int sels[2] = {CTL_HW, HW_VECTORUNIT}; |
143 int has_vu = 0; | 134 int has_vu = 0; |