"Bill Woessner" <woess...@nospicedham.gmail.com> wrote in message 
news:67ddafac-ae03-4ef1-b156-5488e8b80...@i26g2000vbt.googlegroups.com...

> This compiles, runs and produces the correct answers.  But I have a
> few issues with it:

> 1) If I declare this function inline, it gives me garbage (like
> 10^-304)
> 2) If I compile with -Wall, I get a warning that the function doesn't
> return a value, which is absolutely true, but I don't know how to fix
> it.
> 3) I don't like how TWO_PI and NEG_TWO_PI are defined.  I had to steal
> it from some generated assembly.  It would be nice to use M_PI,
> 4*atan(1) or something like that.

I can't help you with your questions because I would always write
something like this in assembly rather than C, but is there some
reason that you can't use SSE2 rather than x87 here?  SSE2 should
be much faster if available in the context of your problem.

-- 
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end


_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
https://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to