bors[bot] 6d7626c844 Merge #107
107: add an implemetation of asin r=japaric a=japaric

Fixes #7

Additonally adds inline functions for macros dealing with low and high words of f64s to the root module.

Also, the muslc code used a hexdecimal float. This shouldn't be needed because Rust implements
floating point parsing well.

---

rebased version of #95
closes #95
Thanks @vjackson725 for the original PR!

Co-authored-by: vjackson725 <vjackson725@users.noreply.github.com>
2018-07-14 21:46:05 +00:00
2018-07-12 20:19:42 -05:00
2018-07-14 16:44:26 -05:00
2018-07-12 00:44:28 -05:00
2018-07-14 12:20:10 -05:00
2018-07-13 19:38:51 -05:00
2018-07-13 19:38:51 -05:00
2018-07-12 00:44:28 -05:00
2018-07-12 00:44:28 -05:00

libm

A port of MUSL's libm to Rust.

Goals

The short term goal of this library is to enable math support (e.g. sin, atan2) for the wasm32-unknown-unknown target (cf. rust-lang-nursery/compiler-builtins). The longer term goal is to enable math support in the core crate.

Already usable

This crate is on crates.io and can be used today in stable #![no_std] programs like this:

#![no_std]

extern crate libm;

use libm::F32Ext; // adds methods to `f32`

fn foo(x: f32) {
    let y = x.sqrt();
    let z = libm::truncf(x);
}

Not all the math functions are available at the moment. Check the API docs to learn what's currently supported.

Contributing

Please check CONTRIBUTING.md

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

S
Description
No description provided
Readme 795 KiB
Languages
Rust 98.5%
Dockerfile 1.2%
Shell 0.3%