forge
Explore
Log in

Don't you dare go Hollow

Take_tx_type_hits is a test reader

Browse files at this commit

7389995164510e2b63ed184d1854e73a8cdb6b87Ahmet Kaan GümüşParent: 748b008
  • chore
    • take_tx_type_hits is a test reader
Show full message
chore(av1): take_tx_type_hits is a test reader
crates/ec-av1/src/encode.rsmodified+1 -0
@@ -3681,6 +3681,7 @@ pub(crate) static TX_TYPE_HITS: [std::sync::atomic::AtomicUsize; 16] =
36813681
36823682 /// Reads [`TX_TYPE_HITS`] and zeroes it, so a gate or a test attributes the
36833683 /// counts to its own encode.
3684+#[cfg(test)]
36843685 pub(crate) fn take_tx_type_hits() -> [usize; 16] {
36853686 std::array::from_fn(|t| TX_TYPE_HITS[t].swap(0, std::sync::atomic::Ordering::Relaxed))
36863687 }