ni...@lysator.liu.se (Niels Möller) writes:

  BTW, below is one (untested) way to organize gcd_22. Wants an sub_mddmmss,
  with output carry as a mask, analogous to the add_mssaaaa defined in
  mod_1_1.c.

I fixed a variable misspelling and defined the needed macro.  I also
modified the return type's declaration.  The code fails in most cases,
but occasionally gets things right.

I'll leave it to you to debug it further.

Attachment: gcd_22.c
Description: Binary data

Attachment: test-gcd_22-ni.c
Description: Binary data


-- 
Torbjörn
Please encrypt, key id 0xC8601622
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to