@@ -42,7 +42,7 @@ fn asm_benchmark(c: &mut Criterion) {
42
42
"bar" ] . into_iter ( ) . map ( |a| a. into ( ) ) . collect ( ) ;
43
43
44
44
b. iter ( || {
45
- let asm_core = AsmCoreMachine :: new ( ISA_IMC , VERSION0 , u64:: max_value ( ) ) ;
45
+ let asm_core = AsmCoreMachine :: new ( ISA_IMC , VERSION0 , u64:: MAX ) ;
46
46
let core = DefaultMachineBuilder :: new ( asm_core) . build ( ) ;
47
47
let mut machine = AsmMachine :: new ( core) ;
48
48
machine. load_program ( & buffer, & args[ ..] ) . unwrap ( ) ;
@@ -61,7 +61,7 @@ fn mop_benchmark(c: &mut Criterion) {
61
61
"foo" ,
62
62
"bar" ] . into_iter ( ) . map ( |a| a. into ( ) ) . collect ( ) ;
63
63
b. iter ( || {
64
- let asm_core = AsmCoreMachine :: new ( ISA_IMC | ISA_B | ISA_MOP , VERSION2 , u64:: max_value ( ) ) ;
64
+ let asm_core = AsmCoreMachine :: new ( ISA_IMC | ISA_B | ISA_MOP , VERSION2 , u64:: MAX ) ;
65
65
let core = DefaultMachineBuilder :: < Box < AsmCoreMachine > > :: new ( asm_core)
66
66
. build ( ) ;
67
67
let mut machine = AsmMachine :: new ( core) ;
@@ -83,15 +83,15 @@ fn mop_memoized_benchmark(c: &mut Criterion) {
83
83
"foo" ,
84
84
"bar" ] . into_iter ( ) . map ( |a| a. into ( ) ) . collect ( ) ;
85
85
let mut decoder = MemoizedFixedTraceDecoder :: new ( build_decoder :: < u64 > ( isa, version) ) ;
86
- let asm_core = AsmCoreMachine :: new ( isa, version, u64:: max_value ( ) ) ;
86
+ let asm_core = AsmCoreMachine :: new ( isa, version, u64:: MAX ) ;
87
87
let core = DefaultMachineBuilder :: < Box < AsmCoreMachine > > :: new ( asm_core)
88
88
. build ( ) ;
89
89
let mut machine = AsmMachine :: new ( core) ;
90
90
machine. load_program ( & buffer, & args) . unwrap ( ) ;
91
91
machine. run_with_decoder ( & mut decoder) . unwrap ( ) ;
92
92
93
93
b. iter ( || {
94
- let asm_core = AsmCoreMachine :: new ( isa, version, u64:: max_value ( ) ) ;
94
+ let asm_core = AsmCoreMachine :: new ( isa, version, u64:: MAX ) ;
95
95
let core = DefaultMachineBuilder :: < Box < AsmCoreMachine > > :: new ( asm_core)
96
96
. build ( ) ;
97
97
let mut machine = AsmMachine :: new ( core) ;
@@ -114,15 +114,15 @@ fn mop_memoized_dynamic_benchmark(c: &mut Criterion) {
114
114
"foo" ,
115
115
"bar" ] . into_iter ( ) . map ( |a| a. into ( ) ) . collect ( ) ;
116
116
let mut decoder = MemoizedDynamicTraceDecoder :: new ( build_decoder :: < u64 > ( isa, version) ) ;
117
- let asm_core = AsmCoreMachine :: new ( isa, version, u64:: max_value ( ) ) ;
117
+ let asm_core = AsmCoreMachine :: new ( isa, version, u64:: MAX ) ;
118
118
let core = DefaultMachineBuilder :: < Box < AsmCoreMachine > > :: new ( asm_core)
119
119
. build ( ) ;
120
120
let mut machine = AsmMachine :: new ( core) ;
121
121
machine. load_program ( & buffer, & args) . unwrap ( ) ;
122
122
machine. run_with_decoder ( & mut decoder) . unwrap ( ) ;
123
123
124
124
b. iter ( || {
125
- let asm_core = AsmCoreMachine :: new ( isa, version, u64:: max_value ( ) ) ;
125
+ let asm_core = AsmCoreMachine :: new ( isa, version, u64:: MAX ) ;
126
126
let core = DefaultMachineBuilder :: < Box < AsmCoreMachine > > :: new ( asm_core)
127
127
. build ( ) ;
128
128
let mut machine = AsmMachine :: new ( core) ;
0 commit comments