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

Method default

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

Source from the content-addressed store, hash-verified

25
26impl Default for BranchPredictor {
27 fn default() -> Self {
28 Self {
29 pht: [1u8; PHT_SIZE], // start weakly-not-taken
30 btb: HashMap::new(),
31 stats: PredictorStats::default(),
32 }
33 }
34}
35
36impl BranchPredictor {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected