Skip to content

Commit

Permalink
Run rustfmt and apply fixes for new clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
caelunshun committed Jan 1, 2024
1 parent 1f4702d commit da62ea8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
readme = "README.md"

[dependencies.doubled]
version = "0.3.1"
version = "0.3.2"
features = ["simd"]

[features]
Expand Down
4 changes: 1 addition & 3 deletions src/f32x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ pub use u35::{
use crate::common::*;
use doubled::*;

use core::simd::{
LaneCount, Mask, Simd, SupportedLaneCount,
};
use core::simd::{LaneCount, Mask, Simd, SupportedLaneCount};

type F32x<const N: usize> = Simd<f32, N>;
type U32x<const N: usize> = Simd<u32, N>;
Expand Down
8 changes: 2 additions & 6 deletions src/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,12 +716,8 @@ pub fn ldexp(x: f64, mut exp: i32) -> f64 {
/// Integer exponent of an FP number
pub fn ilogb(d: f64) -> i32 {
let mut e = ilogbk(fabsk(d));
e = if d == 0. { SLEEF_FP_ILOGB0 as i32 } else { e };
e = if d.is_nan() {
SLEEF_FP_ILOGBNAN as i32
} else {
e
};
e = if d == 0. { SLEEF_FP_ILOGB0 } else { e };
e = if d.is_nan() { SLEEF_FP_ILOGBNAN } else { e };
if d.is_infinite() {
i32::MAX
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/f64/u10.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub fn cos(d: f64) -> f64 {

let u = t.mul_as_f(x);

if ((ql as isize) & 2) == 0 {
if (ql & 2) == 0 {
-u
} else {
u
Expand Down
4 changes: 1 addition & 3 deletions src/f64x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ pub use u35::{
};

use crate::common::*;
use core::simd::{
LaneCount, Mask, Simd, SupportedLaneCount,
};
use core::simd::{LaneCount, Mask, Simd, SupportedLaneCount};
use doubled::*;

type F64x<const N: usize> = Simd<f64, N>;
Expand Down

0 comments on commit da62ea8

Please sign in to comment.