OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr44546.c] - Blame information for rev 329

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.