Results 1 to 11 of 11

Thread: A question about uint 8 and uint 16 and uint 32 and uint 64

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2014
    Posts
    95
    Thanks
    67

    Default Re: A question about uint 8 and uint 16 and uint 32 and uint 64

    My system is 32-bit.
    64-bit applications will not run on my system.

    So in the above code, why should we use qint64?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: A question about uint 8 and uint 16 and uint 32 and uint 64

    Quote Originally Posted by rezas1000 View Post
    My system is 32-bit.
    64-bit applications will not run on my system.

    So in the above code, why should we use qint64?
    quint64 is just a datatype (mapping to unsigned long long or something similar), it has nothing to do with the width of the address or data bus which is what makes a system "32 bit" or "64 bit". The processor can handle 32 bit as well as 64 bit datatypes and maybe even 128 bit types as well, it is just a matter of efficiency of processing such data.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    rezas1000 (29th August 2014)

  4. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: A question about uint 8 and uint 16 and uint 32 and uint 64

    Exactly!

    A "double" for example is always 64 bit, it is specified that way https://en.wikipedia.org/wiki/Double_precision

    Cheers,
    _

  5. The following user says thank you to anda_skoa for this useful post:

    rezas1000 (29th August 2014)

Similar Threads

  1. converting uint to QString
    By Yayati.Ekbote in forum Newbie
    Replies: 1
    Last Post: 14th April 2010, 13:43
  2. (portion of...) QByteArray to UInt
    By pdoria in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2009, 15:23
  3. Replies: 2
    Last Post: 12th June 2006, 17:47
  4. Invite QDateTime to go 8 secs on future uint
    By patrik08 in forum Newbie
    Replies: 4
    Last Post: 6th June 2006, 23:26
  5. void clearWState( uint n );
    By sunil.thaha in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2006, 16:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.