Solved

Does Delphi 2006 have an unsigned 64bit int?

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month3 days, 11 hours left to enroll

630 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