authorgravatar for shawn@git.icuShawn Landden <shawn@git.icu> 2019-09-18 18:34:40-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-19 11:47:02-04:00
logff9f3275dede031cdbea67272f648bb91c79c574
treeb4ba108d48d289034bb791cc13c1213569013dc3
parentc9937f4a2b56fc14d6d64ca9a43cca0236c6d1ad

docs: clarify @clz and @ctz terminology to not be endian-specific.

This was brought up in IRC a few days ago.

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

doc/langref.html.in+2-2
...@@ -6650,7 +6650,7 @@ async fn func(y: *i32) void {...@@ -6650,7 +6650,7 @@ async fn func(y: *i32) void {
6650 {#header_open|@clz#}6650 {#header_open|@clz#}
6651 <pre>{#syntax#}@clz(comptime T: type, integer: T){#endsyntax#}</pre>6651 <pre>{#syntax#}@clz(comptime T: type, integer: T){#endsyntax#}</pre>
6652 <p>6652 <p>
6653 This function counts the number of leading zeroes in {#syntax#}integer{#endsyntax#}.6653 This function counts the number of most-significant (leading in a big-Endian sense) zeroes in {#syntax#}integer{#endsyntax#}.
6654 </p>6654 </p>
6655 <p>6655 <p>
6656 If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},6656 If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},
...@@ -6792,7 +6792,7 @@ test "main" {...@@ -6792,7 +6792,7 @@ test "main" {
6792 {#header_open|@ctz#}6792 {#header_open|@ctz#}
6793 <pre>{#syntax#}@ctz(comptime T: type, integer: T){#endsyntax#}</pre>6793 <pre>{#syntax#}@ctz(comptime T: type, integer: T){#endsyntax#}</pre>
6794 <p>6794 <p>
6795 This function counts the number of trailing zeroes in {#syntax#}integer{#endsyntax#}.6795 This function counts the number of least-significant (trailing in a big-Endian sense) zeroes in {#syntax#}integer{#endsyntax#}.
6796 </p>6796 </p>
6797 <p>6797 <p>
6798 If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},6798 If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},