One more remark:
__lmul__ calls appear only after optimization level 2 is selected. Debug
version and optimization level 1 contain correct muls instructions.
I would qualify it as an optimizer bug.

Acc. to the CW settings dialog it might concern common subexpression
elimination.
How can we change optimization level in the code? (Or better optimization
techniques used.) I could not locate this information among CW pragmas.

Jan Slodicka

(CONST_BITS == 13)

----- Original Message -----
From: "Keith Rollin" <[EMAIL PROTECTED]>


> Just a data point here.
>
> I tried compiling the sources you posted.  However, you didn't
> provide the value of CONST_BITS you were using.  It looks like your
> snippets are from jidctint.c, so I used the value from that file
> (13).  In both of your examples, I got the direct muls version, not
> the __lmul__ version.
>
> However, neither did I get the constant #-1730 to show up in my
> disassembly, so perhaps my value of CONST_BITS is incorrect.  The
> difference might also be because of the simpler (extracted) code I
> was using, compared to your using the entire function.
>
> -- Keith Rollin
> -- Palm OS Emulator engineer



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to