A question on mpn_aorslsh1_n function pairs

Anil Singhar anil.singhar at linaro.org
Tue Dec 24 13:36:37 UTC 2013


Hi,

Could someone please help me understand the return values of the following
functions:

i) mpn_addlsh1_n : rp[] = up[] + (vp[] << 1)

- is the return value = (vp[num_limbs -1] >> 63) + carry from the above
addition ?

ii) mpn_sublsh1_n : rp[] = up[] - (vp[] << 1)

- Is the return value = "Borrow from the above subtraction" - (vp[num_limbs
-1] >> 63) ?

Thanks and Regards,
Anil


More information about the gmp-discuss mailing list