Skip to content

Commit dbd00fc

Browse files
committed
changed name of numeric trait to MiscFloatOps
1 parent c1120d8 commit dbd00fc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cfavml/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub mod safe_trait_agg_ops;
2323
pub mod safe_trait_arithmetic_ops;
2424
pub mod safe_trait_cmp_ops;
2525
pub mod safe_trait_distance_ops;
26-
pub mod safe_trait_numeric_ops;
26+
pub mod safe_trait_misc_float_ops;
2727
#[cfg(test)]
2828
mod test_utils;
2929

cfavml/src/safe_trait_numeric_ops.rs renamed to cfavml/src/safe_trait_misc_float_ops.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use crate::buffer::WriteOnlyBuffer;
77
use crate::danger::export_hypot;
88
use crate::mem_loader::{IntoMemLoader, MemLoader};
99

10-
/// Various arithmetic operations over vectors.
11-
pub trait NumericOps: Sized + Copy {
10+
/// Various float operations over vectors.
11+
pub trait MiscFloatOps: Sized + Copy {
1212
/// Performs an elementwise hypotenuse of input buffers `a` and `b` that can
1313
/// be projected to the desired output size of `result`. Implementation is an appoximation that
1414
/// _should_ match std::hypot in most cases. However, with some inputs it's been confirmed to be off by 1 ulp.
@@ -56,9 +56,9 @@ pub trait NumericOps: Sized + Copy {
5656
for<'a> &'a mut [B3]: WriteOnlyBuffer<Item = Self>;
5757
}
5858

59-
macro_rules! numeric_ops {
59+
macro_rules! misc_float_ops {
6060
($t:ty) => {
61-
impl NumericOps for $t {
61+
impl MiscFloatOps for $t {
6262
fn hypot_vertical<B1, B2, B3>(lhs: B1, rhs: B2, result: &mut [B3])
6363
where
6464
B1: IntoMemLoader<Self>,
@@ -81,5 +81,5 @@ macro_rules! numeric_ops {
8181
};
8282
}
8383

84-
numeric_ops!(f32);
85-
numeric_ops!(f64);
84+
misc_float_ops!(f32);
85+
misc_float_ops!(f64);

0 commit comments

Comments
 (0)