@@ -35,8 +35,13 @@ use crate::INT256_NUM_BLOCKS;
3535//////////////////////////////////////////////////////////////////////////////////////
3636/// ALU
3737//////////////////////////////////////////////////////////////////////////////////////
38- pub type BaseAlu256AdapterRecord =
39- Rv32VecHeapAdapterRecord < 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > ;
38+ pub type BaseAlu256AdapterRecord = Rv32VecHeapAdapterRecord <
39+ 2 ,
40+ INT256_NUM_BLOCKS ,
41+ INT256_NUM_BLOCKS ,
42+ CONST_BLOCK_SIZE ,
43+ CONST_BLOCK_SIZE ,
44+ > ;
4045pub type BaseAlu256CoreRecord = BaseAluCoreRecord < INT256_NUM_LIMBS > ;
4146
4247#[ derive( new) ]
@@ -57,7 +62,14 @@ impl Chip<DenseRecordArena, GpuBackend> for BaseAlu256ChipGpu {
5762 debug_assert_eq ! ( records. len( ) % RECORD_SIZE , 0 ) ;
5863
5964 let trace_width = BaseAluCoreCols :: < F , INT256_NUM_LIMBS , RV32_CELL_BITS > :: width ( )
60- + Rv32VecHeapAdapterCols :: < F , 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > :: width ( ) ;
65+ + Rv32VecHeapAdapterCols :: <
66+ F ,
67+ 2 ,
68+ INT256_NUM_BLOCKS ,
69+ INT256_NUM_BLOCKS ,
70+ CONST_BLOCK_SIZE ,
71+ CONST_BLOCK_SIZE ,
72+ > :: width ( ) ;
6173 let trace_height = next_power_of_two_or_zero ( records. len ( ) / RECORD_SIZE ) ;
6274
6375 let d_records = records. to_device ( ) . unwrap ( ) ;
@@ -84,7 +96,8 @@ impl Chip<DenseRecordArena, GpuBackend> for BaseAlu256ChipGpu {
8496//////////////////////////////////////////////////////////////////////////////////////
8597/// Branch Equal
8698//////////////////////////////////////////////////////////////////////////////////////
87- pub type BranchEqual256AdapterRecord = Rv32VecHeapBranchAdapterRecord < 2 , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE > ;
99+ pub type BranchEqual256AdapterRecord =
100+ Rv32VecHeapBranchAdapterRecord < 2 , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE > ;
88101pub type BranchEqual256CoreRecord = BranchEqualCoreRecord < INT256_NUM_LIMBS > ;
89102
90103#[ derive( new) ]
@@ -133,8 +146,13 @@ impl Chip<DenseRecordArena, GpuBackend> for BranchEqual256ChipGpu {
133146//////////////////////////////////////////////////////////////////////////////////////
134147/// Less Than
135148//////////////////////////////////////////////////////////////////////////////////////
136- pub type LessThan256AdapterRecord =
137- Rv32VecHeapAdapterRecord < 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > ;
149+ pub type LessThan256AdapterRecord = Rv32VecHeapAdapterRecord <
150+ 2 ,
151+ INT256_NUM_BLOCKS ,
152+ INT256_NUM_BLOCKS ,
153+ CONST_BLOCK_SIZE ,
154+ CONST_BLOCK_SIZE ,
155+ > ;
138156pub type LessThan256CoreRecord = LessThanCoreRecord < INT256_NUM_LIMBS , RV32_CELL_BITS > ;
139157
140158#[ derive( new) ]
@@ -155,7 +173,14 @@ impl Chip<DenseRecordArena, GpuBackend> for LessThan256ChipGpu {
155173 debug_assert_eq ! ( records. len( ) % RECORD_SIZE , 0 ) ;
156174
157175 let trace_width = LessThanCoreCols :: < F , INT256_NUM_LIMBS , RV32_CELL_BITS > :: width ( )
158- + Rv32VecHeapAdapterCols :: < F , 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > :: width ( ) ;
176+ + Rv32VecHeapAdapterCols :: <
177+ F ,
178+ 2 ,
179+ INT256_NUM_BLOCKS ,
180+ INT256_NUM_BLOCKS ,
181+ CONST_BLOCK_SIZE ,
182+ CONST_BLOCK_SIZE ,
183+ > :: width ( ) ;
159184 let trace_height = next_power_of_two_or_zero ( records. len ( ) / RECORD_SIZE ) ;
160185
161186 let d_records = records. to_device ( ) . unwrap ( ) ;
@@ -182,7 +207,8 @@ impl Chip<DenseRecordArena, GpuBackend> for LessThan256ChipGpu {
182207//////////////////////////////////////////////////////////////////////////////////////
183208/// Branch Less Than
184209//////////////////////////////////////////////////////////////////////////////////////
185- pub type BranchLessThan256AdapterRecord = Rv32VecHeapBranchAdapterRecord < 2 , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE > ;
210+ pub type BranchLessThan256AdapterRecord =
211+ Rv32VecHeapBranchAdapterRecord < 2 , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE > ;
186212pub type BranchLessThan256CoreRecord = BranchLessThanCoreRecord < INT256_NUM_LIMBS , RV32_CELL_BITS > ;
187213
188214#[ derive( new) ]
@@ -231,8 +257,13 @@ impl Chip<DenseRecordArena, GpuBackend> for BranchLessThan256ChipGpu {
231257//////////////////////////////////////////////////////////////////////////////////////
232258/// Shift
233259//////////////////////////////////////////////////////////////////////////////////////
234- pub type Shift256AdapterRecord =
235- Rv32VecHeapAdapterRecord < 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > ;
260+ pub type Shift256AdapterRecord = Rv32VecHeapAdapterRecord <
261+ 2 ,
262+ INT256_NUM_BLOCKS ,
263+ INT256_NUM_BLOCKS ,
264+ CONST_BLOCK_SIZE ,
265+ CONST_BLOCK_SIZE ,
266+ > ;
236267pub type Shift256CoreRecord = ShiftCoreRecord < INT256_NUM_LIMBS , RV32_CELL_BITS > ;
237268
238269#[ derive( new) ]
@@ -253,7 +284,14 @@ impl Chip<DenseRecordArena, GpuBackend> for Shift256ChipGpu {
253284 debug_assert_eq ! ( records. len( ) % RECORD_SIZE , 0 ) ;
254285
255286 let trace_width = ShiftCoreCols :: < F , INT256_NUM_LIMBS , RV32_CELL_BITS > :: width ( )
256- + Rv32VecHeapAdapterCols :: < F , 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > :: width ( ) ;
287+ + Rv32VecHeapAdapterCols :: <
288+ F ,
289+ 2 ,
290+ INT256_NUM_BLOCKS ,
291+ INT256_NUM_BLOCKS ,
292+ CONST_BLOCK_SIZE ,
293+ CONST_BLOCK_SIZE ,
294+ > :: width ( ) ;
257295 let trace_height = next_power_of_two_or_zero ( records. len ( ) / RECORD_SIZE ) ;
258296
259297 let d_records = records. to_device ( ) . unwrap ( ) ;
@@ -280,8 +318,13 @@ impl Chip<DenseRecordArena, GpuBackend> for Shift256ChipGpu {
280318//////////////////////////////////////////////////////////////////////////////////////
281319/// Multiplication
282320//////////////////////////////////////////////////////////////////////////////////////
283- pub type Multiplication256AdapterRecord =
284- Rv32VecHeapAdapterRecord < 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > ;
321+ pub type Multiplication256AdapterRecord = Rv32VecHeapAdapterRecord <
322+ 2 ,
323+ INT256_NUM_BLOCKS ,
324+ INT256_NUM_BLOCKS ,
325+ CONST_BLOCK_SIZE ,
326+ CONST_BLOCK_SIZE ,
327+ > ;
285328pub type Multiplication256CoreRecord = MultiplicationCoreRecord < INT256_NUM_LIMBS , RV32_CELL_BITS > ;
286329
287330#[ derive( new) ]
@@ -304,7 +347,14 @@ impl Chip<DenseRecordArena, GpuBackend> for Multiplication256ChipGpu {
304347 debug_assert_eq ! ( records. len( ) % RECORD_SIZE , 0 ) ;
305348
306349 let trace_width = MultiplicationCoreCols :: < F , INT256_NUM_LIMBS , RV32_CELL_BITS > :: width ( )
307- + Rv32VecHeapAdapterCols :: < F , 2 , INT256_NUM_BLOCKS , INT256_NUM_BLOCKS , CONST_BLOCK_SIZE , CONST_BLOCK_SIZE > :: width ( ) ;
350+ + Rv32VecHeapAdapterCols :: <
351+ F ,
352+ 2 ,
353+ INT256_NUM_BLOCKS ,
354+ INT256_NUM_BLOCKS ,
355+ CONST_BLOCK_SIZE ,
356+ CONST_BLOCK_SIZE ,
357+ > :: width ( ) ;
308358 let trace_height = next_power_of_two_or_zero ( records. len ( ) / RECORD_SIZE ) ;
309359
310360 let d_records = records. to_device ( ) . unwrap ( ) ;
0 commit comments