On Wed, May 13, 2009 at 1:31 PM, Dag Sverre Seljebotn
<[email protected]> wrote:
> But that means there's still a real problem even if I fix #303; if we
> don't know the exact type for external types then e.g. temporaries from
> expressions of those could loose precision.
>
> Would it work to always allocate temps at the widest possible precision?

That doesn't sound like a good idea.  The widest possible precisions
would presumably be "long long" (for integer) or "long double" (for
float) types; but on many platforms, "long long" is much slower than
"int" and "long double" is much slower than "double".

(And I'm pretty sure it's theoretically possible (allowed by the C
standard) to have integral types wider than "long long" and/or
floating-point types wider than "long double".)

Carl
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to