Implement mul_u32_u32() function in the LinuxKPI.

Submitted by:	Johannes Lundberg <johalun0@gmail.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
Sponsored by:	Limelight Networks
This commit is contained in:
hselasky 2018-06-05 15:30:36 +00:00
parent ae83c4132e
commit 204460a40c

View File

@ -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 */