◆ P99_M1

#define P99_M1 (   T)    ((T)-1)

Convert -1 to type T.

If T is a signed type, a representation of the value -1 should always exist, since the value 1 also exists.

If T is an unsigned type, the converted value is guaranteed to hold the maximum value that is representable in this type. This is guaranteed to work regardless of the platform's representation of negative values: integer conversion to an unsigned type is always defined to be modulo 2^N where N is the precision of the target type.

Definition at line 259 of file p99_int.h.