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

  > Create zero vector, invoke mpn_sub_n.
  
  That doesn't make it conditional. And I see no obvious way to do
  conditional negation on top of mpn_cnd_sub_n.
  
Oops.

Compute T = 2 x A using mpn_add_n or mpn_lshift.
Use mpn_cnd_sub_n with A, T as arguments.

Torbjörn
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to