mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Change @fabs to @abs in langref
This commit is contained in:
parent
fcdb7d9e47
commit
c62bf068e5
1 changed files with 7 additions and 4 deletions
|
|
@ -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#}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue