URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 5 Jan 2005
|
// Contributed by Nathan Sidwell 5 Jan 2005
|
|
|
// PR 19270: ICE
|
// PR 19270: ICE
|
// Origin: Ralf Wildenhues
|
// Origin: Ralf Wildenhues
|
|
|
template struct Vec {
|
template struct Vec {
|
T* data;
|
T* data;
|
T& operator[](int i) const;
|
T& operator[](int i) const;
|
};
|
};
|
|
|
template inline T& Vec::operator[](int i) const
|
template inline T& Vec::operator[](int i) const
|
{
|
{
|
return (&data[0])[i];
|
return (&data[0])[i];
|
}
|
}
|
|
|
inline double foo(Vec v)
|
inline double foo(Vec v)
|
{
|
{
|
return v[0];
|
return v[0];
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.