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