From 6b97020bdbdc5eb08aaa638d0649013ce9c65188 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 10 Jun 2016 13:35:41 +0200 Subject: Add a comment about storing the carry flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zadd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zadd.c b/src/zadd.c index 56c901b..179a159 100644 --- 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 { \ -- cgit v1.2.3-70-g09d2