help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with Hand-Optimized Assembly


From: James Van Buskirk
Subject: Re: Help with Hand-Optimized Assembly
Date: Wed, 28 Mar 2012 18:29:55 -0000

"Bill Woessner" <woessner@nospicedham.gmail.com> wrote in message 
67ddafac-ae03-4ef1-b156-5488e8b8086a@i26g2000vbt.googlegroups.com">news:67ddafac-ae03-4ef1-b156-5488e8b8086a@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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]