docs: clarify @clz and @ctz terminology to not be endian-specific.
This was brought up in IRC a few days ago.
This commit is contained in:
committed by
Andrew Kelley
parent
c9937f4a2b
commit
ff9f3275de
@@ -6650,7 +6650,7 @@ async fn func(y: *i32) void {
|
||||
{#header_open|@clz#}
|
||||
<pre>{#syntax#}@clz(comptime T: type, integer: T){#endsyntax#}</pre>
|
||||
<p>
|
||||
This function counts the number of leading zeroes in {#syntax#}integer{#endsyntax#}.
|
||||
This function counts the number of most-significant (leading in a big-Endian sense) zeroes in {#syntax#}integer{#endsyntax#}.
|
||||
</p>
|
||||
<p>
|
||||
If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},
|
||||
@@ -6792,7 +6792,7 @@ test "main" {
|
||||
{#header_open|@ctz#}
|
||||
<pre>{#syntax#}@ctz(comptime T: type, integer: T){#endsyntax#}</pre>
|
||||
<p>
|
||||
This function counts the number of trailing zeroes in {#syntax#}integer{#endsyntax#}.
|
||||
This function counts the number of least-significant (trailing in a big-Endian sense) zeroes in {#syntax#}integer{#endsyntax#}.
|
||||
</p>
|
||||
<p>
|
||||
If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#},
|
||||
|
||||
Reference in New Issue
Block a user