Solved

64 bit values

Posted on 2001-06-12
6
356 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
Comment Utility
Which compiler/OS?
0
 
LVL 1

Expert Comment

by:c567591
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 3

Expert Comment

by:GlennDean
Comment Utility
Check out he ULARGE_INTEGER type, which is 64-bits.

   Glenn
0
 
LVL 11

Expert Comment

by:griessh
Comment Utility
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
Comment Utility
Per recommendation points refunded and question closed.

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now