From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5246f37381c783c1386b6c91c32eb610.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199711132147.QAA16460@brg0> Date: Thu, 13 Nov 1997 16:08:00 -0600 From: Wes Bauske Subject: Re: Perf. of F77 on Alpha Michal Jaegermann wrote: > > > > > Some tests I did indicate any Alpha divide (float/int) is slow. > > The table lookup for sqrt() is probably the fastest technique for > > an approximation. > > Actually on machines like Alpha a table lookup is NOT a good technique > in general. It tends to generate page faults and kills caches. > For a fast RISC a short localized computation can be vastly preferable > over a table lookup. Things were different in the past. That's true if the table is large. Not true if the table is "reasonable" Depends on page size but a 4K page gives you 1024 floats for a table, sufficient for lots of types of calculations. In fact, certain RISC vendor high performance libraries use this technique plus a twiddle. > > If 1/sqrt() is on a critical path then a specialized code which computes > this function instead of calling sqrt and dividing 1.0 by results > could be a much better answer. I agree. For mis-behaved functions, this is the only way to go. > > Michal > > -- > 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 -- Regards, Wes -- 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