Page 1 of 1

Any ideas on this problem?

PostPosted: Nov 21, 2003 @ 8:07am
by DooMer_MP3

PostPosted: Nov 21, 2003 @ 12:44pm
by torus
I don't have a clue what's going wrong, it looks ok.

But what you can do to find out yourself, is to turn your c-macro into a function, calcuate the result, calculate the same result using your asm-function and then compare the two values. If you have different results log the parameters into a file and exit the program.

That way you have a numerical example where one version fails, and can trace down what exactly what's going wrong.

Nils

PostPosted: Nov 21, 2003 @ 4:18pm
by DooMer_MP3

PostPosted: Nov 21, 2003 @ 4:41pm
by torus

PostPosted: Nov 21, 2003 @ 5:06pm
by DooMer_MP3

PostPosted: Nov 21, 2003 @ 5:31pm
by rcp

PostPosted: Nov 21, 2003 @ 9:01pm
by DooMer_MP3

PostPosted: Nov 21, 2003 @ 9:18pm
by refractor
You do a signed long multiply and then a logical shift right... clue?

(Might not be - I'm tired).

PostPosted: Nov 21, 2003 @ 9:22pm
by rcp

PostPosted: Nov 21, 2003 @ 10:45pm
by DooMer_MP3

PostPosted: Nov 21, 2003 @ 11:11pm
by refractor