Solved

Does Delphi 2006 have an unsigned 64bit int?

Posted on 2006-11-07
2
1,387 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

10 Experts available now in Live!

Get 1:1 Help Now