From: Nick Wagg <nickw@lsl.co.uk>
Subject: Re: a**2 or a*a
Date: 1998/01/15 [thread overview]
Message-ID: <34BDD22D.B43@lsl.co.uk> (raw)
In-Reply-To: 34BCC4A4.F27A00D1@cranfield.ac.uk
Yon Han CHONG wrote:
>
> Is there speed difference between a**2 and a*a.
>
The difference is unlikely to be considerable these days but experiment
to find out. It is possible that the former case invokes a function to
evaluate the expression and which would probably be slower - a quick
examination of generated assembly code or of a compilation listing
should indicate whether a function is called.
--
Nick Wagg <>< (mailto:nickw@lsl.co.uk) Laser-Scan Ltd,
Senior Software Engineer Science Park, Milton Rd,
Tel: +44(0)1223 420414 (ext 213) Cambridge, CB4 4FY, UK.
Fax: +44(0)1223 420044 http://www.lsl.co.uk/
prev parent reply other threads:[~1998-01-15 5:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-14 5:00 a**2 or a*a Yon Han CHONG
1998-01-14 5:00 ` Peter Shenkin
1998-01-14 5:00 ` Phillip Helbig
1998-01-14 5:00 ` Arnaud Desitter
1998-01-15 5:00 ` Robert Corbett
1998-01-14 5:00 ` Kevin G. Rhoads
1998-01-14 5:00 ` Ed Overman
1998-01-15 5:00 ` Steve Lionel
1998-01-15 5:00 ` Nick Wagg [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