From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 13 Nov 1997 08:00:59 -0800 (PST) From: Tom Linden Subject: Re: Perf. of F77 on Alpha In-Reply-To: You don't want to write your own routine (reinvent the wheel) If you did, the most efficient would be a table lookup for a seed to a Newton=Raphson loop. But how are you going to inline it? with F77 this wont fit into an arithmetic statement function, with C you could build macro, but this is a regressive computing technique. Its the compiler! Find a copiler that does the inlining. I haven't looked at it but I would bet that DEC Fortran does this, I think they used to on the VAX. On Thu, 13 Nov 1997, David van der Spoel wrote: > Yes I have profiled my app, 80 % of the time is in one loop that has > the sqrt, or actually 1/sqrt which the DEC F77 compiler recognizes > and puts in a call to rsqrtf. However, the compiler should inline the > code for the rsqrt and then pipeline my loop, which now it doesn't. > > So I will probably write F77 code for the 1/sqrt (I have C-code for it) > unless I can find a smarter compiler > > Groeten, David. > ________________________________________________________________________ > Dr. David van der Spoel Biomedical center, Dept. of Biochemistry > s-mail: Husargatan 3, Box 576, 75123 Uppsala, Sweden > e-mail: spoel@xray.bmc.uu.se www: http://zorn.bmc.uu.se/~spoel > phone: 46 18 471 4205 fax: 46 18 511 755 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com