Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

64 bit values

Posted on 2001-06-12
6
Medium Priority
?
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

688 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