What's up with sinf()?
What's up with sinf()?
- Subject: What's up with sinf()?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 20 Nov 2001 02:10:17 -0800
Sorry if you see this twice. I sent it before, but haven't seen it hit
the list yet.
Something a bit wierd: I'm getting link errors when I try to use sinf()
instead of sin(). They're both defined in <math.h>, and presumably in
the same library, aren't they? I'd just as soon use sinf(), since what
I'm doing doesn't require double precision.
What I'm doing BTW, is drawing gradients based on sinusoidal and
conic-section curves scaled to a 256x256 square. If someone could point
me to code for a fixed-point sin function, I'd just as soon use that.
I'd rather not embed a sine table in the code, though ;-)
-jcr
"Computers in the future may weigh no more than 1.5 tons." - Popular
Mechanics, 1949