Solved

64 bit values

Posted on 2001-06-12
6
358 Views
Last Modified: 2008-02-26
My compiler only supports 32 bit integers and I need to be able to use unsigned 64 bit integers, this code needs to be fast and as small as possible memory wise. Does anyone here have any code or tips?

Btw, the compiler really don't support 64-bit integers and it's name is HighC used on a Vertex RTOS.
0
Comment
Question by:margu
6 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6181178
Which compiler/OS?
0
 
LVL 1

Expert Comment

by:c567591
ID: 6181368
For most modern OS/Compilers the long long is the data type you want to use.

This works with GNU & Borland, I am unsure of the others.

0
 

Expert Comment

by:romilson
ID: 6181550
Hi ...

you can to use the type __intn
where n is the size..
__int32 x;

create a x variable with 32 bits

__int64 y;
create a variable with 64 bits..
you must to remember that is a int value;

:-) ,
 , the values of n can be 8 , 16 , 32 , 64


Romilson
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 3

Expert Comment

by:GlennDean
ID: 6184241
Check out he ULARGE_INTEGER type, which is 64-bits.

   Glenn
0
 
LVL 11

Expert Comment

by:griessh
ID: 6817216
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to refund the points and PAQ at zero points since nobody gave a real answer.

The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 6833305
Per recommendation points refunded and question closed.

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question