@@ -33,15 +33,6 @@ mp_limb_pair_t flint_mpn_mulhigh_normalised_7(mp_ptr, mp_srcptr, mp_srcptr);
3333mp_limb_pair_t flint_mpn_mulhigh_normalised_8 (mp_ptr , mp_srcptr , mp_srcptr );
3434mp_limb_pair_t flint_mpn_mulhigh_normalised_9 (mp_ptr , mp_srcptr , mp_srcptr );
3535
36- mp_limb_t flint_mpn_sqrhigh_1 (mp_ptr , mp_srcptr );
37- mp_limb_t flint_mpn_sqrhigh_2 (mp_ptr , mp_srcptr );
38- mp_limb_t flint_mpn_sqrhigh_3 (mp_ptr , mp_srcptr );
39- mp_limb_t flint_mpn_sqrhigh_4 (mp_ptr , mp_srcptr );
40- mp_limb_t flint_mpn_sqrhigh_5 (mp_ptr , mp_srcptr );
41- mp_limb_t flint_mpn_sqrhigh_6 (mp_ptr , mp_srcptr );
42- mp_limb_t flint_mpn_sqrhigh_7 (mp_ptr , mp_srcptr );
43- mp_limb_t flint_mpn_sqrhigh_8 (mp_ptr , mp_srcptr );
44-
4536const flint_mpn_mul_func_t flint_mpn_mulhigh_func_tab [] =
4637{
4738 NULL ,
@@ -69,19 +60,6 @@ const flint_mpn_mulhigh_normalised_func_t flint_mpn_mulhigh_normalised_func_tab[
6960 flint_mpn_mulhigh_normalised_8 ,
7061 flint_mpn_mulhigh_normalised_9
7162};
72-
73- const flint_mpn_sqr_func_t flint_mpn_sqrhigh_func_tab [] =
74- {
75- NULL ,
76- flint_mpn_sqrhigh_1 ,
77- flint_mpn_sqrhigh_2 ,
78- flint_mpn_sqrhigh_3 ,
79- flint_mpn_sqrhigh_4 ,
80- flint_mpn_sqrhigh_5 ,
81- flint_mpn_sqrhigh_6 ,
82- flint_mpn_sqrhigh_7 ,
83- flint_mpn_sqrhigh_8
84- };
8563#elif FLINT_HAVE_ASSEMBLY_armv8
8664mp_limb_t flint_mpn_mulhigh_1 (mp_ptr , mp_srcptr , mp_srcptr );
8765mp_limb_t flint_mpn_mulhigh_2 (mp_ptr , mp_srcptr , mp_srcptr );
@@ -92,15 +70,6 @@ mp_limb_t flint_mpn_mulhigh_6(mp_ptr, mp_srcptr, mp_srcptr);
9270mp_limb_t flint_mpn_mulhigh_7 (mp_ptr , mp_srcptr , mp_srcptr );
9371mp_limb_t flint_mpn_mulhigh_8 (mp_ptr , mp_srcptr , mp_srcptr );
9472
95- mp_limb_t flint_mpn_sqrhigh_1 (mp_ptr , mp_srcptr );
96- mp_limb_t flint_mpn_sqrhigh_2 (mp_ptr , mp_srcptr );
97- mp_limb_t flint_mpn_sqrhigh_3 (mp_ptr , mp_srcptr );
98- mp_limb_t flint_mpn_sqrhigh_4 (mp_ptr , mp_srcptr );
99- mp_limb_t flint_mpn_sqrhigh_5 (mp_ptr , mp_srcptr );
100- mp_limb_t flint_mpn_sqrhigh_6 (mp_ptr , mp_srcptr );
101- mp_limb_t flint_mpn_sqrhigh_7 (mp_ptr , mp_srcptr );
102- mp_limb_t flint_mpn_sqrhigh_8 (mp_ptr , mp_srcptr );
103-
10473const flint_mpn_mul_func_t flint_mpn_mulhigh_func_tab [] =
10574{
10675 NULL ,
@@ -118,25 +87,10 @@ const flint_mpn_mulhigh_normalised_func_t flint_mpn_mulhigh_normalised_func_tab[
11887{
11988 NULL ,
12089};
121-
122- const flint_mpn_sqr_func_t flint_mpn_sqrhigh_func_tab [] =
123- {
124- NULL ,
125- flint_mpn_sqrhigh_1 ,
126- flint_mpn_sqrhigh_2 ,
127- flint_mpn_sqrhigh_3 ,
128- flint_mpn_sqrhigh_4 ,
129- flint_mpn_sqrhigh_5 ,
130- flint_mpn_sqrhigh_6 ,
131- flint_mpn_sqrhigh_7 ,
132- flint_mpn_sqrhigh_8 ,
133- };
13490#else
13591
13692/* todo: add MPFR-like basecase for use in mulders */
13793/* todo: squaring code */
138- /* todo: define the generic basecase also on x86_64_adx,
139- and use to test the assembly versions */
14094
14195mp_limb_t _flint_mpn_mulhigh_basecase (mp_ptr res , mp_srcptr u , mp_srcptr v , mp_size_t n )
14296{
@@ -428,28 +382,4 @@ const flint_mpn_mulhigh_normalised_func_t flint_mpn_mulhigh_normalised_func_tab[
428382{
429383 NULL ,
430384};
431-
432- mp_limb_t flint_mpn_sqrhigh_1 (mp_ptr res , mp_srcptr u )
433- {
434- mp_limb_t low ;
435- umul_ppmm (res [0 ], low , u [0 ], u [0 ]);
436- return low ;
437- }
438-
439- /* todo */
440- mp_limb_t flint_mpn_sqrhigh_2 (mp_ptr res , mp_srcptr u )
441- {
442- mp_limb_t b , low ;
443- FLINT_MPN_MUL_2X2 (res [1 ], res [0 ], low , b , u [1 ], u [0 ], u [1 ], u [0 ]);
444- return low ;
445- }
446-
447- /* todo: higher cases */
448-
449- const flint_mpn_sqr_func_t flint_mpn_sqrhigh_func_tab [] = {
450- NULL ,
451- flint_mpn_sqrhigh_1 ,
452- flint_mpn_sqrhigh_2 ,
453- };
454-
455385#endif
0 commit comments