@@ -7354,91 +7354,91 @@ test "@setRuntimeSafety" {
7354
7354
<pre>{#syntax#}@sqrt(comptime T: type, value: T) T{#endsyntax#}</pre>
7355
7355
<p>
7356
7356
Performs the square root of a floating point number. Uses a dedicated hardware instruction
7357
- when available. Supports f16, f32, f64, and f128, as well as vectors.
7357
+ when available. Supports {#syntax#} f16{#endsyntax#}, {#syntax#} f32{#endsyntax#}, {#syntax#} f64{#endsyntax#} , and {#syntax#} f128{#endsyntax#} , as well as vectors.
7358
7358
</p>
7359
7359
{#header_close#}
7360
7360
{#header_open|@sin#}
7361
7361
<pre>{#syntax#}@sin(comptime T: type, value: T) T{#endsyntax#}</pre>
7362
7362
<p>
7363
7363
Sine trigometric function on a floating point number. Uses a dedicated hardware instruction
7364
- when available. Currently supports f32 and f64.
7364
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7365
7365
</p>
7366
7366
{#header_close#}
7367
7367
{#header_open|@cos#}
7368
7368
<pre>{#syntax#}@cos(comptime T: type, value: T) T{#endsyntax#}</pre>
7369
7369
<p>
7370
7370
Cosine trigometric function on a floating point number. Uses a dedicated hardware instruction
7371
- when available. Currently supports f32 and f64.
7371
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7372
7372
</p>
7373
7373
{#header_close#}
7374
7374
{#header_open|@exp#}
7375
7375
<pre>{#syntax#}@exp(comptime T: type, value: T) T{#endsyntax#}</pre>
7376
7376
<p>
7377
7377
Base-e exponential function on a floating point number. Uses a dedicated hardware instruction
7378
- when available. Currently supports f32 and f64.
7378
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7379
7379
</p>
7380
7380
{#header_close#}
7381
7381
{#header_open|@exp2#}
7382
7382
<pre>{#syntax#}@exp2(comptime T: type, value: T) T{#endsyntax#}</pre>
7383
7383
<p>
7384
7384
Base-2 exponential function on a floating point number. Uses a dedicated hardware instruction
7385
- when available. Currently supports f32 and f64.
7385
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7386
7386
</p>
7387
7387
{#header_close#}
7388
7388
{#header_open|@ln#}
7389
7389
<pre>{#syntax#}@ln(comptime T: type, value: T) T{#endsyntax#}</pre>
7390
7390
<p>
7391
7391
Returns the natural logarithm of a floating point number. Uses a dedicated hardware instruction
7392
- when available. Currently supports f32 and f64.
7392
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7393
7393
</p>
7394
7394
{#header_close#}
7395
7395
{#header_open|@log2#}
7396
7396
<pre>{#syntax#}@log2(comptime T: type, value: T) T{#endsyntax#}</pre>
7397
7397
<p>
7398
7398
Returns the logarithm to the base 2 of a floating point number. Uses a dedicated hardware instruction
7399
- when available. Currently supports f32 and f64.
7399
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7400
7400
</p>
7401
7401
{#header_close#}
7402
7402
{#header_open|@log10#}
7403
7403
<pre>{#syntax#}@log10(comptime T: type, value: T) T{#endsyntax#}</pre>
7404
7404
<p>
7405
7405
Returns the logarithm to the base 10 of a floating point number. Uses a dedicated hardware instruction
7406
- when available. Currently supports f32 and f64.
7406
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7407
7407
</p>
7408
7408
{#header_close#}
7409
7409
{#header_open|@fabs#}
7410
7410
<pre>{#syntax#}@fabs(comptime T: type, value: T) T{#endsyntax#}</pre>
7411
7411
<p>
7412
7412
Returns the absolute value of a floating point number. Uses a dedicated hardware instruction
7413
- when available. Currently supports f32 and f64.
7413
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7414
7414
</p>
7415
7415
{#header_close#}
7416
7416
{#header_open|@floor#}
7417
7417
<pre>{#syntax#}@floor(comptime T: type, value: T) T{#endsyntax#}</pre>
7418
7418
<p>
7419
7419
Returns the largest integral value not greater than the given floating point number. Uses a dedicated hardware instruction
7420
- when available. Currently supports f32 and f64.
7420
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7421
7421
</p>
7422
7422
{#header_close#}
7423
7423
{#header_open|@ceil#}
7424
7424
<pre>{#syntax#}@ceil(comptime T: type, value: T) T{#endsyntax#}</pre>
7425
7425
<p>
7426
7426
Returns the largest integral value not less than the given floating point number. Uses a dedicated hardware instruction
7427
- when available. Currently supports f32 and f64.
7427
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7428
7428
</p>
7429
7429
{#header_close#}
7430
7430
{#header_open|@trunc#}
7431
7431
<pre>{#syntax#}@trunc(comptime T: type, value: T) T{#endsyntax#}</pre>
7432
7432
<p>
7433
7433
Rounds the given floating point number to an integer, towards zero. Uses a dedicated hardware instruction
7434
- when available. Currently supports f32 and f64.
7434
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7435
7435
</p>
7436
7436
{#header_close#}
7437
7437
{#header_open|@round#}
7438
7438
<pre>{#syntax#}@round(comptime T: type, value: T) T{#endsyntax#}</pre>
7439
7439
<p>
7440
7440
Rounds the given floating point number to an integer, away from zero. Uses a dedicated hardware instruction
7441
- when available. Currently supports f32 and f64.
7441
+ when available. Currently supports {#syntax#} f32{#endsyntax#} and {#syntax#} f64{#endsyntax#} .
7442
7442
</p>
7443
7443
{#header_close#}
7444
7444
0 commit comments