P99

◆ P99_TWIDTH

#define P99_TWIDTH (   T)    (P99_TPREC(T) + P99_ISSIGNED(T))

The width of integral type T.

This is the precision, plus a sign bit if T is signed.

The resulting expression is evaluated at compile time and may be used in constant expressions.

Warning
These are not necessarily all bits that are used by the type, there might be padding bits.
See also
P99_TPREC
P99_TPADDING

Definition at line 789 of file p99_int.h.