Re: [Linux-ia64] gcc won't inline function returning struct?

2001-10-31 Thread Jim Wilson
>If it makes function calls when the author was expecting it to do two >computations, its performance may well be insufficient to function. I've never heard this argument before. It does make some sense. It does have a flaw though. If the code was originally written for IA-32, and proven to mee

Re: [Linux-ia64] gcc won't inline function returning struct?

2001-10-31 Thread Jim Wilson
typedef struct { float re, im; int dummy; } complex; I tried this, and it works. >Since this is no longer an HFA would this kick the compiler into >a mode where the code would at least work, all be it not in the most >efficient manner? Just to clar

Re: [Linux-ia64] gcc won't inline function returning struct?

2001-10-31 Thread Jim Wilson
The IA-64 ABI says that structures of floats are passed/returned decomposed into floating point registers. They ABI calls them homogeneous floating-point aggregates, or HFA for short. This also applies to complex types. Thus your structure typedef struct { float re, im;