File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,10 +195,10 @@ where
195
195
fn fill_cache_impl ( & mut self , input : T :: MaxProcessByteArray ) -> usize {
196
196
let stream_chunk_bitwidth: usize = T :: ChunkType :: BITWIDTH ;
197
197
assert ! ( stream_chunk_bitwidth >= 1 ) ;
198
- assert ! ( stream_chunk_bitwidth % 8 == 0 ) ;
198
+ assert ! ( stream_chunk_bitwidth. is_multiple_of ( 8 ) ) ;
199
199
200
200
assert ! ( 8 * T :: MAX_PROCESS_BYTES >= stream_chunk_bitwidth) ;
201
- assert ! ( 8 * T :: MAX_PROCESS_BYTES % stream_chunk_bitwidth == 0 ) ;
201
+ assert ! ( ( 8 * T :: MAX_PROCESS_BYTES ) . is_multiple_of ( stream_chunk_bitwidth) ) ;
202
202
203
203
let num_chunks_needed =
204
204
( 8 * T :: MAX_PROCESS_BYTES ) / stream_chunk_bitwidth;
Original file line number Diff line number Diff line change 56
56
let stream_chunk_bitwidth: usize = T :: ChunkType :: BITWIDTH ;
57
57
58
58
assert ! ( WritebackCache :: BITWIDTH >= stream_chunk_bitwidth) ;
59
- assert ! ( WritebackCache :: BITWIDTH % stream_chunk_bitwidth == 0 ) ;
59
+ assert ! ( WritebackCache :: BITWIDTH . is_multiple_of ( stream_chunk_bitwidth) ) ;
60
60
let num_chunks_needed: usize =
61
61
WritebackCache :: BITWIDTH / stream_chunk_bitwidth;
62
62
assert ! ( num_chunks_needed >= 1 ) ;
You can’t perform that action at this time.
0 commit comments