Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dasp_envelope/src/detect/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ pub mod f32 {
}
#[cfg(not(feature = "std"))]
pub fn powf32(a: f32, b: f32) -> f32 {
unsafe { core::intrinsics::powf32(a, b) }
core::intrinsics::powf32(a, b)
}
}
4 changes: 2 additions & 2 deletions dasp_interpolate/src/sinc/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pub mod f64 {
#[cfg(not(feature = "std"))]
pub fn sin(x: f64) -> f64 {
unsafe { core::intrinsics::sinf64(x) }
core::intrinsics::sin(x)
}
#[cfg(feature = "std")]
pub fn sin(x: f64) -> f64 {
Expand All @@ -12,7 +12,7 @@ pub mod f64 {

#[cfg(not(feature = "std"))]
pub fn cos(x: f64) -> f64 {
unsafe { core::intrinsics::cosf64(x) }
core::intrinsics::cos(x)
}
#[cfg(feature = "std")]
pub fn cos(x: f64) -> f64 {
Expand Down
6 changes: 3 additions & 3 deletions dasp_signal/src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod f64 {

#[cfg(not(feature = "std"))]
pub fn floor(x: f64) -> f64 {
unsafe { core::intrinsics::floorf64(x) }
core::intrinsics::floorf64(x)
}
#[cfg(feature = "std")]
pub fn floor(x: f64) -> f64 {
Expand All @@ -14,7 +14,7 @@ pub mod f64 {
#[cfg(not(feature = "std"))]
#[allow(dead_code)]
pub fn ceil(x: f64) -> f64 {
unsafe { core::intrinsics::ceilf64(x) }
core::intrinsics::ceilf64(x)
}
#[cfg(feature = "std")]
#[allow(dead_code)]
Expand All @@ -24,7 +24,7 @@ pub mod f64 {

#[cfg(not(feature = "std"))]
pub fn sin(x: f64) -> f64 {
unsafe { core::intrinsics::sinf64(x) }
core::intrinsics::sin(x)
}
#[cfg(feature = "std")]
pub fn sin(x: f64) -> f64 {
Expand Down
2 changes: 1 addition & 1 deletion dasp_window/src/hann/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pub mod f64 {
#[cfg(not(feature = "std"))]
pub fn cos(x: f64) -> f64 {
unsafe { core::intrinsics::cosf64(x) }
core::intrinsics::cos(x)
}
#[cfg(feature = "std")]
pub fn cos(x: f64) -> f64 {
Expand Down
Loading