Solved

Does Delphi 2006 have an unsigned 64bit int?

Posted on 2006-11-07
2
1,381 Views
Last Modified: 2008-02-01
Is there a UInt64 or an ULongLong in version '06?

I've been using Delphi 6 and am considering an upgrade if this data type is supported.

Thanks.

m.
0
Comment
Question by:mugman21
2 Comments
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 75 total points
ID: 17900812
Haven't found it in the helpfiles of D2006 so the answer is "No". But do you really need an unsigned 64-bits numeric type? Because that would be a real huge number.
0
 
LVL 1

Assisted Solution

by:mavrj
mavrj earned 50 total points
ID: 17964879
There is not unsigned Int64 in Delphi

http://www.delphibasics.co.uk/RTL.asp?Name=Int64

If you HAVE to deal with unsigned Int64 you can still manage complex in-memory operation by casting Int64 to byte/word/dword array and perform your operation on a byte/word/dword basis with basic operation and carryover. This would yield to poor code as it would not benefit from compilation optimization that may append on Int64.

Finally you can look at MMX qword instruction to perform your task. You would then need to code your function in assembler. I've tried to do so with delphi 2005 but it couldn't support the MMX assembler instructions so I hat to code the small part of code in HEX. That was really painful!

Hope that helps!

Yvan
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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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