forge
Explore
Log in

Don't you dare go Hollow

ec-vp8: mc.rs blank-line tidy

Browse files at this commit

1b64551c0c252d965429fa2219bc5b62e91e6014Ahmet Kaan GümüşParent: 7ffca32
crates/ec-vp8/src/mc.rsmodified+1 -9
@@ -21,6 +21,7 @@
21 //! are reproduced exactly (`i32 >> 3` and `& 7` on negatives).21 //! are reproduced exactly (`i32 >> 3` and `& 7` on negatives).
22 //!22 //!
23 //! [RFC 6386]: https://www.rfc-editor.org/rfc/rfc638623 //! [RFC 6386]: https://www.rfc-editor.org/rfc/rfc6386
24+use crate::avx2_supported;
24 25
25 /// `VP8_FILTER_WEIGHT` (filter.c): tap weights sum to this, DC passes.26 /// `VP8_FILTER_WEIGHT` (filter.c): tap weights sum to this, DC passes.
26 const VP8_FILTER_WEIGHT: i32 = 128;27 const VP8_FILTER_WEIGHT: i32 = 128;
@@ -262,15 +263,6 @@ fn sixtap_v_scalar(
262 }263 }
263 }264 }
264 265
265-/// Cached AVX2 availability (the per-block detection load is cheap, but
266-/// MC blocks are the hottest call in an inter decode).
267-#[cfg(target_arch = "x86_64")]
268-fn avx2_supported() -> bool {
269- static AVX2: std::sync::LazyLock<bool> =
270- std::sync::LazyLock::new(|| std::arch::is_x86_feature_detected!("avx2"));
271- *AVX2
272-}
273-
274 /// Explicit `std::arch::x86_64` kernels for the six-tap and bilinear266 /// Explicit `std::arch::x86_64` kernels for the six-tap and bilinear
275 /// passes (the 18% of a decode the profile pins on `sixtap_block` and its267 /// passes (the 18% of a decode the profile pins on `sixtap_block` and its
276 /// chroma siblings). Nothing here is spec logic: each kernel is the scalar268 /// chroma siblings). Nothing here is spec logic: each kernel is the scalar