@@ -6,7 +6,7 @@ use itertools::Itertools;
66use multilinear_extensions:: {
77 commutative_op_mle_pair_pool,
88 mle:: { DenseMultilinearExtension , FieldType , IntoMLE } ,
9- op_mle_xa_b_pool , op_mle3_range_pool ,
9+ op_mle_xa_b , op_mle3_range ,
1010 util:: { ceil_log2, max_usable_threads} ,
1111 virtual_poly_v2:: ArcMultilinearExtension ,
1212} ;
@@ -244,22 +244,6 @@ fn try_recycle_arcpoly<E: ExtensionField, PF1: Fn() -> Vec<E>, PF2: Fn() -> Vec<
244244 pool_b : & mut SimpleVecPool < Vec < E :: BaseField > , PF2 > ,
245245 pool_expected_size_vec : usize ,
246246) {
247- // fn downcast_arc<E: ExtensionField>(
248- // arc: ArcMultilinearExtension<'_, E>,
249- // ) -> DenseMultilinearExtension<E> {
250- // unsafe {
251- // // get the raw pointer from the Arc
252- // assert_eq!(Arc::strong_count(&arc), 1);
253- // let raw = Arc::into_raw(arc);
254- // // cast the raw pointer to the desired concrete type
255- // let typed_ptr = raw as *const DenseMultilinearExtension<E>;
256- // // manually drop the Arc without dropping the value
257- // Arc::decrement_strong_count(raw);
258- // // reconstruct the Arc with the concrete type
259- // // Move the value out
260- // ptr::read(typed_ptr)
261- // }
262- // }
263247 let len = poly. evaluations ( ) . len ( ) ;
264248 if len == pool_expected_size_vec {
265249 match poly {
@@ -470,7 +454,7 @@ pub(crate) fn wit_infer_by_expr_pool<'a, E: ExtensionField, const N: usize>(
470454 } ,
471455 & |cow_x, cow_a, cow_b, pool_e, pool_b| {
472456 let ( x, a, b) = ( cow_x. as_ref ( ) , cow_a. as_ref ( ) , cow_b. as_ref ( ) ) ;
473- let poly = op_mle_xa_b_pool ! (
457+ let poly = op_mle_xa_b ! (
474458 |x, a, b, res| {
475459 let res = SyncUnsafeCell :: new( res) ;
476460 assert_eq!( a. len( ) , 1 ) ;
0 commit comments