Skip to content

Commit

Permalink
Add is_complex_half
Browse files Browse the repository at this point in the history
  • Loading branch information
rpitasky committed Sep 3, 2023
1 parent 5b61530 commit f10d25d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tifloats"
version = "2.1.2"
version = "2.2.0"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/TI-Toolkit/tifloats_lib_rs"
Expand Down
4 changes: 4 additions & 0 deletions src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ impl Float {
pub fn mark_complex_half(&mut self) {
self.flags &= Flags::COMPLEX_HALF;
}

pub fn is_complex_half(&self) -> bool {
self.flags.contains(Flags::COMPLEX_HALF)
}
}

impl PartialOrd for Float {
Expand Down

0 comments on commit f10d25d

Please sign in to comment.