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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr29250.c] - Rev 745

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

/* We used to ICE because EXPAND_SUM was being used for all recursive calls
   to expand_expr.  */
struct TSparseEntry
{
  int feat_index;
  double entry;
};
 
struct TSparse
{
  int vec_index;
  int num_feat_entries;
  struct TSparseEntry *features;
};
 
void
get_full_feature_matrix (struct TSparse* sparse_feature_matrix, int num_vec)
{
  double *fm;
  int v, f;
 
  for (v=0; v < num_vec; v++)
  {
    for (f=0; f < sparse_feature_matrix[v].num_feat_entries; f++)
    {
      long long offs = sparse_feature_matrix[v].vec_index
	+ sparse_feature_matrix[v].features[f].feat_index;
      fm[offs] = sparse_feature_matrix[v].features[f].entry;
    }
  }
}
 
 

Go to most recent revision | 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.