comparison src/aac/libfaad2/ic_predict.c @ 2316:62391135da44

fixed some warnings
author Cristi Magherusan <majeru@atheme.org>
date Tue, 15 Jan 2008 12:35:54 +0200
parents e6c5fdae6e88
children f1b6f1b2cdb3
comparison
equal deleted inserted replaced
2315:8f3476f7a696 2316:62391135da44
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*)&tmp1 + *(float32_t*)&tmp2 - *(float32_t*)&tmp; 55 *pf = *(float32_t*)(void*)&tmp1 + *(float32_t*)(void*)&tmp2 - *(float32_t*)(void*)&tmp;
56 } else { 56 } else {
57 *pf = *(float32_t*)&tmp; 57 *pf = *(float32_t*)(void*)&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 {
63 int16_t q; 63 int16_t q;
64 uint32_t *tmp = (uint32_t*)&x; 64 uint32_t *tmp = (uint32_t*)(void*)&x;
65 65
66 q = (int16_t)(*tmp>>16); 66 q = (int16_t)(*tmp>>16);
67 67
68 return q; 68 return q;
69 } 69 }
70 70
71 static float32_t inv_quant_pred(int16_t q) 71 static float32_t inv_quant_pred(int16_t q)
72 { 72 {
73 float32_t x; 73 float32_t x;
74 uint32_t *tmp = (uint32_t*)&x; 74 uint32_t *tmp = (uint32_t*)(void*)&x;
75 *tmp = ((uint32_t)q)<<16; 75 *tmp = ((uint32_t)q)<<16;
76 76
77 return x; 77 return x;
78 } 78 }
79 79