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

Re: [Sc-devel] -0 bug

It was a mod operation that calculates pitch... I couldn't remember actually until you mentioned the 60 %12 example from earlier... I just forgot to address it a ways back.

So, yes, I think it is more of a mod problem... Brian - is your new problem also a mod problem?



On Jan 28, 2008, at 1:43 AM, Ryan Brown wrote:

The problem is that -0 is not the same as 0... there are some
problems in one of my classes where, on PPC, an error is thrown, and
it looks like this is the problem. Brian Willkie figured out a
temporary fix, but the same expression should probably return the
same thing on intel and PPC.

What were you doing where -0.0 behaved differently than 0.0? In C (and
in SC), they compare equal (0.0 == -0.0), so most of the time it
shouldn't effect anything.

Sc-devel mailing list

/* Joshua D. Parmenter

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono