Quote:
Originally Posted by Thorham
The haskell code does suck, doesn't it? And I don't suppose you want to make your own algorithm based on the formula
|
I don't know if it sucks or not, but I surely don't want to make my own algorithm on the formula !
Quote:
Originally Posted by Thorham
The same as me, I suppose. Math in pretty much un-cool, and it always looks like it could be done just about 10 million times simpler.
|
I can't imagine writing a cosinus calculation in integer maths
Quote:
Originally Posted by Thorham
I guess I'll try again then. How difficult is it to find what you need on the net
|
I'm not sure if it will be useful right now, 'coz I finally dared to start the rewrite of the integer dct in asm, from jidctint.c (I prefer to convert c into asm, rather than compiling c to optimize the asm it produces).
Well, it turned out not to be
that hard (once all those constants and macros have been replaced by what they mean).
But... muls, muls, muls and more muls (might remind you of something you've read recently
).
Oh, and muls again.
Did I forget muls ?
What I have now isn't a carbon copy of the original code, I had to move things to reduce register usage.
There is no init/exit code for now, and I only have the first half (columns).
I've included it here, so that you can have a look at it.
Not quite optimized already, there are some unneeded data movement.
Of course I dunno if it works