Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1404
  • Last Modified:

Does Delphi 2006 have an unsigned 64bit int?

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
mugman21
Asked:
mugman21
2 Solutions
 
Wim ten BrinkCommented:
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
 
mavrjCommented:
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

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now