Change @fabs to @abs in langref

This commit is contained in:
antlilja 2023-07-18 02:19:03 +02:00 committed by Andrew Kelley
parent fcdb7d9e47
commit c62bf068e5

View file

@ -9421,14 +9421,17 @@ fn doTheTest() !void {
Supports {#link|Floats#} and {#link|Vectors#} of floats. Supports {#link|Floats#} and {#link|Vectors#} of floats.
</p> </p>
{#header_close#} {#header_close#}
{#header_open|@fabs#} {#header_open|@abs#}
<pre>{#syntax#}@fabs(value: anytype) @TypeOf(value){#endsyntax#}</pre> <pre>{#syntax#}@abs(value: anytype) anytype{#endsyntax#}</pre>
<p> <p>
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. 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.
</p> </p>
<p> <p>
Supports {#link|Floats#} and {#link|Vectors#} of floats. Supports {#link|Floats#}, {#link|Integers#} and {#link|Vectors#} of floats or integers.
</p> </p>
{#header_close#} {#header_close#}
{#header_open|@floor#} {#header_open|@floor#}