P99

◆ P99_EWIDTH [2/2]

#define P99_EWIDTH (   EXPR)    P99_HIGH2_1(P99_UE_MAX(EXPR))

The width of the integral type of expression EXPR.

This is the precision, plus a sign bit if the type 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_TWIDTH
P99_EPREC
P99_EPADDING
P99_SIGN_PROMOTE for rules about integer sign promotion

Definition at line 551 of file p99_int.h.