I expect if you saw some old game code, you'd see all kinds of tidbits like this. In fact it wouldn't surprise me to see them in new game code. The code may not run on every processor, but it's blazing fast.
This is a discussion on Swap Integers within the C++ Programming forums, part of the General Programming Boards category; I expect if you saw some old game code, you'd see all kinds of tidbits like this. In fact it ...
I expect if you saw some old game code, you'd see all kinds of tidbits like this. In fact it wouldn't surprise me to see them in new game code. The code may not run on every processor, but it's blazing fast.
You'd be surprised. Reusability is the keyword in game development nowadays.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law