aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-06-10 13:35:41 +0200
committerMattias Andrée <maandree@kth.se>2016-06-10 13:35:41 +0200
commit6b97020bdbdc5eb08aaa638d0649013ce9c65188 (patch)
tree638931a0ebb59b5523e0278f86934086a2e3ebe5
parentUpdate todo with benchmarking ideas (diff)
downloadlibzahl-6b97020bdbdc5eb08aaa638d0649013ce9c65188.tar.gz
libzahl-6b97020bdbdc5eb08aaa638d0649013ce9c65188.tar.bz2
libzahl-6b97020bdbdc5eb08aaa638d0649013ce9c65188.tar.xz
Add a comment about storing the carry flag
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/zadd.c5
1 files changed, 5 insertions, 0 deletions
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 { \