diff --git a/doc/langref.html.in b/doc/langref.html.in index bd3641b8e2..3a5ca57b53 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -9421,14 +9421,17 @@ fn doTheTest() !void { Supports {#link|Floats#} and {#link|Vectors#} of floats.

{#header_close#} - {#header_open|@fabs#} -
{#syntax#}@fabs(value: anytype) @TypeOf(value){#endsyntax#}
+ {#header_open|@abs#} +
{#syntax#}@abs(value: anytype) anytype{#endsyntax#}

- Returns the absolute value of a floating point number. Uses a dedicated hardware instruction + Returns the absolute value of an integer or a floating point number. Uses a dedicated hardware instruction when available. + + The return type is always an unsigned integer of the same bit width as the operand if the operand is an integer. + Unsigned integer operands are supported. The builtin cannot overflow for signed integer operands.

- Supports {#link|Floats#} and {#link|Vectors#} of floats. + Supports {#link|Floats#}, {#link|Integers#} and {#link|Vectors#} of floats or integers.

{#header_close#} {#header_open|@floor#}