Skip to content

libm and math stuff #19

@mrhota

Description

@mrhota

musl provides many math functions in assembly. I thought it'd be nice to leave those as-is and provide a step in the build to assemble all the .s files and produce a libm-intermediate.a that we can link to librusl.

One reason we might want to copy over the assembly is because of optimizations like the short jmps in musl/src/math/x86_64/floorl.s. I thought it would be hard to bring optimizations like that over to #[naked] rust functions with asm! blocks.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions