Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2785344 authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller
Browse files

x86_64: csum_add for x86_64



Add csum_add function for x86_64.

Signed-off-by: default avatarTom Herbert <therbert@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 07064c6e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -188,4 +188,11 @@ static inline unsigned add32_with_carry(unsigned a, unsigned b)
	return a;
}

#define HAVE_ARCH_CSUM_ADD
static inline __wsum csum_add(__wsum csum, __wsum addend)
{
	return (__force __wsum)add32_with_carry((__force unsigned)csum,
						(__force unsigned)addend);
}

#endif /* _ASM_X86_CHECKSUM_64_H */