Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

drago

The use of DWORD's

This topic is 7057 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!