authorgravatar for kjs@scheibo.comKirk Scheibelhut <kjs@scheibo.com> 2022-05-10 12:15:31-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-10 17:28:44-04:00
log67c4b16d6e27f1d81e2e2f837bd53d958b9baa33
tree98def21f4464cdf2ca530b5663a5cbd9470262d3
parentaaf4011c2caaf445fbf8cd2e27d6ce80f2bc115d

docs: T.bit_count -> @typeInfo(T).Int.bits

bit_count was removed in #6246

1 files changed, 6 insertions(+), 6 deletions(-)

doc/langref.html.in+6-6
...@@ -9220,8 +9220,8 @@ test "@setRuntimeSafety" {...@@ -9220,8 +9220,8 @@ test "@setRuntimeSafety" {
9220 any bits that disagree with the resultant sign bit are shifted out.9220 any bits that disagree with the resultant sign bit are shifted out.
9221 </p>9221 </p>
9222 <p>9222 <p>
9223 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits.9223 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int.bits){#endsyntax#} bits.
9224 This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior.9224 This is because {#syntax#}shift_amt >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior.
9225 </p>9225 </p>
9226 {#see_also|@shrExact|@shlWithOverflow#}9226 {#see_also|@shrExact|@shlWithOverflow#}
9227 {#header_close#}9227 {#header_close#}
...@@ -9234,8 +9234,8 @@ test "@setRuntimeSafety" {...@@ -9234,8 +9234,8 @@ test "@setRuntimeSafety" {
9234 If no overflow or underflow occurs, returns {#syntax#}false{#endsyntax#}.9234 If no overflow or underflow occurs, returns {#syntax#}false{#endsyntax#}.
9235 </p>9235 </p>
9236 <p>9236 <p>
9237 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits.9237 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int.bits){#endsyntax#} bits.
9238 This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior.9238 This is because {#syntax#}shift_amt >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior.
9239 </p>9239 </p>
9240 {#see_also|@shlExact|@shrExact#}9240 {#see_also|@shlExact|@shrExact#}
9241 {#header_close#}9241 {#header_close#}
...@@ -9247,8 +9247,8 @@ test "@setRuntimeSafety" {...@@ -9247,8 +9247,8 @@ test "@setRuntimeSafety" {
9247 that the shift will not shift any 1 bits out.9247 that the shift will not shift any 1 bits out.
9248 </p>9248 </p>
9249 <p>9249 <p>
9250 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits.9250 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(@typeInfo(T).Int.bits){#endsyntax#} bits.
9251 This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior.9251 This is because {#syntax#}shift_amt >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior.
9252 </p>9252 </p>
9253 {#see_also|@shlExact|@shlWithOverflow#}9253 {#see_also|@shlExact|@shlWithOverflow#}
9254 {#header_close#}9254 {#header_close#}