------- Additional Comments From gdr at integrable-solutions dot net  
2005-01-12 17:06 -------
Subject: Re:  Trivial loop not unrolled

"rguenth at tat dot physik dot uni-tuebingen dot de" <[EMAIL PROTECTED]> writes:

| Or stuff often found in C++ libraries:
| 
| template <int Dim>
| struct Vector
| {
|   Vector(float init)
|   {
|     for (int i=0; i<Dim; ++i)
|       v[i] = init;
|   }
|   float v[Dim];
| };
| 
| for small Dim (<= 4 should make nearly everyone happy) you want all the
| dimension-unaware loops to be unrolled.

I agree.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19401

Reply via email to