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 {
66506650 {#header_open|@clz#}
66516651 <pre>{#syntax#}@clz(comptime T: type, integer: T){#endsyntax#}</pre>
66526652 <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#}.
66546654 </p>
66556655 <p>
66566656 If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},
......@@ -6792,7 +6792,7 @@ test "main" {
67926792 {#header_open|@ctz#}
67936793 <pre>{#syntax#}@ctz(comptime T: type, integer: T){#endsyntax#}</pre>
67946794 <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#}.
67966796 </p>
67976797 <p>
67986798 If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},