Re: Visual Studio 2005 x64 mode.



On May 7, 10:37 am, David Lowndes <Dav...@xxxxxxxxxxxxxxx> wrote:
I am trying to port my VC++ application to a x64 compatible platform.

Since most of my code makes use of int's ...( I noticed that an int is
32bits long on x64 mode as well)....I want to be able to use 64bit
ints in my new code.... I was wondering if there is some option or
setting in VC++ tht allows me to treat int's as 64 bit longs or 64 bit
integers?

None that I know of. It's implicit in Win64 that ints are still
32-bit.

If you have specific code that would benefit from having 64 bit
values, why not use the __int64 type (or have a suitable redefinition
for portability).

Dave

Hi Dave,
the problem is I have a very huge code and to manually go and change
to __int64 would be very tedious....so thats why was thinking if there
are some kind of compiler switches to force ints as __int64's...?
.



Relevant Pages

  • Re: Visual Studio 2005 x64 mode.
    ... ints in my new code.... ... setting in VC++ tht allows me to treat int's as 64 bit longs or 64 bit ... 64 bits on x64) ...
    (microsoft.public.vc.language)
  • Re: Visual Studio 2005 x64 mode.
    ... It's implicit in Win64 that ints are still ... why not use the __int64 type (or have a suitable redefinition ... for portability). ...
    (microsoft.public.vc.language)
  • Re: did the multiplication rules change!?
    ... That seems to do the trick. ... >> being multiplied as ints? ... >> assume the Ls tell the JVM to treat them as longs... ... though I'm sure some Usenet/Java zealot will seize this ...
    (comp.lang.java.programmer)
  • Re: Integer / Long comparison
    ... Mike Schilling wrote: ... unit test should check that it is in range, ... I'm also wondering why Longs and Integers insread of longs and ints. ...
    (comp.lang.java.programmer)
  • Re: did the multiplication rules change!?
    ... >> being multiplied as ints (as opposed to the longs I was expecting)? ... >> assume the Ls tell the JVM to treat them as longs... ... though I'm sure some Usenet/Java zealot will seize this ...
    (comp.lang.java.programmer)