comparison src/aac/libfaad2/ic_predict.c @ 2865:0ba28b84bdef

Less pointer voodoo, no more warnings, audio output unchanged. Everybody wins!
author Tony Vroon <chainsaw@gentoo.org>
date Wed, 06 Aug 2008 11:48:18 +0100
parents f1b6f1b2cdb3
children 8867d3491f60
comparison
equal deleted inserted replaced
2864:0d0a52f82be4 2865:0ba28b84bdef
50 tmp &= (uint32_t)0xff800000; /* extract exponent and sign */ 50 tmp &= (uint32_t)0xff800000; /* extract exponent and sign */
51 tmp |= (uint32_t)0x00010000; /* insert 1 lsb */ 51 tmp |= (uint32_t)0x00010000; /* insert 1 lsb */
52 tmp2 = tmp; /* add 1 lsb and elided one */ 52 tmp2 = tmp; /* add 1 lsb and elided one */
53 tmp &= (uint32_t)0xff800000; /* extract exponent and sign */ 53 tmp &= (uint32_t)0xff800000; /* extract exponent and sign */
54 54
55 *pf = *(float32_t*)(void*)&tmp1 + *(float32_t*)(void*)&tmp2 - *(float32_t*)(void*)&tmp; 55 *pf = (float32_t)tmp1 + (float32_t)tmp2 - (float32_t)tmp;
56 } else { 56 } else {
57 *pf = *(float32_t*)(void*)&tmp; 57 *pf = (float32_t)tmp;
58 } 58 }
59 } 59 }
60 60
61 static int16_t quant_pred(float32_t x) 61 static int16_t quant_pred(float32_t x)
62 { 62 {