On Mon, 02 Jun 2008, Szakáts Viktor wrote:

Hi Viktor,

> One observation:
> I'd expect HB_CURLPAUSE_ALL to be optimized
> to one integer value.
> HB_CURLPAUSE_ALL is
> hb_bitOr( A, B )
> where
> A = ( 2 ^ 0 )
> B = ( 2 ^ 2 )
> In the resulting pcode, hb_bitOr() is not optimized,
> and it's being pushed two doubles with the (width set
> to 255, 255).
> Shouldn't or couldn't these values be integers, if
> they can fit?

It will break some compatibility with SET FIXED / SET DECIMAL.
Integer number are formatted in different way by VM then double
values.

> Also hb_bitOr() is otherwise optimizing
> doubles, but in this case it doesn't for some reason.

It's caused by strictly Clipper compatible behavior in our
expression optimizer. See the question in my last commit
and decide what we should do.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to