#libm #float #no-std

no-std m

A C free / pure Rust mathematical library (“libm”) for no_std code

2 releases

Uses old Rust 2015

0.1.1 Oct 20, 2016
0.1.0 Oct 15, 2016

#12 in #libm

Download history 65/week @ 2024-07-22 54/week @ 2024-07-29 58/week @ 2024-08-05 87/week @ 2024-08-12 44/week @ 2024-08-19 55/week @ 2024-08-26 41/week @ 2024-09-02 45/week @ 2024-09-09 51/week @ 2024-09-16 79/week @ 2024-09-23 47/week @ 2024-09-30 25/week @ 2024-10-07 41/week @ 2024-10-14 73/week @ 2024-10-21 52/week @ 2024-10-28 90/week @ 2024-11-04

257 downloads per month
Used in 5 crates (2 directly)

BSD-2-Clause AND ISC AND MIT

26KB
621 lines

Build status Build status crates.io crates.io

m

A C free / pure Rust mathematical library ("libm") for no_std code

This is a port of OpenLibm.

Documentation

Change log

License

The m crate is a port of the OpenLibm library, which contains code that is covered by various licenses:

The OpenLibm code derives from the FreeBSD msun and OpenBSD libm implementations, which in turn derives from FDLIBM 5.3. As a result, it has a number of fixes and updates that have accumulated over the years in msun, and also optimized assembly versions of many functions. These improvements are provided under the BSD and ISC licenses. The msun library also includes work placed under the public domain, which is noted in the individual files. Further work on making a standalone OpenLibm library from msun, as part of the Julia project is covered under the MIT license.

TL;DR OpenLibm contains code that is licensed under the 2-clause BSD, the ISC and the MIT licenses and code that is in the public domain. As a user of this code you agree to use it under these licenses. As a contributor, you agree to allow your code to be used under all these licenses as well.

Full text of the relevant licenses is in LICENSE.md.

No runtime deps