|
2129 | 2129 | the enumeration are the values of the underlying type. Otherwise,
|
2130 | 2130 | for an enumeration where $e_\mathit{min}$ is the smallest enumerator and
|
2131 | 2131 | $e_\mathit{max}$ is the largest, the values of the enumeration are the
|
2132 |
| -values in the range $b_{min}$ to $b_{max}$, defined as follows: Let $K$ |
| 2132 | +values in the range $b_\mathit{min}$ to $b_\mathit{max}$, defined as follows: Let $K$ |
2133 | 2133 | be 1 for a two's complement representation and 0 for a ones' complement
|
2134 |
| -or sign-magnitude representation. $b_{max}$ is the smallest value |
2135 |
| -greater than or equal to $max(|e_{min}| - K, |e_{max}|)$ and equal to |
2136 |
| -$2^M-1$, where $M$ is a non-negative integer. $b_{min}$ is zero if |
2137 |
| -$e_{min}$ is non-negative and $-(b_{max}+K)$ otherwise. The size of the |
| 2134 | +or sign-magnitude representation. $b_\mathit{max}$ is the smallest value |
| 2135 | +greater than or equal to $max(|e_\mathit{min}| - K, |e_\mathit{max}|)$ and equal to |
| 2136 | +$2^M-1$, where $M$ is a non-negative integer. $b_\mathit{min}$ is zero if |
| 2137 | +$e_\mathit{min}$ is non-negative and $-(b_\mathit{max}+K)$ otherwise. The size of the |
2138 | 2138 | smallest bit-field large enough to hold all the values of the
|
2139 |
| -enumeration type is $max(M,1)$ if $b_{min}$ is zero and $M+1$ otherwise. |
| 2139 | +enumeration type is $max(M,1)$ if $b_\mathit{min}$ is zero and $M+1$ otherwise. |
2140 | 2140 | It is possible to define an enumeration that has values not defined by
|
2141 | 2141 | any of its enumerators. If the \grammarterm{enumerator-list} is empty, the
|
2142 | 2142 | values of the enumeration are as if the enumeration had a single enumerator with
|
|
0 commit comments