Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/graphite/pr24309.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -ftree-loop-linear" } */ | |
3 | |
4 float weight[10]; | |
5 void lsp_weight_quant(float *x, char *cdbk) | |
6 { | |
7 int i,j; | |
8 float dist; | |
9 int best_id=0; | |
10 for (i=0;i<16;i++) | |
11 { | |
12 for (j=0;j<10;j++) | |
13 dist=dist+weight[j]; | |
14 if (dist<0) | |
15 best_id=i; | |
16 } | |
17 x[j] = cdbk[best_id*10+j]; | |
18 } |