version 0.1.4

This commit is contained in:
Trevor Spiteri 2018-11-29 09:55:39 +01:00
parent 02dded4476
commit c69544b9a0
4 changed files with 18 additions and 60 deletions

View File

@ -7,7 +7,7 @@
[package]
name = "fixed"
version = "0.1.3"
version = "0.1.4"
authors = ["Trevor Spiteri <tspiteri@ieee.org>"]
description = "Fixed-point numbers"
documentation = "https://docs.rs/fixed"

View File

@ -35,50 +35,10 @@ fixed-point numbers.
## Whats new
### Version 0.1.4 news (unreleased)
### Version 0.1.4 news (2018-11-29)
* Division is now implemented for [`FixedI128`] and [`FixedU128`].
### Version 0.1.3 news (2018-08-23)
* The `f16` feature was added, and new methods [`from_f16`] and
[`to_f16`] were added.
[`from_f16`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.from_f16
[`to_f16`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.to_f16
### Version 0.1.2 news (2018-08-15)
* The crate can now be used without the standard library `std`.
* New methods [`from_f32`] and [`from_f64`] were added.
* New methods [`is_positive`] and [`is_negative`] were added to
signed fixed-point numbers.
[`from_f32`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.from_f32
[`from_f64`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.from_f64
[`is_negative`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.is_negative
[`is_positive`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.is_positive
### Version 0.1.1 news (2018-08-11)
* Comparisons are now supported between all fixed-point numbers with
the same underlying integer type.
* New static methods [`int_bits`] and [`frac_bits`] were added.
* New methods [`from_int`], [`to_int`], [`to_int_ceil`],
[`to_int_floor`] and [`to_int_round`] were added.
* New methods [`int`] and [`frac`] were added.
* Support for multiplication and division by integers was added.
[`frac_bits`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.frac_bits
[`frac`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.frac
[`from_int`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.from_int
[`int_bits`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.int_bits
[`to_int_ceil`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.to_int_ceil
[`to_int_floor`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.to_int_floor
[`to_int_round`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.to_int_round
[`to_int`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.to_int
[`int`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html#method.int
### Other releases
Details on other releases can be found in [*RELEASES.md*].
@ -108,7 +68,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]:
```toml
[dependencies]
fixed = "0.1.3"
fixed = "0.1.4"
```
You also need to declare it by adding this to your crate root (usually
@ -132,7 +92,7 @@ To enable the feature, you can add the dependency like this to
```toml
[dependencies.fixed]
version = "0.1.3"
version = "0.1.4"
features = ["f16"]
```
@ -159,16 +119,15 @@ additional terms or conditions.
[*typenum* crate]: https://crates.io/crates/typenum
[LICENSE-APACHE]: https://www.apache.org/licenses/LICENSE-2.0
[LICENSE-MIT]: https://opensource.org/licenses/MIT
[`FixedI128`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI128.html
[`FixedI16`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI16.html
[`FixedI32`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI32.html
[`FixedI64`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI64.html
[`FixedI8`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedI8.html
[`FixedU128`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedU128.html
[`FixedU16`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedU16.html
[`FixedU32`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedU32.html
[`FixedU64`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedU64.html
[`FixedU8`]: https://docs.rs/fixed/0.1.3/fixed/struct.FixedU8.html
[`FixedI128`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedI128.html
[`FixedI16`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedI16.html
[`FixedI32`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedI32.html
[`FixedI64`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedI64.html
[`FixedI8`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedI8.html
[`FixedU128`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedU128.html
[`FixedU16`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedU16.html
[`FixedU32`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedU32.html
[`FixedU64`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedU64.html
[`FixedU8`]: https://docs.rs/fixed/0.1.4/fixed/struct.FixedU8.html
[`f16`]: https://docs.rs/half/^1/half/struct.f16.html
[channels]: https://doc.rust-lang.org/book/second-edition/appendix-07-nightly-rust.html
[const generics]: https://github.com/rust-lang/rust/issues/44580

View File

@ -5,7 +5,7 @@ modification, are permitted in any medium without royalty provided the
copyright notice and this notice are preserved. This file is offered
as-is, without any warranty. -->
Version 0.1.4 (unreleased)
Version 0.1.4 (2018-11-29)
==========================
* Division is now implemented for `FixedI128` and `FixedU128`.

View File

@ -65,7 +65,7 @@ it in your crate, add it as a dependency inside [*Cargo.toml*]:
```toml
[dependencies]
fixed = "0.1.3"
fixed = "0.1.4"
```
You also need to declare it by adding this to your crate root (usually
@ -89,7 +89,7 @@ To enable the feature, you can add the dependency like this to
```toml
[dependencies.fixed]
version = "0.1.3"
version = "0.1.4"
features = ["f16"]
```
@ -127,12 +127,11 @@ additional terms or conditions.
[`FixedU64`]: struct.FixedU64.html
[`FixedU8`]: struct.FixedU8.html
[`f16`]: https://docs.rs/half/^1/half/struct.f16.html
[channels]: https://doc.rust-lang.org/book/second-edition/appendix-07-nightly-rust.html
[const generics]: https://github.com/rust-lang/rust/issues/44580
*/
#![no_std]
#![warn(missing_docs)]
#![doc(html_root_url = "https://docs.rs/fixed/0.1.3")]
#![doc(html_root_url = "https://docs.rs/fixed/0.1.4")]
#![doc(test(attr(deny(warnings))))]
#![cfg_attr(nightly_repr_transparent, feature(repr_transparent))]