Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Arnaud Desitter <Arnaud.Desitter@bristol.ac.uk>
To: Yon Han CHONG <Y.H.Chong@cranfield.ac.uk>
Subject: Re: a**2 or a*a
Date: 1998/01/14	[thread overview]
Message-ID: <34BCD934.41C6@bristol.ac.uk> (raw)
In-Reply-To: 34BCC4A4.F27A00D1@cranfield.ac.uk


Yon Han CHONG wrote:
> 
> Is there speed difference between a**2 and a*a.
> 
No. A good compiler (and the digital's one is good in this respect) will
use the best algorithm for a**b, i.e. a multiplication if b=2.

Cheers,
Arnaud
-- 
_______________________________________________________________________

Arnaud Desitter
Department of Geography, University of Bristol
University Road, Bristol, BS8 1SS, United Kingdom
Internet: Arnaud.Desitter@Bristol.ac.uk   Fax: +44 (0)117 928 7878
_______________________________________________________________________



  parent reply	other threads:[~1998-01-14  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 ` Phillip Helbig
1998-01-14  5:00 ` Arnaud Desitter [this message]
1998-01-15  5:00   ` Robert Corbett
1998-01-14  5:00 ` Kevin G. Rhoads
1998-01-14  5:00   ` Ed Overman
1998-01-14  5:00 ` Peter Shenkin
1998-01-15  5:00 ` Steve Lionel
1998-01-15  5:00 ` Nick Wagg
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