harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiaoming gu" <xiaoming...@gmail.com>
Subject a quick question for signed shift right for long type
Date Thu, 10 Jul 2008 09:36:58 GMT
Hi, all. I just got a problem with signed shift right problem.

long a = 0x8000000000000000;
long b = a>>63; // b is 0xffffffffffffffff

But if I use SAR to do the signed shift right in harmony internally, b is
I traced the code for a while and couldn't find the difference for the two

Any idea? Thanks.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message