[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <OF808E087E.AC49C5B7-ONC1257D58.0055AC30-C1257D58.0056ACBD@transmode.se>
Date: Fri, 19 Sep 2014 17:46:42 +0200
From: Joakim Tjernlund <joakim.tjernlund@...nsmode.se>
To: Christophe Leroy <christophe.leroy@....fr>
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
Paul Mackerras <paulus@...ba.org>, scottwood@...escale.com
Subject: Re: [PATCH 2/2] powerpc32: add support for csum_add()
Christophe Leroy <christophe.leroy@....fr> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists