Jump to content

  • Log In with Google      Sign In   
  • Create Account

The use of DWORD's


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 drago   Members   -  Reputation: 150

Like
Likes
Like

Posted 20 August 1999 - 08:33 PM

Is it more efficient to use DWORD's instead of int/long/etc. on 32-bit CPU's? Even if it used for coordinates, e.q. would one use DWORD x, DWORD y or INT x, INT y?

------------------
Drago


Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 20 August 1999 - 12:20 AM

in 32 bit mode unsigned long = unsigned int = dword. (you may also have without unsigned but that depends on the compilators defaults...)

#3 White Fire   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 August 1999 - 08:33 PM

sizeof(int) is rarely defined in books, since it differs between systems. It really differs between compilers, but a good compiler will define an int to be the same size as a single cpu word. That is, on a 32 bit machine, an int will take 32 bits == 4 bytes.

<rant>
This is of course assuming that compilers keep up with the systems they're built for. Pentiums have a 64 bit cpu, if only their operating system(s) would actually support it.
</rant>

White Fire





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS