User Profile

Collapse

Profile Sidebar

Collapse
Eli Horn
Eli Horn
Last Activity: Sep 18 '06, 03:48 PM
Joined: Sep 5 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Eli Horn
    replied to Code optimization of inner loop
    in C
    This is not a problem since this case cannot happen.
    Let me not bother you with the details but just say that I don't have range problems and my only problem is how to speed up this code.
    See more | Go to post

    Leave a comment:


  • Eli Horn
    started a topic Code optimization of inner loop
    in C

    Code optimization of inner loop

    Dear all,

    I would appriciate any input you may have on how to optimize this line which appears in my most inner loop:

    *pG=(short)(((i nt)w1*V1+w2*V2+ w3*V3+w4*V4)/(w1+w2+w3+w4));

    w1,w2,w3,w4,V1, V2,V3,V4 are all short and the result is also short.
    If it makes any difference, all variables are positive and smaller than 4095.

    Thanks for any input,
    Eli.
    See more | Go to post
No activity results to display
Show More
Working...