From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: int vs. long
Date: Sun, 1 Aug 1999 16:38:44 -0700 [thread overview]
Message-ID: <19990801163844.A4553@twiddle.net> (raw)
In-Reply-To: <Pine.LNX.4.10.9907301437080.12502-100000@Screech>; from Christopher T. Lansdown on Fri, Jul 30, 1999 at 02:39:21PM -0400
On Fri, Jul 30, 1999 at 02:39:21PM -0400, Christopher T. Lansdown wrote:
> Is there a speed difference between dealing with ints and dealing
> with longs on the Alpha?
Yes. It ought to be small, but present. Comparisons, for instance,
have to be done as longs; most of the time the compiler can figure
out that the ldl or addl has produced a proplerly sign-extended value,
but sometimes not.
> Oh, on another note, how much of a speed hit is a cast from
> int (long) to float? Thanks.
ev6 is relatively cheap -- one gr->fr move, and then one convert
insn. Probably 5 cycles latency max. Pre-ev6, no gr->fr move so
have to store+load from memory. Call it 9 cycles?
r~
prev parent reply other threads:[~1999-08-01 23:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-30 18:39 int vs. long Christopher T. Lansdown
1999-08-01 23:38 ` Richard Henderson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox