View Single Post
  #8   Spotlight this post!  
Unread 03-02-2006, 11:41
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Problem With Math.h

One other thing - if you look at the CORDIC implementation in the white papers, you can actually improve its performance twofold if you need both the sin() and cos() of an angle.

It actually calculates both simultaneously, but in the current design it discards whichever you don't need. Pass arguments by pointers into the function and you can get both at once.