19.09.2010, 22:21
Quote:
|
errr you lost me @ "Binary is a numeral system that uses two unique symbols to represent numbers"
|
Quote:
|
It converts a signed (signed for negative) 32-bit binary number into a two's complement binary number
. |
Awkward wording, but yes
. It gets the absolute value of a number.The more obvious (and more efficient) implementation would be:
Code:
#define abs(%0) (((%0) < 0)?(-(%0)):((%0)))



.