initial import
[ICEs.git] / 218158 / af_volnorm.i
1 struct mem {
2 float avg;
3 int len;
4 };
5 float method2_int16(struct mem *mem)
6 {
7 int i;
8 float avg;
9 for (i = 0; i < 100; ++i)
10 avg += mem[i].avg * (float)mem[i].len;
11 return avg;
12 }