Skip to content

Use the libm crate for a full Float on no_std #75

@cuviper

Description

@cuviper

Currently, num_traits::Float is only available with std, and no_std only has the more limited FloatCore without all of transcendental functions like sqrt, sin, etc. The new libm crate might be the way out of this, as an optional dependency to get Float on no_std too!

There's also Real and the signed and floating-point Pow (mapping to powi and powf) which all require std now, and should be feasible with libm. I'm not sure about MulAdd and MulAddAssign though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions