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] - Rev 318

Compare with Previous | Blame | View Log

/* { 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];
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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