Created
January 9, 2020 06:21
-
-
Save arpitbbhayani/a767b7c573029b71adcf96a56ab42d96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
for (i = 0; i < size_b; ++i) { | |
borrow = a->ob_digit[i] - b->ob_digit[i] - borrow; | |
z->ob_digit[i] = borrow & PyLong_MASK; | |
borrow >>= PyLong_SHIFT; | |
borrow &= 1; /* Keep only one sign bit */ | |
} | |
for (; i < size_a; ++i) { | |
borrow = a->ob_digit[i] - borrow; | |
z->ob_digit[i] = borrow & PyLong_MASK; | |
borrow >>= PyLong_SHIFT; | |
borrow &= 1; /* Keep only one sign bit */ | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment