From ff9f3275dede031cdbea67272f648bb91c79c574 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Wed, 18 Sep 2019 18:34:40 -0500 Subject: docs: clarify @clz and @ctz terminology to not be endian-specific. This was brought up in IRC a few days ago. --- doc/langref.html.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/langref.html.in b/doc/langref.html.in index 1158135dab..d9750a6635 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -6650,7 +6650,7 @@ async fn func(y: *i32) void { {#header_open|@clz#}
{#syntax#}@clz(comptime T: type, integer: T){#endsyntax#}

- 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#}.

If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#}, @@ -6792,7 +6792,7 @@ test "main" { {#header_open|@ctz#}

{#syntax#}@ctz(comptime T: type, integer: T){#endsyntax#}

- 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#}.

If {#syntax#}integer{#endsyntax#} is known at {#link|comptime#}, -- cgit v1.2.3