Thread (3 messages) flat view 3 messages, 2 authors, 2014-09-19

Re: [PATCH 2/2] powerpc32: add support for csum_add()

From: Joakim Tjernlund <hidden>
Date: 2014-09-19 15:46:47
Also in: lkml

Christophe Leroy [off-list ref] wrote on 2014/09/19 15:57:56:
+#define HAVE_ARCH_CSUM_ADD
+static inline __wsum csum_add(__wsum csum, __wsum addend)
+{
+    __asm__("\n\
+   addc %0,%0,%1 \n\
+   addze %0,%0 \n\
+   "
+   : "=r" (csum)
+   : "r" (addend), "0"(csum));
hmm, I wonder if not this is better written as:
: "+r" (csum): "r" (addend))

  Jocke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help