[Libre-soc-dev] SVP64 Vectorised add-carry => big int add

lkcl luke.leighton at gmail.com
Mon Apr 18 17:53:16 BST 2022


On Mon, Apr 18, 2022 at 5:44 PM Jacob Lifshay <programmerjake at gmail.com> wrote:

> basically you need to replace the assignment to un[i + n] after the loop with instead running the loop one more iteration, but with 0 instead of vn[i] (since that'd be an out-of-bounds read).

yes, i did that - still no dice.

-      for (i = 0; i < n; i++) {
+      for (i = 0; i < n+1; i++) {

+         if (i != n) {
+             p = qhat*vn[i];
+             sum = ((unsigned long long)un[i+j]) + ~p + k;
+         } else { // for last loop instead of separate cleanup do special sum
+            sum = (~0)+k;
+         }

but then how to calculate t?  i have no idea, i need help here.

l.



More information about the Libre-soc-dev mailing list