svn commit: r335415 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Jun 20 06:38:47 UTC 2018
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 at 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 */
More information about the svn-src-all
mailing list