blob: 517446fdc8fb0aecc60d3e9f152190371af5bc58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do compile } */
/* { dg-options "-Os -ffast-math -mfpmath=387" } */
typedef __SIZE_TYPE__ size_t;
typedef struct
{
float *ewgts;
} vtx_data;
extern void *zmalloc (size_t);
extern int whatever (vtx_data *);
float *
compute_apsp_artifical_weights_packed (vtx_data * graph, int n)
{
float *weights;
weights = (float *) zmalloc (n * sizeof (float));
weights[n] =
whatever (graph) > graph[n].ewgts[n] ?
whatever (graph) : graph[n].ewgts[n];
}
|