MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / new

Method new

crates/virtual-machine/src/cpu/predictor.rs:37–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36impl BranchPredictor {
37 pub fn new() -> Self {
38 Self::default()
39 }
40
41 fn pht_idx(pc: u64) -> usize {
42 ((pc >> 2) as usize) & (PHT_SIZE - 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected