Solved

64 bit values

Posted on 2001-06-12
6
359 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

821 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