URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* { dg-do compile { target i?86-*-* } } */
|
/* { dg-do compile { target i?86-*-* } } */
|
/* { dg-options "-O1 -fprefetch-loop-arrays -march=athlon" } */
|
/* { dg-options "-O1 -fprefetch-loop-arrays -march=athlon" } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-require-effective-target ilp32 } */
|
|
|
int length1();
|
int length1();
|
int g(int);
|
int g(int);
|
void f(int capacity_, char *old_storage)
|
void f(int capacity_, char *old_storage)
|
{
|
{
|
try {
|
try {
|
length1();
|
length1();
|
int old_capacity = capacity_;
|
int old_capacity = capacity_;
|
capacity_ *= 2;
|
capacity_ *= 2;
|
g(capacity_);
|
g(capacity_);
|
for (int i = 1; i < old_capacity; i++)
|
for (int i = 1; i < old_capacity; i++)
|
old_storage[i] = old_storage[i - 1];
|
old_storage[i] = old_storage[i - 1];
|
} catch (...) {
|
} catch (...) {
|
for (int i = 1; i < capacity_; i++){old_storage[i] = 0;}
|
for (int i = 1; i < capacity_; i++){old_storage[i] = 0;}
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.