LibCMath
Computes square root through native sqrtf.
Module std.libc.math
import std.libc.math;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
pub fn<.C> sqrtf(Value: f32) -> f32;
pub fn<.C> sqrtf(Value: f32) -> f32;Computes square root through native sqrtf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> sqrt(Value: f64) -> f64;
pub fn<.C> sqrt(Value: f64) -> f64;Computes square root through native sqrt. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> cbrtf(Value: f32) -> f32;
pub fn<.C> cbrtf(Value: f32) -> f32;Computes real cube root through native cbrtf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> cbrt(Value: f64) -> f64;
pub fn<.C> cbrt(Value: f64) -> f64;Computes real cube root through native cbrt. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> sinf(Value: f32) -> f32;
pub fn<.C> sinf(Value: f32) -> f32;Computes sine of a radian angle through native sinf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> sin(Value: f64) -> f64;
pub fn<.C> sin(Value: f64) -> f64;Computes sine of a radian angle through native sin. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> cosf(Value: f32) -> f32;
pub fn<.C> cosf(Value: f32) -> f32;Computes cosine of a radian angle through native cosf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> cos(Value: f64) -> f64;
pub fn<.C> cos(Value: f64) -> f64;Computes cosine of a radian angle through native cos. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> tanf(Value: f32) -> f32;
pub fn<.C> tanf(Value: f32) -> f32;Computes tangent of a radian angle through native tanf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> tan(Value: f64) -> f64;
pub fn<.C> tan(Value: f64) -> f64;Computes tangent of a radian angle through native tan. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> asinf(Value: f32) -> f32;
pub fn<.C> asinf(Value: f32) -> f32;Computes inverse sine in radians through native asinf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> asin(Value: f64) -> f64;
pub fn<.C> asin(Value: f64) -> f64;Computes inverse sine in radians through native asin. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> acosf(Value: f32) -> f32;
pub fn<.C> acosf(Value: f32) -> f32;Computes inverse cosine in radians through native acosf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> acos(Value: f64) -> f64;
pub fn<.C> acos(Value: f64) -> f64;Computes inverse cosine in radians through native acos. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> atanf(Value: f32) -> f32;
pub fn<.C> atanf(Value: f32) -> f32;Computes inverse tangent in radians through native atanf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> atan(Value: f64) -> f64;
pub fn<.C> atan(Value: f64) -> f64;Computes inverse tangent in radians through native atan. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> atan2f(Y: f32, X: f32) -> f32;
pub fn<.C> atan2f(Y: f32, X: f32) -> f32;Computes quadrant-aware inverse tangent in radians through native atan2f. Y: Scalar input passed by value; no pointer/lifetime obligation. X: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> atan2(Y: f64, X: f64) -> f64;
pub fn<.C> atan2(Y: f64, X: f64) -> f64;Computes quadrant-aware inverse tangent in radians through native atan2. Y: Scalar input passed by value; no pointer/lifetime obligation. X: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> expf(Value: f32) -> f32;
pub fn<.C> expf(Value: f32) -> f32;Computes base-e exponential through native expf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> exp(Value: f64) -> f64;
pub fn<.C> exp(Value: f64) -> f64;Computes base-e exponential through native exp. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> exp2f(Value: f32) -> f32;
pub fn<.C> exp2f(Value: f32) -> f32;Computes base-two exponential through native exp2f. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> exp2(Value: f64) -> f64;
pub fn<.C> exp2(Value: f64) -> f64;Computes base-two exponential through native exp2. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> logf(Value: f32) -> f32;
pub fn<.C> logf(Value: f32) -> f32;Computes natural logarithm through native logf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> log(Value: f64) -> f64;
pub fn<.C> log(Value: f64) -> f64;Computes natural logarithm through native log. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> log2f(Value: f32) -> f32;
pub fn<.C> log2f(Value: f32) -> f32;Computes base-two logarithm through native log2f. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> log2(Value: f64) -> f64;
pub fn<.C> log2(Value: f64) -> f64;Computes base-two logarithm through native log2. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> log10f(Value: f32) -> f32;
pub fn<.C> log10f(Value: f32) -> f32;Computes base-ten logarithm through native log10f. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> log10(Value: f64) -> f64;
pub fn<.C> log10(Value: f64) -> f64;Computes base-ten logarithm through native log10. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> powf(Base: f32, Exponent: f32) -> f32;
pub fn<.C> powf(Base: f32, Exponent: f32) -> f32;Computes base raised to an exponent through native powf. Base: Scalar input passed by value; no pointer/lifetime obligation. Exponent: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> pow(Base: f64, Exponent: f64) -> f64;
pub fn<.C> pow(Base: f64, Exponent: f64) -> f64;Computes base raised to an exponent through native pow. Base: Scalar input passed by value; no pointer/lifetime obligation. Exponent: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> floorf(Value: f32) -> f32;
pub fn<.C> floorf(Value: f32) -> f32;Computes integer-valued floor through native floorf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> floor(Value: f64) -> f64;
pub fn<.C> floor(Value: f64) -> f64;Computes integer-valued floor through native floor. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> ceilf(Value: f32) -> f32;
pub fn<.C> ceilf(Value: f32) -> f32;Computes integer-valued ceiling through native ceilf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> ceil(Value: f64) -> f64;
pub fn<.C> ceil(Value: f64) -> f64;Computes integer-valued ceiling through native ceil. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> truncf(Value: f32) -> f32;
pub fn<.C> truncf(Value: f32) -> f32;Computes integer-valued truncation toward zero through native truncf. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> trunc(Value: f64) -> f64;
pub fn<.C> trunc(Value: f64) -> f64;Computes integer-valued truncation toward zero through native trunc. Value: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> fmodf(Value: f32, Divisor: f32) -> f32;
pub fn<.C> fmodf(Value: f32, Divisor: f32) -> f32;Computes remainder after quotient truncation toward zero through native fmodf. Value: Scalar input passed by value; no pointer/lifetime obligation. Divisor: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.
pub fn<.C> fmod(Value: f64, Divisor: f64) -> f64;
pub fn<.C> fmod(Value: f64, Divisor: f64) -> f64;Computes remainder after quotient truncation toward zero through native fmod. Value: Scalar input passed by value; no pointer/lifetime obligation. Divisor: Scalar input passed by value; no pointer/lifetime obligation. Return: Native IEEE result, including NaN/infinity for domain/range errors. Pre: Safety: selected provider matches the declared C scalar ABI; no foreign unwind crosses Sn. Warning: Native floating status/errno may change; this declaration requires unsafe authorization.