comparison dsputil.c @ 7218:7f3d6509628b libavcodec

Fix x86-64
author michael
date Mon, 07 Jul 2008 21:04:29 +0000
parents 87b1dfb5a98d
children 032a49f033e8
comparison
equal deleted inserted replaced
7217:726770da3234 7218:7f3d6509628b
3928 int i; 3928 int i;
3929 for(i=0; i<len; i++) 3929 for(i=0; i<len; i++)
3930 dst[i*step] = src0[i] * src1[i] + src2[i] + src3; 3930 dst[i*step] = src0[i] * src1[i] + src2[i] + src3;
3931 } 3931 }
3932 3932
3933 void ff_float_to_int16_c(int16_t *dst, const float *src, int len){ 3933 void ff_float_to_int16_c(int16_t *dst, const float *src, long len){
3934 int i; 3934 int i;
3935 for(i=0; i<len; i++) { 3935 for(i=0; i<len; i++) {
3936 int_fast32_t tmp = ((const int32_t*)src)[i]; 3936 int_fast32_t tmp = ((const int32_t*)src)[i];
3937 if(tmp & 0xf0000){ 3937 if(tmp & 0xf0000){
3938 tmp = (0x43c0ffff - tmp)>>31; 3938 tmp = (0x43c0ffff - tmp)>>31;