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" {
92209220 any bits that disagree with the resultant sign bit are shifted out.
92219221 </p>
92229222 <p>
9223 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits.
9224 This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior.
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 >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior.
92259225 </p>
92269226 {#see_also|@shrExact|@shlWithOverflow#}
92279227 {#header_close#}
......@@ -9234,8 +9234,8 @@ test "@setRuntimeSafety" {
92349234 If no overflow or underflow occurs, returns {#syntax#}false{#endsyntax#}.
92359235 </p>
92369236 <p>
9237 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits.
9238 This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior.
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 >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior.
92399239 </p>
92409240 {#see_also|@shlExact|@shrExact#}
92419241 {#header_close#}
......@@ -9247,8 +9247,8 @@ test "@setRuntimeSafety" {
92479247 that the shift will not shift any 1 bits out.
92489248 </p>
92499249 <p>
9250 The type of {#syntax#}shift_amt{#endsyntax#} is an unsigned integer with {#syntax#}log2(T.bit_count){#endsyntax#} bits.
9251 This is because {#syntax#}shift_amt >= T.bit_count{#endsyntax#} is undefined behavior.
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 >= @typeInfo(T).Int.bits{#endsyntax#} is undefined behavior.
92529252 </p>
92539253 {#see_also|@shlExact|@shlWithOverflow#}
92549254 {#header_close#}