libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

commit 6b97020bdbdc5eb08aaa638d0649013ce9c65188
parent 26515c8f58f30e9ec99e16e3054913ff89ae742b
Author: Mattias Andrée <maandree@kth.se>
Date:   Fri, 10 Jun 2016 13:35:41 +0200

Add a comment about storing the carry flag

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
src/zadd.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/zadd.c b/src/zadd.c @@ -25,6 +25,11 @@ "\n jc 1f" \ "\n movq $0, %[x]" \ "\n 1:" +/* + * I have already tried setc, cmovnc, cmovc, and adc, + * instead of the last four lines. There does not seem + * to be any better why to store the carry flag. + */ # define ASM_ADD(N) \ do { \