From: lindahl@pbm.com (Greg Lindahl)
Subject: Re: sin() on alpha.
Date: 1998/05/23 [thread overview]
Message-ID: <6k6t8g$2jd@news3.newsguy.com> (raw)
In-Reply-To: 6k5od1$1b7$1@palladium.transmeta.com
torvalds@transmeta.com (Linus Torvalds) writes:
> Remember: if you can make a small and simple routine that avoids one
> cache miss, that one cache miss is often more costly than the cost of
> the whole routine. This is less true of more complex functions like
> sin() and cos(), but it's still something that is easily overlooked,
This is very true. I would suspect that the Cray "vector" sin() cos()
and other library functions might have completely different
implementations for this reason; when you know you are computing with
a warm cache, you can use different algorithms... so if your compiler
is already doing vector analysis, you can get a big win.
-- g
next prev parent reply other threads:[~1998-05-23 4:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-22 4:00 sin() on alpha Dong-Woon Park
1998-05-22 4:00 ` Bruce Allen
1998-05-22 4:00 ` Greg Lindahl
1998-05-23 4:00 ` Christopher Browne
1998-05-23 4:00 ` Michal Jaegermann
1998-05-23 4:00 ` Linus Torvalds
1998-05-23 4:00 ` Andi Kleen
1998-05-23 4:00 ` Greg Lindahl [this message]
1998-05-24 4:00 ` sin() on alpha / Cray libm Joachim Wesner
1998-05-23 4:00 ` sin() on alpha Dong-Woon Park
1998-05-23 4:00 ` Bruce Allen
1998-05-24 4:00 ` Joachim Wesner
1998-05-24 4:00 ` Joachim Wesner
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