SIGNBIT_INDEX_OF_INTTYPE(your_Integer_Type)

The output is an integer.

The result of this macro is a const-integer that equals the index number of the Sign-bit of the parameter if which is an integer type name. A compiling error would happen if the parameter is other than a valid integer type name.
It doesn't matter whether the parameter is an integer of signed or unsigned. For a unsigned integer, the result is the index number of the Sign-bit of the preserved signed integer types against it.

Last edited Jul 28, 2011 at 12:12 PM by UnitUniverse, version 4

Comments

No comments yet.