Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2018 06:38:47 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r335415 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201806200638.w5K6cle4020882@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Jun 20 06:38:46 2018
New Revision: 335415
URL: https://svnweb.freebsd.org/changeset/base/335415

Log:
  MFC r334659:
  Implement mul_u32_u32() function in the LinuxKPI.
  
  Submitted by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/math64.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/math64.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/math64.h	Wed Jun 20 06:38:03 2018	(r335414)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/math64.h	Wed Jun 20 06:38:46 2018	(r335415)
@@ -84,4 +84,11 @@ div_u64(uint64_t dividend, uint32_t divisor)
 	return (dividend / divisor);
 }
 
+static inline uint64_t
+mul_u32_u32(uint32_t a, uint32_t b)
+{
+
+	return ((uint64_t)a * b);
+}
+
 #endif /* _LINUX_MATH64_H */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806200638.w5K6cle4020882>