Skip to content

Commit

Permalink
Assume has_copysign
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 8, 2024
1 parent 84e935b commit 7c2f3bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
use std::env;

fn main() {
let ac = autocfg::new();

if env::var_os("CARGO_FEATURE_STD").is_some() {
ac.emit_expression_cfg("1f64.copysign(-1f64)", "has_copysign");
}
ac.emit_expression_cfg("1f64.is_subnormal()", "has_is_subnormal");
ac.emit_expression_cfg("1f64.total_cmp(&2f64)", "has_total_cmp");

Expand Down
4 changes: 0 additions & 4 deletions src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1944,10 +1944,6 @@ macro_rules! float_impl_std {
Self::asinh(self) -> Self;
Self::acosh(self) -> Self;
Self::atanh(self) -> Self;
}

#[cfg(has_copysign)]
forward! {
Self::copysign(self, sign: Self) -> Self;
}

Expand Down

0 comments on commit 7c2f3bc

Please sign in to comment.