[forwarded submission from a non-member address
(this is relevant to Dave's talk yesterday on TRIZ) -- rjk]


From: David Turner <[EMAIL PROTECTED]>
Date: 12 Jun 2002 13:51:57 -0500
Subject: Multiplication still slow
To: [EMAIL PROTECTED]

According to GCC:
struct processor_costs athlon_cost = {
  1,                                    /* cost of an add instruction */
  2,                                    /* cost of a lea instruction */
  1,                                    /* variable shift costs */
  1,                                    /* constant shift costs */
  5,                                    /* cost of starting a multiply */
  0,                                    /* cost of multiply per each bit set */
  42,                                   /* cost of a divide/mod */

FYI, lea is effectively a 3-arg add.

-- 
-Dave Turner
Free Software Licensing Guru

Reply via email to