if (i==0) tmp1 = qlsp[i]; else tmp1 = qlsp[i]-qlsp[i-1]; if (i==order-1) tmp2 = LSP_PI-qlsp[i]; else tmp2 = qlsp[i+1]-qlsp[i]; if (tmp2<tmp1) tmp1 = tmp2; #ifdef FIXED_POINT quant_weight[i] = DIV32_16(81920,ADD16(300,tmp1));
static void compute_quant_weights(spx_lsp_t *qlsp, spx_word16_t *quant_weight, int order){   int i;   float tmp1, tmp2;   quant_weight[0] = 10/((qlsp[1]-qlsp[0])/LSP_SCALING);   quant_weight[order-1] = 10/((qlsp[order-1]-qlsp[order-2])/LSP_SCALING);   for (i=1;i<order-1;i++)   {#if 1      tmp1 = 10/((.15+(qlsp[i]-qlsp[i-1])/LSP_SCALING)*(.15+(qlsp[i]-qlsp[i-1])/LSP_SCALING));      tmp2 = 10/((.15+(qlsp[i+1]-qlsp[i])/LSP_SCALING)*(.15+(qlsp[i+1]-qlsp[i])/LSP_SCALING));#else      tmp1 = 10/(qlsp[i]-qlsp[i-1]);      tmp2 = 10/(qlsp[i+1]-qlsp[i]);#endif      quant_weight[i] = tmp1 > tmp2 ? tmp1 : tmp2;   }}