global: snapshot

This commit is contained in:
nym21
2026-01-20 15:04:00 +01:00
parent 486871379c
commit 9613fce919
53 changed files with 1811 additions and 4081 deletions
@@ -21,7 +21,7 @@ mod ratio32;
mod ratio32_neg;
mod ratio_f32;
mod return_f32_tenths;
mod return_i16;
mod return_i8;
mod return_u16;
mod rsi_formula;
mod sat_halve;
@@ -61,7 +61,7 @@ pub use ratio32::*;
pub use ratio32_neg::*;
pub use ratio_f32::*;
pub use return_f32_tenths::*;
pub use return_i16::*;
pub use return_i8::*;
pub use return_u16::*;
pub use rsi_formula::*;
pub use sat_halve::*;
@@ -1,12 +0,0 @@
use brk_types::StoredI16;
use vecdb::UnaryTransform;
/// Returns a constant i16 value, ignoring the input.
pub struct ReturnI16<const V: i16>;
impl<S, const V: i16> UnaryTransform<S, StoredI16> for ReturnI16<V> {
#[inline(always)]
fn apply(_: S) -> StoredI16 {
StoredI16::new(V)
}
}
@@ -0,0 +1,12 @@
use brk_types::StoredI8;
use vecdb::UnaryTransform;
/// Returns a constant i8 value, ignoring the input.
pub struct ReturnI8<const V: i8>;
impl<S, const V: i8> UnaryTransform<S, StoredI8> for ReturnI8<V> {
#[inline(always)]
fn apply(_: S) -> StoredI8 {
StoredI8::new(V)
}
}