>>>>> "MSD" == Michael S Davis <[EMAIL PROTECTED]> writes:
MSD>  Only thing is I get a compile warning when
MSD> I try to assign a 'long long' value to a 'long long' variable.


In case of GCC, what you need is special keyword that comes after
value, to declare the "TYPE" of that value, in case

As default, values like "12345" have type of "int".
So, in Palm(ether CW or GCC), it means it's 16bits signed fixed
point.

When you want to treat value like, 65536 which requires 17th bit
from LSB to be 1, you need to declare it like "65536L".
If you want value 65535 to be 16bits unsigned fixed point value,
"65535U" is required.

In case of gcc and declaring values which type is "long long", you
need to add "LL" suffix, like 10000000000LL. If you need
"unsigned long long" then "ULL", like 100000000000ULL.

# Please read info file for gcc, talking about
# C Extensions, and C++ Extensions.


For CW, the help tells that:

         The C compiler lets you define a 64-bit integer with the
        type specifier long long. This behavior is controlled by the
        longlong pragma. There is no item in the C/C++ Language
        Panel to control this option.

Also, as far as I can find, there is no need of any suffix declaring
that value is "64bit", all you need is pragma declaration.


regards,

Reply via email to