File tree Expand file tree Collapse file tree
hyperlight_guest_bin/src/exceptions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ const _: () = assert!(size_of::<Context>() == 32 + 512 + 120 + 8);
7373// as specified in the x86-64 ELF System V psABI specification, Section 3.2.2:
7474//
7575// https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build
76- const _: ( ) = assert ! ( ( size_of:: <Context >( ) + size_of:: <ExceptionInfo >( ) ) % 16 == 0 ) ;
76+ const _: ( ) = assert ! ( ( size_of:: <Context >( ) + size_of:: <ExceptionInfo >( ) ) . is_multiple_of ( 16 ) ) ;
7777
7878/// Array of installed exception handlers for vectors 0-30.
7979///
Original file line number Diff line number Diff line change @@ -1219,7 +1219,7 @@ fn interrupt_random_kill_stress_test() {
12191219
12201220 // Progress reporting
12211221 let current_total = total_iterations_clone. load ( Ordering :: Relaxed ) ;
1222- if current_total % 5000 == 0 {
1222+ if current_total. is_multiple_of ( 5000 ) {
12231223 println ! (
12241224 "Progress: {}/{} iterations completed" ,
12251225 current_total,
You can’t perform that action at this time.
0 commit comments